08-25-2009 09:04 PM
I am creating an app (Storm 9530 Component Package 4.7) that uses an ObjectChoiceField that is filled programatically with anywhere from 1 to 50 choices. I would like to use the FieldChangeListener to generate a new popup screen based on the selection made by the user from the ObjectChoiceField. Because the list can be quite long, the user may need to scroll through the list to find their choice. Each time the selection is changed the FieldChangedListener is called but I only want to take action when the final selection is made ("clicked"). I have been searching and searching but haven't found the key to understanding the current state of the ObjectChoiceField (open or closed). Any help would be greatly appreciated.
Solved! Go to Solution.
08-26-2009 02:57 PM
04-15-2010 03:16 PM
The other thing you can do is cache the current selected index of the ObjectChoice field. The selected index does not change until the user actually selects it. So you can tell when a choice has actually been made when the selected index differs than that of the cached selected index.