Hi.
I am trying to upgrade an application to smartclient 13.
The same code smartclient 10(pro) is ok, with smartclient 13(eval 13.0-p20230610) rise an error:
:WARN:Log:TypeError: Cannot read properties of undefined (reading 'masterIndex')
Stack from error.stack:
ListGrid.getDrawnFieldWidths(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2265:231
ListGrid.getEditRowItems(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2258:40
ListGrid.makeEditForm(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2235:43
[c]Class.invokeSuper(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Core.js:308:93
[c]Class.Super(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Core.js:300:170
RecordEditor.makeEditForm(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:3708:6
ListGrid.showInlineEditor(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2182:22
ListGrid._startEditing(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2169:6
RecordEditor.initializeEdit(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:3697:197
RecordEditor.setFields(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:3697:6
ListGrid.setFields(<no args: exited>) on [PrpListGrid ID:vehicleOptConfListGrid] @ ISC_Grids.js:1303:240
ListGrid.setHeaderSpans(<no args: exited>) on [PrpListGrid ID:vehicleOptConfListGrid] @ ISC_Grids.js:3379:794
and
Uncaught TypeError: Cannot read properties of undefined (reading 'masterIndex')
at _3.isc_ListGrid_getDrawnFieldWidths [as getDrawnFieldWidths] (ISC_Grids.js:2265:231)
at _3.isc_ListGrid_getEditRowItems [as getEditRowItems] (ISC_Grids.js:2258:40)
at _3.isc_ListGrid_makeEditForm [as makeEditForm] (ISC_Grids.js:2235:43)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:308:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:300:170)
at _3.isc_RecordEditor_makeEditForm [as makeEditForm] (ISC_Grids.js:3708:6)
at _3.isc_ListGrid_showInlineEditor [as showInlineEditor] (ISC_Grids.js:2182:22)
at _3.isc_ListGrid__startEditing [as $31u] (ISC_Grids.js:2169:6)
at _3.isc_RecordEditor_initializeEdit [as initializeEdit] (ISC_Grids.js:3697:197)
at _3.isc_RecordEditor_setFields [as setFields] (ISC_Grids.js:3697:6)
at _3.isc_ListGrid_setFields [as setFields] (ISC_Grids.js:1303:240)
at _3.isc_ListGrid_setHeaderSpans [as setHeaderSpans] (ISC_Grids.js:3379:794)
at callbackRulesForVehicleOptConf (uowPde?lang=en&applicationAreaId=3:55368:40)
The code is:
var headerSpans = [{height: 30, fields: condFields, title: "Condition"}];
vehicleOptConfListGrid.setHeaderSpans(headerSpans);
How to solve?
Thanks.
I am trying to upgrade an application to smartclient 13.
The same code smartclient 10(pro) is ok, with smartclient 13(eval 13.0-p20230610) rise an error:
:WARN:Log:TypeError: Cannot read properties of undefined (reading 'masterIndex')
Stack from error.stack:
ListGrid.getDrawnFieldWidths(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2265:231
ListGrid.getEditRowItems(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2258:40
ListGrid.makeEditForm(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2235:43
[c]Class.invokeSuper(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Core.js:308:93
[c]Class.Super(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Core.js:300:170
RecordEditor.makeEditForm(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:3708:6
ListGrid.showInlineEditor(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2182:22
ListGrid._startEditing(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:2169:6
RecordEditor.initializeEdit(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:3697:197
RecordEditor.setFields(<no args: exited>) on [RecordEditor ID:vehicleOptConfListGrid_filterEditor] @ ISC_Grids.js:3697:6
ListGrid.setFields(<no args: exited>) on [PrpListGrid ID:vehicleOptConfListGrid] @ ISC_Grids.js:1303:240
ListGrid.setHeaderSpans(<no args: exited>) on [PrpListGrid ID:vehicleOptConfListGrid] @ ISC_Grids.js:3379:794
and
Uncaught TypeError: Cannot read properties of undefined (reading 'masterIndex')
at _3.isc_ListGrid_getDrawnFieldWidths [as getDrawnFieldWidths] (ISC_Grids.js:2265:231)
at _3.isc_ListGrid_getEditRowItems [as getEditRowItems] (ISC_Grids.js:2258:40)
at _3.isc_ListGrid_makeEditForm [as makeEditForm] (ISC_Grids.js:2235:43)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:308:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:300:170)
at _3.isc_RecordEditor_makeEditForm [as makeEditForm] (ISC_Grids.js:3708:6)
at _3.isc_ListGrid_showInlineEditor [as showInlineEditor] (ISC_Grids.js:2182:22)
at _3.isc_ListGrid__startEditing [as $31u] (ISC_Grids.js:2169:6)
at _3.isc_RecordEditor_initializeEdit [as initializeEdit] (ISC_Grids.js:3697:197)
at _3.isc_RecordEditor_setFields [as setFields] (ISC_Grids.js:3697:6)
at _3.isc_ListGrid_setFields [as setFields] (ISC_Grids.js:1303:240)
at _3.isc_ListGrid_setHeaderSpans [as setHeaderSpans] (ISC_Grids.js:3379:794)
at callbackRulesForVehicleOptConf (uowPde?lang=en&applicationAreaId=3:55368:40)
The code is:
var headerSpans = [{height: 30, fields: condFields, title: "Condition"}];
vehicleOptConfListGrid.setHeaderSpans(headerSpans);
How to solve?
Thanks.
Comment