I have two TreeGrids, grid1 and grid2 with grid1.setDragDataAction(DragDataAction.COPY) and grid2.setAddDropValues(true). Each grid uses a different data source. When I drag a node from grid1 to grid2 the server receives an "update" request for the grid1 data source. I was expecting it to be an "add" request for grid2. What am I misunderstanding?
Announcement
Collapse
No announcement yet.
X
-
Here is the data source I'm dragging from ...
Code:<!-- Uses a view that combines IPDIVSN, IPDEPTS and IPCLASS --> <DataSource ID="IPMerchHierarchyDS" dataFormat="iscServer" serverType="sql" dbName="as400" tableName="IPMerchHierarchy" serverConstructor="com.islandpacific.gui.server.customDataSource.IpDataSource"> <fields> <field name="Name" type="text" canFilter="true"> <filterEditorProperties operator="iContains" /> </field> <field name="ID" type="integer" primaryKey="true"> <filterEditorProperties operator="iStartsWith" /> </field> <field name="ParentID" type="integer" rootValue="0" foreignKey="IPMerchHierarchy.ID" /> <field name="Type" type="text" length="3"> <valueMap> <value ID="DIV">Division</value> <value ID="DPT">Department</value> <value ID="SUB">Sub-department</value> <value ID="CLS">Class</value> </valueMap> </field> <field name="Code" type="integer" detail="true" /> </fields> </DataSource>
Code:<DataSource ID="IPClstbHierarchyDS" dataFormat="iscServer" serverType="sql" dbName="as400" tableName="IPClstbHierarchy" serverConstructor="com.islandpacific.gui.server.customDataSource.IpClstbHierarchyDS"> <fields> <field name="Name" type="text" canFilter="true"> <filterEditorProperties operator="iContains" /> </field> <field name="ID" type="integer" primaryKey="true"> <filterEditorProperties operator="iStartsWith" /> </field> <field name="ParentID" type="integer" rootValue="0" foreignKey="IPClstbHierarchy.ID" /> <field name="Type" type="text" length="3"> <valueMap> <value ID="DIV">Division</value> <value ID="DPT">Department</value> <value ID="SUB">Sub-department</value> <value ID="CLS">Class</value> </valueMap> </field> <field name="Code" type="integer" detail="true" /> </fields> </DataSource>
Code:=== 2010-01-30 17:22:42,008 [0-12] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{ ID:109 }, values:{ ID:109, CKEY:"UJF" }, operationConfig:{dataSource:"IPMerchHierarchyDS", operationType:"update"}, appID:"builtinApplication", operation:"IPMerchHierarchyDS_update", oldValues:{ ID:109, CKEY:"UJF" } }
Comment
Comment