Hi,
I've got a deep JS error in the dev console.
I create a ValuesManager, but do not bind it to a databoundcomponent (it's some background data which isn't visible).
When I do saveData, my callback isn't hit. Took me a while to figure it out.
Workaround solution is to add a dummy form to the vm:
but this feels a bit wrong.
Can this be fixed, as I'm sure I will do it again and won't remember this workaround :)
version:
SmartGWT 3.0 SC_SNAPSHOT-2011-08-13/Pro Deployment
I've got a deep JS error in the dev console.
I create a ValuesManager, but do not bind it to a databoundcomponent (it's some background data which isn't visible).
When I do saveData, my callback isn't hit. Took me a while to figure it out.
Code:
TypeError: _1 is undefined
unnamed() @ app/sc/modules/ISC_DataBinding.js:1662
ValuesManager._saveDataReply({Obj}, {Obj}, {Obj}) @ app/sc/modules/ISC_Forms.js:3013
anonymous({Obj}, {Obj}, {Obj}) @ app/sc/modules/ISC_Core.js:60
[c]Class.fireCallback(_1=>"isc_ValuesManager_8.$49z(dsRequest, dsR..."[ 55], _2=>"dsResponse,data,dsRequest", _3=>[object Array], _4=>{Obj}, _5=>undef) @ app/sc/modules/ISC_Core.js:321
[c]Class.fireCallback(_1=>"isc_ValuesManager_8.$49z(dsRequest, dsR..."[ 55], _2=>"dsResponse,data,dsRequest", _3=>[object Array]) @ app/sc/modules/ISC_Core.js:419
DataSource.fireResponseCallbacks({Obj}, {Obj}, {Obj}, {Obj}) @ app/sc/modules/ISC_DataBinding.js:569
DataSource._completeResponseProcessing({Obj}, {Obj}, {Obj}, {Obj}, {Obj}) @ app/sc/modules/ISC_DataBinding.js:566
DataSource._handleSCServerReply({Obj}, {Obj}, {Obj}) @ app/sc/modules/ISC_DataBinding.js:1818
[c]Class.fireCallback(_1=>{Obj}, _2=>"rpcResponse,data,rpcRequest", _3=>[object Array], _4=>{Obj}, _5=>undef) @ app/sc/modules/ISC_Core.js:321
[c]Class.fireCallback(_1=>{Obj}, _2=>"rpcResponse,data,rpcRequest", _3=>[object Array]) @ app/sc/modules/ISC_Core.js:419
anonymous(callback=>{Obj}, request=>{Obj}, response=>{Obj}, data=>{Obj}) @ app/sc/modules/ISC_DataBinding.js:1271
unnamed({Obj}, {Obj}, {Obj}, {Obj}) @ :186
[c]RPCManager.fireReplyCallbacks(_1=>{Obj}, _2=>{Obj}) @ app/sc/modules/ISC_DataBinding.js:1276
[c]RPCManager.performOperationReply(_1=>{Obj}, _2=>{Obj}) @ app/sc/modules/ISC_DataBinding.js:1270
RPCManager._performTransactionReply(87) @ app/sc/modules/ISC_DataBinding.js:1264
[c]RPCManager.performTransactionReply(_1=>87, _2=>"//isc_RPCResponseStart-->[{queueStatus:..."[ 422], _3=>undef) @ app/sc/modules/ISC_DataBinding.js:1235
anonymous(87, [object XMLHttpRequest]) @ app/sc/modules/ISC_Core.js:60
[c]Class.fireCallback(_1=>"isc.RPCManager.performTransactionReply(..."[ 67], _2=>"transactionNum,results,wd", _3=>[object Array]) @ app/sc/modules/ISC_Core.js:321
[c]Comm.performXmlTransactionReply(_1=>87, _2=>[object XMLHttpRequest]) @ app/sc/modules/ISC_Core.js:1283
anonymous([object XMLHttpRequest]) @ app/sc/modules/ISC_Core.js:60
[c]Class.fireCallback(_1=>"isc.Comm.performXmlTransactionReply(87,..."[ 57], _2=>"xmlHttpRequest", _3=>[object Array], _4=>[object Proxy], _5=>true) @ app/sc/modules/ISC_Core.js:321
Comm._fireXMLCallback([object XMLHttpRequest], "isc.Comm.performXmlTransactionReply(87,..."[ 57]) @ app/sc/modules/ISC_Core.js:1257
unnamed([object Event]) @ app/sc/modules/ISC_Core.js:1269
unnamed() @
Workaround solution is to add a dummy form to the vm:
Code:
vm = new ValuesManager(); DynamicForm dummy = new DynamicForm(); vm.addMember(dummy);
Can this be fixed, as I'm sure I will do it again and won't remember this workaround :)
version:
SmartGWT 3.0 SC_SNAPSHOT-2011-08-13/Pro Deployment