Scenario: A filterbuilder uses a datasource that contains datasourcefields in which the editorType is set to "selectitems". The "selectitems" in turn are set to use a MySQL datasource in which there are two columns, one for the actual "valueField" and one for the "displayField". (And though it's irrelevant, the valueField is defined as a float.) The filterbuilder is created programmatically to have some fileters set using the "valueField" as follows:
The Problem: The user will not see the value of "0.20" selected in the selectItem. Instead it's blank. However, if the user actually clicks on the "drop down arrow" in the selectItem, then the selectItem refreshes and correctly displays the "displayField" associated with the value of 0.20.
How can I get the selectItem to correctly display the "valueField"? I'm assuming that I need to somehow get the selectItem to make a "fetch" once it gets drawn, instead of requiring the user to click on the "drop down" button, but I couldn't determine how to do this.
Additional details:
======================
SmartGWT (not smartclient) Version: SmartClient Version: v8.3p_2012-11-26/PowerEdition Deployment (built 2012-11-26)
...
Browser: Mozilla Firefox ESR 10.0.7
GWT SDK: 2.5.0rc2
Sun JDK 1.6.0_13
OS: Centos 6.x
IDE: MyEclipse 10.6 with Google Plugin for Eclipse (3.1.0)
Code:
criteria = new AdvancedCriteria(OperatorId.AND, new AdvancedCriteria[] { new AdvancedCriteria("group_probability", OperatorId.GREATER_OR_EQUAL, "0.20"), }); }
How can I get the selectItem to correctly display the "valueField"? I'm assuming that I need to somehow get the selectItem to make a "fetch" once it gets drawn, instead of requiring the user to click on the "drop down" button, but I couldn't determine how to do this.
Additional details:
======================
SmartGWT (not smartclient) Version: SmartClient Version: v8.3p_2012-11-26/PowerEdition Deployment (built 2012-11-26)
...
Browser: Mozilla Firefox ESR 10.0.7
GWT SDK: 2.5.0rc2
Sun JDK 1.6.0_13
OS: Centos 6.x
IDE: MyEclipse 10.6 with Google Plugin for Eclipse (3.1.0)
Comment