03-14-2013 02:51 AM
Hi All
I have a ListField that i am showing in a popup. When the listField is shown, the focus is not set to the set passed index.
Can anyone plz tell me what is missing here:
ListField choiceList = new ListField() {
protected boolean navigationClick(int status, int time) {
int index = this.getSelectedIndex();
fieldChangeNotify(0);
FSApplication.getUiApplication().popScreen(FSAppli cation.getUiApplication().getActiveScreen());
return super.navigationClick(status, time);
}
choiceList.setChangeListener((FieldChangeListener) uiFilter);
choiceList.setCallback(new PopUpListCallback());
add(choiceList);
choiceList.setSelectedIndex(6);
choiceList.setSize(choice.length, _selectedIndex);
choiceList.setVisualState(VISUAL_STATE_ACTIVE | VISUAL_STATE_FOCUS);
Solved! Go to Solution.
03-14-2013 04:19 AM
03-18-2013 11:26 PM
Thanks .