Hi, this seems to be working fine for a DynamicForm. However, it is not working quite right for a ListGrid.
When I call Datasource.updateData(), I am able to check all of the fields on the current record and remove those I don’t want to submit in transformRequest as you suggested. However, when I call ListGrid.saveEdits(), then transformRequest is only able to inspect the fields that were edited in the ListGrid. If there are 4 fields open for editing and I only edit one of them, then dsRequest.data inside of transformRequest (and record inside of Datasource.updateData for that matter) only contains the fields that were edited. As a result, I"m not able to remove these other objects that I don’t want to submit to the server. Since I can’t remove them, I end up with a too much recursion error like you see below in Firefox (I wasn’t able to get any useful output for this in IE.
For now, I’m using a custom function to strip out all the child objects I don’t want to submit before the ListGrid loads. But, I’d really like to be able to do this via updateData() or transformRequest() like I now can with DynamicForm. Any idea why the difference between the DynamicForm and ListGrid?
too much recursion
http://localhost:8080/dev/isoversion/6.0.2/isomorphic/system/modules/ISC_Core.js?isc_version=6.0.js
Line 291
Here is the bottom portion of the trace in Firefox:
//top of this trace removed for brevity
xmlSerialize("elem", Object analysisConfidenceID=100 analystID=8, null, Object objRefs=Object, [], [])ISC_DataBinding.j... (line 50)
36s("activeFundAssetList", [Object analysisConfidenceID=100 analystID=8, Object analysisConfidenceID=50 analystID=9, Object analysisConfidenceID=100 analystID=8, 1 more...], ".operations[0].oldValues.fundSectorListJSON[0].activeFundAssetList[1].fundJSON.fundSectorList[0].act...", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 50)
xmlSerialize("activeFundAssetList", [Object analysisConfidenceID=100 analystID=8, Object analysisConfidenceID=50 analystID=9, Object analysisConfidenceID=100 analystID=8, 1 more...], null, Object objRefs=Object, undefined, undefined)ISC_DataBinding.j... (line 50)
36w("elem", Object createdUserName=Smith, Dean fundMinLongInv=1, ".operations[0].oldValues.fundSectorListJSON[0].activeFundAssetList[1].fundJSON.fundSectorList[0]", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 51)
xmlSerialize("elem", Object createdUserName=Smith, Dean fundMinLongInv=1, null, Object objRefs=Object, [], [])ISC_DataBinding.j... (line 50)
36s("fundSectorList", [Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, 13 more...], ".operations[0].oldValues.fundSectorListJSON[0].activeFundAssetList[1].fundJSON.fundSectorList", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 50)
xmlSerialize("fundSectorList", [Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, 13 more...], null, Object objRefs=Object, undefined, undefined)ISC_DataBinding.j... (line 50)
36w("fundJSON", Object annualizeReturnID=3 betaAdj=false companyID=3, ".operations[0].oldValues.fundSectorListJSON[0].activeFundAssetList[1].fundJSON", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 51)
xmlSerialize("fundJSON", Object annualizeReturnID=3 betaAdj=false companyID=3, null, Object objRefs=Object, [], [])ISC_DataBinding.j... (line 50)
36w("elem", Object analysisConfidenceID=50 analystID=10, ".operations[0].oldValues.fundSectorListJSON[0].activeFundAssetList[1]", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 51)
xmlSerialize("elem", Object analysisConfidenceID=50 analystID=10, null, Object objRefs=Object, [], [])ISC_DataBinding.j... (line 50)
36s("activeFundAssetList", [Object analysisConfidenceID=50 analystID=9, Object analysisConfidenceID=50 analystID=10], ".operations[0].oldValues.fundSectorListJSON[0].activeFundAssetList", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 50)
xmlSerialize("activeFundAssetList", [Object analysisConfidenceID=50 analystID=9, Object analysisConfidenceID=50 analystID=10], null, Object objRefs=Object, undefined, undefined)ISC_DataBinding.j... (line 50)
36w("elem", Object createdUserName=Smith, Dean fundMinLongInv=1, ".operations[0].oldValues.fundSectorListJSON[0]", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 51)
xmlSerialize("elem", Object createdUserName=Smith, Dean fundMinLongInv=1, null, Object objRefs=Object, [], [])ISC_DataBinding.j... (line 50)
36s("fundSectorListJSON", [Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, 1 more...], ".operations[0].oldValues.fundSectorListJSON", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 50)
xmlSerialize("fundSectorListJSON", [Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, Object createdUserName=Smith, Dean fundMinLongInv=1, 1 more...], null, Object objRefs=Object, undefined, undefined)ISC_DataBinding.j... (line 50)
36w("oldValues", Object createdUserName=Smith, Dean fundID=3, ".operations[0].oldValues", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 51)
xmlSerialize("oldValues", Object createdUserName=Smith, Dean fundID=3, null, Object objRefs=Object objPath=.operations[0].oldValues, [], [])ISC_DataBinding.j... (line 50)
36w("elem", Object criteria=Object values=Object, ".operations[0]", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 51)
xmlSerialize("elem", Object criteria=Object values=Object, null, Object objRefs=Object objPath=.operations[0] isRoot=false, [], [])ISC_DataBinding.j... (line 50)
36s("operations", [Object criteria=Object values=Object], ".operations", Object obj=[3523] path=[3522], null, false)ISC_DataBinding.j... (line 50)
xmlSerialize("operations", [Object criteria=Object values=Object], null, Object objRefs=Object objPath=.operations isRoot=false, undefined, undefined)ISC_DataBinding.j... (line 50)
36w("transaction", Object transactionNum=3 operations=[1], "", Object obj=[3523] path=[3522], null, true)ISC_DataBinding.j... (line 51)
xmlSerialize("transaction", Object transactionNum=3 operations=[1], null, Object objRefs=Object, [], [])ISC_DataBinding.j... (line 50)
xmlSerialize("transaction", Object transactionNum=3 operations=[1], undefined, undefined, undefined)ISC_DataBinding.j... (line 37)
serializeTransaction(Object timeout=90000 transactionNum=3 operations=[1])ISC_DataBinding.j... (line 437)
addTransactionToFields(Object)ISC_Core.js (line 567)
sendHiddenFrame(Object)ISC_DataBinding.j... (line 661)
markURLAsRPC("Saving...<br><br><img src='images/progressbar.gif'/>", "smartclient.form?isc_rpc=1&isc_v=6.0&isc_tnum=3")ISC_DataBinding.j... (line 456)
384(Object operationType=update dataSource=FundSectorGroup)ISC_DataBinding.j... (line 410)
performSCServerOperation(Object operationType=update dataSource=FundSectorGroup)ISC_DataBinding.j... (line 656)
performDSOperation(Object operationType=update dataSource=FundSectorGroup)ISC_DataBinding.j... (line 299)
performDSOperation("update", Object fundSectorGroupID=2 name=Country, "sectorGroupGrid.$337(dsResponse, dsRequest)", Object willHandleError=true showPrompt=true)ISC_DataBinding.j... (line 295)
fetchData(Object fundSectorGroupID=2 name=Country, "sectorGroupGrid.$337(dsResponse, dsRequest)", Object willHandleError=true showPrompt=true)ISC_DataBinding.j... (line 293)
invokeSuper(null, "updateData", undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined)ISC_Core.js (line 176)
Super("updateData", [Object fundSectorGroupID=2 name=Country, "sectorGroupGrid.$337(dsResponse, dsRequest)", Object willHandleError=true showPrompt=true], undefined)ISC_Core.js (line 170)
(no name)(Object fundSectorGroupID=2 name=Country, "sectorGroupGrid.$337(dsResponse, dsRequest)", Object willHandleError=true showPrompt=true)dpt.form (line 328)
saveEditedValues(1, 0, Object fundSectorGroupID=2 name=Country, Object createdUserName=Smith, Dean fundID=3, "_0", "programmatic", "sectorGroupGridSaveCallback(success);")ISC_Grids.js (line 752)
saveEdits("programmatic", "sectorGroupGridSaveCallback(success);", 1, undefined)