SmartClient Version: SC_SNAPSHOT-2010-08-03/EVAL Deployment (expires 2010.10.02_09.35.33) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)
In a nutshell:
I have a valuesmanager linked to my main datasource (called sessDTO)
this datasource contains 3 array lists of other datasources.
I couple this main datasource to a valuesManager and the valuesManager to each component I create. Each component is then also set to the correct sub-datasource and using setDataPath the data is retrieved from the main datasource.
When calling the executeFetch on the valuesManager and using ListGrids for all sub-datasources, it works (in other words: the data is binded to the components).
Using the same setup, but changing one of the listgrids into a DynamicForm no data is displayed in the form?
So my question boils down to: how do I get record[0] from my arraylist into the form? Keep in mind that I am using a valuesManager. To be honest, this seems pretty trivial, but there doesn't seem to be a straight forward way to do this.
Regards,
Bart
In a nutshell:
I have a valuesmanager linked to my main datasource (called sessDTO)
this datasource contains 3 array lists of other datasources.
I couple this main datasource to a valuesManager and the valuesManager to each component I create. Each component is then also set to the correct sub-datasource and using setDataPath the data is retrieved from the main datasource.
When calling the executeFetch on the valuesManager and using ListGrids for all sub-datasources, it works (in other words: the data is binded to the components).
Using the same setup, but changing one of the listgrids into a DynamicForm no data is displayed in the form?
So my question boils down to: how do I get record[0] from my arraylist into the form? Keep in mind that I am using a valuesManager. To be honest, this seems pretty trivial, but there doesn't seem to be a straight forward way to do this.
Regards,
Bart
Code:
<DataSource ID="SessDTO" dropExtraFields="true"> <fields> <field name="selection" type="selectionDS" javaClass="selection.SelectionDTO" multiple="true" /> <field name="conditionItems" type="conditionItemDS" javaClass="selection.ConditionItemDTO" multiple="true" /> <field name="displayItems" type="displayItemDS" javaClass="selection.DisplayItemDTO" multiple="true" /> </fields> <serverObject ID="SearchSessStore" lookupStyle="new" className="server.stores.search.SearchSessStore"/> </DataSource>
Code:
public class SearchPanel extends Canvas { public SearchPanel() { valueMgr = new ValuesManager(); this.setValuesManager(valueMgr); DynamicForm selection = new DynamicForm(); selection.setValuesManager(valueMgr); selection.setDataPath("selection"); selection.setDataSource("selectionDS"); ListGrid conditions = new ListGrid(); conditions.setValuesManager(valueMgr); conditions.setDataPath("conditionItems"); conditions.setDataSource("conditionItemDS"); ListGrid displayitems = new ListGrid(); displayitems.setValuesManager(valueMgr); displayitems.setDataPath("displayItems"); displayitems.setDataSource("displayItemDS"); valueMgr.setDataSource("sessDTO"); ... valueMgr.fetchData(); } }
Comment