I have a master-details type of setup and if I delete the record via the details form via the removeData call to the data source, just the primary key gets passed over on the request (excellent).
However if I perform a deletion form the list grid by calling removeSelectedData (even if only 1 row is selected) the request contains the full data of the record instead of just the primary key. Is there someway to have the removeSelectedData to only send the primary key over in the same fashion as the removeData call?
Here is the request from the removeData:
and in comparison, here is the request from the removeSelectedData from the list grid:
I am using 4.1 SmartGWT
However if I perform a deletion form the list grid by calling removeSelectedData (even if only 1 row is selected) the request contains the full data of the record instead of just the primary key. Is there someway to have the removeSelectedData to only send the primary key over in the same fashion as the removeData call?
Here is the request from the removeData:
Code:
{ dataSource:"history", operationType:"remove", data:{ sysId:"8e3fb9f54bd04ae1afae628b2ece8ee6" }, willHandleError:true, showPrompt:true, oldValues:{ sysId:"8e3fb9f54bd04ae1afae628b2ece8ee6" }, requestId:"history$6279", fallbackToEval:false, lastClientEventThreadCode:"TMR0", bypassCache:true }
Code:
{ dataSource:"history", operationType:"remove", componentId:"isc_HistoryList_0", data:{ summary:null, isVersion:false, sysUpdatedOn:"2014-02-19 10:59:38 -0500", type:2, endTime:"2014-02-19 10:59:38 -0500", startTime:"2014-02-19 10:58:58 -0500", statusCode:200, sysCreatedBy:"ops.system", opswiseGroups:null, name:"Ops - Sleep 40", waitForExclusive:false, lateFinish:false, sysUpdatedBy:"ops.system", earlyFinish:false, taskId:"da61f058c0a80165010ec4651c083b1d", sysCreatedOn:"2014-02-19 10:59:38 -0500", sysModCount:0, exitCode:"0", agent:null, lateStart:false, invokedBy:"Workflow: AAA - Workflow of Sleep Tasks", waitForResources:false, taskRefCount:4, statusDescription:null, duration:"39 Seconds", sysId:"6b4158d122714e76aca158488c7e2e14", durationSeconds:39, sysTableName:"ops_history", triggerId:null, execId:"8ed00daa43094dc2a94ede2648c37d4d", securityName:"Ops - Sleep 40" }, willHandleError:true, showPrompt:true, prompt:"Deleting Record(s)...", oldValues:{ summary:null, isVersion:false, sysUpdatedOn:"2014-02-19 10:59:38 -0500", type:2, endTime:"2014-02-19 10:59:38 -0500", startTime:"2014-02-19 10:58:58 -0500", statusCode:200, sysCreatedBy:"ops.system", opswiseGroups:null, name:"Ops - Sleep 40", waitForExclusive:false, lateFinish:false, sysUpdatedBy:"ops.system", earlyFinish:false, taskId:"da61f058c0a80165010ec4651c083b1d", sysCreatedOn:"2014-02-19 10:59:38 -0500", sysModCount:0, exitCode:"0", agent:null, lateStart:false, invokedBy:"Workflow: AAA - Workflow of Sleep Tasks", waitForResources:false, taskRefCount:4, statusDescription:null, duration:"39 Seconds", sysId:"6b4158d122714e76aca158488c7e2e14", durationSeconds:39, sysTableName:"ops_history", triggerId:null, execId:"8ed00daa43094dc2a94ede2648c37d4d", securityName:"Opswise - Sleep 40" }, requestId:"history$62710", fallbackToEval:false, dataPageSize:100, dataFetchMode:"paged", lastClientEventThreadCode:"TMR0", bypassCache:true }
Comment