Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

PicklistCriteria not used in ComboBox when values initialized by form.setValues().

$
0
0
SmartClient 9.0 pro - 12/5/2013 build

I have a DynamicForm with some fields in it that are ComboBox items.

Each of the fields, I have defined with pickListCriteria, and these criteria are always sent to the server just fine when using the ComboBox manually, and typing in values, or selecting the drop-down.

But I have noticed that if I try to populate the form using the form.setValues() method, my combo boxes often fail to populate correctly because instead of sending the pickListCriteria, it will only send the field that I have defined as the ComboBox's valueField.

The problem is that I always need the pickListCriteria to go to the server so that I can properly return the display value that goes with the given value.

Is there a way to force a given Combo to always respect the pickListCriteria? Or is there perhaps some other way to specify criteria when the value is provided?

Viewing all articles
Browse latest Browse all 4756

Trending Articles