SmartClient Version: v8.2p_2012-05-24/PowerEdition Deployment (built 2012-05-24)
In another thread (http://forums.smartclient.com/showthread.php?t=21628) I asked how to set the selected index/value of a combobox/selectitem with an optionsDataSource.
I have a similar use-case, but this time with a ComboBoxItem and a SelectItem that do not have an optionsDatasource.
When a user opens a form, several criteria affect the way that the form is presented to a user. For example, if I choose option "a" the form should appear with two values pre-selected in the select/combobox mentioned above.
Setting these values is proving to be challenging. I can use setDefaultValue("someValue"), but that does not actually select the value, so when the form is validated, those two items are considered invalid, even if they have those defaultValues displayed.
What can I do to set the values effectively here?
In another thread (http://forums.smartclient.com/showthread.php?t=21628) I asked how to set the selected index/value of a combobox/selectitem with an optionsDataSource.
I have a similar use-case, but this time with a ComboBoxItem and a SelectItem that do not have an optionsDatasource.
When a user opens a form, several criteria affect the way that the form is presented to a user. For example, if I choose option "a" the form should appear with two values pre-selected in the select/combobox mentioned above.
Setting these values is proving to be challenging. I can use setDefaultValue("someValue"), but that does not actually select the value, so when the form is validated, those two items are considered invalid, even if they have those defaultValues displayed.
What can I do to set the values effectively here?
Comment