Hello Isomorphic!
I tried the occurring error with the smartclient showcase
with the link https://www.smartclient.com/smartcli...?id=editByCell
I modified the editCells.js to following code
I added following to the continent field
*****
editorType: "comboBox",
editorProperties : {
addUnknownValues: false,
allowEmptyValue: false,
}
*****
full code ->
isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true,
// use server-side dataSource so edits are retained across page transitions
dataSource: countryDS,
// display a subset of fields from the datasource
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{
name:"continent",
editorType: "comboBox",
editorProperties : {
addUnknownValues: false,
allowEmptyValue: false,
}
},
{name:"member_g8"},
{name:"population"},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
editByCell: true
})
after changing it to this code and running it i can't edit the combobox anymore and get following error
ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1261 *10:05:46.971:TMR0:WARN:Log:TypeError: Cannot read property 'setVisibility' of undefined
Stack from error.stack:
ComboBoxItem.setAddUnknownValues(<no args: exited>) on [ComboBoxItem ID:isc_ComboBoxItem_0 name:continent] @ ISC_Forms.js:2653:74
Class.setProperties(<no args: exited>) on [ComboBoxItem ID:isc_ComboBoxItem_0 name:continent] @ ISC_Core.js:375:109
ListGrid.makeEditForm(<no args: exited>) on[ListGrid ID:countryList] @ ISC_Grids.js:2026:278
ListGrid.showInlineEditor(<no args: exited>) on[ListGrid ID:countryList] @ ISC_Grids.js:1979:22
ListGrid._startEditing(<no args: exited>) on[ListGrid ID:countryList] @ ISC_Grids.js:1966:6
[c]Class.fireCallback(_1=>Obj, _2=>null, _3=>null, _4=>null, _5=>true) on [Class Timer] @ ISC_Core.js:326:104
Timer._fireTimeout(_1=>"$ir5039", _2=>5502, _3=>undef) on [Class Timer] @ ISC_Core.js:1831:166
<anonymous>() @ ISC_Core.js:1828:40
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1261
isc_c_Log_addLogMessage @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1259
isc_c_Log_log @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1252
logMessage @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1241
logWarn @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1241
isc__debug__reportJSErrorStack @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1214
isc__debug__reportJSError @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1214
isc_c_Class_fireCallback @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:326
isc_c_Timer__fireTimeout @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1831
(anonymous) @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1828
setTimeout (async)
isc_c_Timer_setTimeout @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1828
isc_c_Class_delayCall @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:327
isc_Class_delayCall @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:399
isc_ListGrid__startEditing @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1957
isc_ListGrid__saveAndStartEditing @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:2295
isc_ListGrid__changeEditCell @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1952
isc_ListGrid_startEditing @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1943
isc_ListGrid_handleEditCellEvent @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1936
isc_ListGrid_rowClick @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1693
eval @ VM501:4
isc_GridRenderer__rowClick @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:588
isc_c_Class_invokeSuper @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:317
isc_c_Class_Super @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:309
isc_GridBody__rowClick @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:657
isc_GridRenderer_click @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:586
isc_Canvas_handleClick @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:3541
isc_c_EventHandler_bubbleEvent @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:2158
isc_c_EventHandler_handleClick @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1993
isc_c_EventHandler__handleMouseUp @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1977
isc_c_EventHandler_handleMouseUp @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1968
isc_c_EventHandler_dispatch @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:2245
eval @ VM454:3
ISC_Core.js?isc_version=v12.0p_2020-01-27.js:326 Uncaught TypeError: Cannot read property 'setVisibility' of undefined
at _3.isc_ComboBoxItem_setAddUnknownValues [as setAddUnknownValues] (ISC_Forms.js?isc_version=v12.0p_2020-01-27.js:2653)
at _3.isc_Class_setProperties [as setProperties] (ISC_Core.js?isc_version=v12.0p_2020-01-27.js:375)
at _3.isc_ListGrid_makeEditForm [as makeEditForm] (ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:2026)
at _3.isc_ListGrid_showInlineEditor [as showInlineEditor] (ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1979)
at _3.isc_ListGrid__startEditing [as $31u] (ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1966)
at _3.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v12.0p_2020-01-27.js:326)
at _3.isc_c_Timer__fireTimeout [as $in] (ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1831)
at ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1828
the same example was working with ( SmartClient Version: v12.0p_2018-08-02/Pro Deployment (built 2018-08-02) )
i attached a .gif with the problem
I hope you can help me somehow!
Thank you!
I tried the occurring error with the smartclient showcase
with the link https://www.smartclient.com/smartcli...?id=editByCell
I modified the editCells.js to following code
I added following to the continent field
*****
editorType: "comboBox",
editorProperties : {
addUnknownValues: false,
allowEmptyValue: false,
}
*****
full code ->
isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true,
// use server-side dataSource so edits are retained across page transitions
dataSource: countryDS,
// display a subset of fields from the datasource
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{
name:"continent",
editorType: "comboBox",
editorProperties : {
addUnknownValues: false,
allowEmptyValue: false,
}
},
{name:"member_g8"},
{name:"population"},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
editByCell: true
})
after changing it to this code and running it i can't edit the combobox anymore and get following error
ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1261 *10:05:46.971:TMR0:WARN:Log:TypeError: Cannot read property 'setVisibility' of undefined
Stack from error.stack:
ComboBoxItem.setAddUnknownValues(<no args: exited>) on [ComboBoxItem ID:isc_ComboBoxItem_0 name:continent] @ ISC_Forms.js:2653:74
Class.setProperties(<no args: exited>) on [ComboBoxItem ID:isc_ComboBoxItem_0 name:continent] @ ISC_Core.js:375:109
ListGrid.makeEditForm(<no args: exited>) on[ListGrid ID:countryList] @ ISC_Grids.js:2026:278
ListGrid.showInlineEditor(<no args: exited>) on[ListGrid ID:countryList] @ ISC_Grids.js:1979:22
ListGrid._startEditing(<no args: exited>) on[ListGrid ID:countryList] @ ISC_Grids.js:1966:6
[c]Class.fireCallback(_1=>Obj, _2=>null, _3=>null, _4=>null, _5=>true) on [Class Timer] @ ISC_Core.js:326:104
Timer._fireTimeout(_1=>"$ir5039", _2=>5502, _3=>undef) on [Class Timer] @ ISC_Core.js:1831:166
<anonymous>() @ ISC_Core.js:1828:40
isc.B.push.isc.A.addToMasterLog @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1261
isc_c_Log_addLogMessage @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1259
isc_c_Log_log @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1252
logMessage @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1241
logWarn @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1241
isc__debug__reportJSErrorStack @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1214
isc__debug__reportJSError @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1214
isc_c_Class_fireCallback @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:326
isc_c_Timer__fireTimeout @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1831
(anonymous) @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1828
setTimeout (async)
isc_c_Timer_setTimeout @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1828
isc_c_Class_delayCall @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:327
isc_Class_delayCall @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:399
isc_ListGrid__startEditing @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1957
isc_ListGrid__saveAndStartEditing @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:2295
isc_ListGrid__changeEditCell @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1952
isc_ListGrid_startEditing @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1943
isc_ListGrid_handleEditCellEvent @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1936
isc_ListGrid_rowClick @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1693
eval @ VM501:4
isc_GridRenderer__rowClick @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:588
isc_c_Class_invokeSuper @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:317
isc_c_Class_Super @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:309
isc_GridBody__rowClick @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:657
isc_GridRenderer_click @ ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:586
isc_Canvas_handleClick @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:3541
isc_c_EventHandler_bubbleEvent @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:2158
isc_c_EventHandler_handleClick @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1993
isc_c_EventHandler__handleMouseUp @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1977
isc_c_EventHandler_handleMouseUp @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1968
isc_c_EventHandler_dispatch @ ISC_Core.js?isc_version=v12.0p_2020-01-27.js:2245
eval @ VM454:3
ISC_Core.js?isc_version=v12.0p_2020-01-27.js:326 Uncaught TypeError: Cannot read property 'setVisibility' of undefined
at _3.isc_ComboBoxItem_setAddUnknownValues [as setAddUnknownValues] (ISC_Forms.js?isc_version=v12.0p_2020-01-27.js:2653)
at _3.isc_Class_setProperties [as setProperties] (ISC_Core.js?isc_version=v12.0p_2020-01-27.js:375)
at _3.isc_ListGrid_makeEditForm [as makeEditForm] (ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:2026)
at _3.isc_ListGrid_showInlineEditor [as showInlineEditor] (ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1979)
at _3.isc_ListGrid__startEditing [as $31u] (ISC_Grids.js?isc_version=v12.0p_2020-01-27.js:1966)
at _3.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v12.0p_2020-01-27.js:326)
at _3.isc_c_Timer__fireTimeout [as $in] (ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1831)
at ISC_Core.js?isc_version=v12.0p_2020-01-27.js:1828
the same example was working with ( SmartClient Version: v12.0p_2018-08-02/Pro Deployment (built 2018-08-02) )
i attached a .gif with the problem
I hope you can help me somehow!
Thank you!
Comment