I am using SmartGWT 2.2 and Firefox 3.6.10.
We are having issue when grid have only one row and 1 editable cell. It is causing JS error when I save or discard this row with very similar error "this.$69m is undefined ".
I just tested adding a second row and both save and discard working OK.
1. If we call discardAllEdits, nothing happens and row stays with edited data.
I tried to replace edited value with original value from record, but the call to
get original value coming back as null:
When I tried to call discardEdits(0, rateFieldNum) just for 1 row, but its causing JS error (I tried for rownum = 0 or 1) :
00:42:36.185 [ERROR] 15:10:06.477:TMR4:WARN:Log:TypeError: this.$69m is undefined
ListGrid._clearingInactiveEditorHTML(0, 0)
ListGrid.refreshCell(_1=>0, _2=>0, _3=>true)
ListGrid.refreshRow(_1=>0)
ListGrid.hideInlineEditor(_1=>undef)
ListGrid._killEdit(1284577723039, "programmatic")
ListGrid.discardEdits(_1=>0, _2=>1)
unnamed(0, 1)
unnamed()
unnamed([object GWTJavaObject], 7864321, [object GWTJavaObject])
unnamed(true)
[c]Class.fireCallback(_1=>function (value), _2=>"value", _3=>[object Array], _4=>{Obj}, _5=>undef)
[c]Class.fireCallback(_1=>function (value), _2=>"value", _3=>[object Array])
[c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true)
Timer._fireTimeout("$ir306")
unnamed()
unnamed()
.......................etc...
2. the very similar problem is when I am saving this row to DB. The data is saved, but I am again getting JS error :
00:00:59.654 [ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): this.$69m is undefined
fileName:http://127.0.0.1:8888/rs.Application...s/ISC_Grids.js
lineNumber: 1296
stack: isc_ListGrid__clearingInactiveEditorHTML(0,0)@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1296
isc_ListGrid_refreshCell(0,0,true)@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1703
isc_ListGrid_refreshRow(0)@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1717
isc_ListGrid_hideInlineEditor((void 0))@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1620
isc_ListGrid__killEdit(1284661688649,"programmatic")@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1893
isc_ListGrid_discardEdits(0,null,(void 0))@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1940
isc_ListGrid_discardAllEdits()@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1936
isc_ListGrid_setData([object Array])@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:959
isc_Class_setProperties([object Object])@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Core.js:346
isc_Class_setProperty("data",[object Array])@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Core.js:344
("data",[object Array])@http://127.0.0.1:8888:163 @:0
([object GWTJavaObject],4456449,[object GWTJavaObject],[object Array],
[object GWTJavaObject])@http://127.0.0.1:8888/rs.Application/hosted.html?rs_Application:56 ([object Object],
[object Array],[object Object])@http://127.0.0.1:8888:94
((function (dsResponse, data, dsRequest) {var responseJ = __gwt_makeJavaInvoke(1)(null, 4325457, dsResponse);
var requestJ = __gwt_makeJavaInvoke(1)(null, 4391033, dsRequest);if (callback != null) {__gwt_makeJavaInvoke(3)
(callback, 4456449, responseJ, data, requestJ);}}),
[object Object],[object Object])@http://127.0.0.1:8888:57 @:0
We are having issue when grid have only one row and 1 editable cell. It is causing JS error when I save or discard this row with very similar error "this.$69m is undefined ".
I just tested adding a second row and both save and discard working OK.
1. If we call discardAllEdits, nothing happens and row stays with edited data.
I tried to replace edited value with original value from record, but the call to
get original value coming back as null:
Code:
String temp = Grid.getRecord(0).getAttributeAsString("fname");
00:42:36.185 [ERROR] 15:10:06.477:TMR4:WARN:Log:TypeError: this.$69m is undefined
ListGrid._clearingInactiveEditorHTML(0, 0)
ListGrid.refreshCell(_1=>0, _2=>0, _3=>true)
ListGrid.refreshRow(_1=>0)
ListGrid.hideInlineEditor(_1=>undef)
ListGrid._killEdit(1284577723039, "programmatic")
ListGrid.discardEdits(_1=>0, _2=>1)
unnamed(0, 1)
unnamed()
unnamed([object GWTJavaObject], 7864321, [object GWTJavaObject])
unnamed(true)
[c]Class.fireCallback(_1=>function (value), _2=>"value", _3=>[object Array], _4=>{Obj}, _5=>undef)
[c]Class.fireCallback(_1=>function (value), _2=>"value", _3=>[object Array])
[c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true)
Timer._fireTimeout("$ir306")
unnamed()
unnamed()
.......................etc...
2. the very similar problem is when I am saving this row to DB. The data is saved, but I am again getting JS error :
00:00:59.654 [ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): this.$69m is undefined
fileName:http://127.0.0.1:8888/rs.Application...s/ISC_Grids.js
lineNumber: 1296
stack: isc_ListGrid__clearingInactiveEditorHTML(0,0)@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1296
isc_ListGrid_refreshCell(0,0,true)@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1703
isc_ListGrid_refreshRow(0)@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1717
isc_ListGrid_hideInlineEditor((void 0))@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1620
isc_ListGrid__killEdit(1284661688649,"programmatic")@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1893
isc_ListGrid_discardEdits(0,null,(void 0))@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1940
isc_ListGrid_discardAllEdits()@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:1936
isc_ListGrid_setData([object Array])@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Grids.js:959
isc_Class_setProperties([object Object])@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Core.js:346
isc_Class_setProperty("data",[object Array])@http://127.0.0.1:8888/rs.Application/sc/modules/ISC_Core.js:344
("data",[object Array])@http://127.0.0.1:8888:163 @:0
([object GWTJavaObject],4456449,[object GWTJavaObject],[object Array],
[object GWTJavaObject])@http://127.0.0.1:8888/rs.Application/hosted.html?rs_Application:56 ([object Object],
[object Array],[object Object])@http://127.0.0.1:8888:94
((function (dsResponse, data, dsRequest) {var responseJ = __gwt_makeJavaInvoke(1)(null, 4325457, dsResponse);
var requestJ = __gwt_makeJavaInvoke(1)(null, 4391033, dsRequest);if (callback != null) {__gwt_makeJavaInvoke(3)
(callback, 4456449, responseJ, data, requestJ);}}),
[object Object],[object Object])@http://127.0.0.1:8888:57 @:0
Comment