marman
10 May 2009, 4:32 AM
Can anyone point me to an example which shows ComboBox working with a FormBinding? I have a list of Objects i want to display of the form: id, label. I want to the Combo to show all the labels and then have the form binding either give me back the id of what was selected or better yet the Object representing the id and label.
my data is like:
[ 1, "Yellow" ]
[ 2, "User Custom label" ]
[ 3, "Purple" ]
etc...
I can not just infer the Id from the label as the labels are user defined and I do not want to query the database to match the label.
The examples only show a SimpleComboBox which returns the label, but i need the Id. Any help would be greatly appreciated. thanks in advance.
my data is like:
[ 1, "Yellow" ]
[ 2, "User Custom label" ]
[ 3, "Purple" ]
etc...
I can not just infer the Id from the label as the labels are user defined and I do not want to query the database to match the label.
The examples only show a SimpleComboBox which returns the label, but i need the Id. Any help would be greatly appreciated. thanks in advance.