I am getting an error from SC framework. Here is a fragment from Dev. console:
21:19:35.187:WARN:Log:Error:
''null' is null or not an object'
in http://localhost/beltrailway/mainapplication/forms/main.htm
at line 726
ListGrid.validateRowValues(_1=>null, _2=>Obj, _3=>1, _4=>Array[1])
ListGrid.validateRow(_1=>1, _2=>undef)
ListGrid.$27q(_1=>"click", _2=>1, _3=>0, _4=>0, _5=>0)
ListGrid.startEditing(_1=>0, _2=>0, _3=>null, _4=>"click")
ListGrid.handleEditCellEvent(_1=>0, _2=>0, _3=>"click")
ListGrid.rowClick(_1=>Obj{ID:0}, _2=>0, _3=>0, _4=>undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
[a]GridRenderer.rowClick(a=>Obj{ID:0}, b=>0, c=>0, d=>undef, e=>undef, f=>undef, g=>undef, h=>undef, i=>undef, j=>undef, k=>undef, l=>undef, m=>undef, n=>undef, o=>undef, p=>undef)
"return this.parentElement.rowClick(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)"
GridRenderer.$246(_1=>0, _2=>0)
GridRenderer.click(Obj, undef)
"if(this.$24x())return;var _1=this.getEventRow(),_2=this.getEventColumn();return this.$246(_1,_2)"
Canvas.handleClick(_1=>Obj, _2=>undef)
EventHandler.bubbleEvent(_1=>[GridRenderer ID:isc_ListGrid_337_body], _2=>"click", _3=>undef, _4=>undef)
EventHandler.handleClick(_1=>[GridRenderer ID:isc_ListGrid_337_body], _2=>undef)
EventHandler.$k5(_1=>Obj{type:error}, _2=>undef)
EventHandler.handleMouseUp(_1=>Obj{type:error}, _2=>undef)
EventHandler.dispatch(_1=>EventHandler.handleMouseUp(), _2=>Obj{type:error})
anonymous(event=>undef)
"var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"
The error happens if I use this code:
rowEditorExit :
function (e, record, newValues, rowNum)
{
if (isc.isAn.emptyObject(newValues)) {
// suppress creation of new row if we're navigating away from
// an empty row
if (e == "arrow_down" || e == "tab") {
return false;
} else if (e != "programmatic") {
// navigating 'up' into an existing row from an empty row
this.discardEdits(rowNum);
return true;
}
}
return true;
}
and it happens when I am moving away from an empty edited record in the Grids. I can provide more details if you need.
Thanks