I have rowEndEditAction: next and editByCell : false for my list grid.
I have code like this in 4 th column of grid.
{name:"notionalCurrency", title:"", wrapTitle:true, width:"5%", align:"left",type:"text", editorType:"SelectItem",showHover:true,canEdit: true,
editorEnter: function (record, value, rowNum, colNum, grid)
{
//isc.logWarn("inside editorEntered notional Currency");
var notionalAmtCurrValues = Array.create();
notionalAmtCurrValues.add({"notionalCurrency" : ""});
notionalAmtCurrValues.add({"notionalCurrency" : sellCurrency});
notionalAmtCurrValues.add({"notionalCurrency" : buyCurrency});
var valueMap = notionalAmtCurrValues.getProperty("notionalCurrency");
grid.setValueMap("notionalCurrency", valueMap);
}
}
},
When i hit tab on last editable field, it goes to next row for edit.
So as i have edit by row set i think while starting editing, editorEntered gets called for all cell and later focus of row is set to first one.
So on tab on last editable row it tries set focus on first editable field of next row and in this process it call this editorEntered of 4th editable cell on the row.
last line : grid.setValueMap(“notionalCurrency”, valueMap);
fails with following error.
11:20:54.566:WARN:Log:Error:
‘‘this.formItem’ is null or not an object’
in http://…
at line 684
PickListMenu.hide(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
“this.invokeSuper(isc.PickListMenu,“hide”,_1,_2,_3,_4);if(this.showModal)this.formItem.focusInItem();this.formItem.$19g=null;this.formItem.$19h();delete this.formItem.$19i”
FormItem.destroy()
DynamicForm.removeItems(_1=>Array[14])
DynamicForm.setItems(_1=>Array[14], _2=>undef)
ListGrid.makeEditForm(_1=>1, _2=>0)
ListGrid.showInlineEditor(_1=>1, _2=>0, _3=>true, _4=>true, _5=>undef)
ListGrid.$31u(_1=>1, _2=>0, _3=>undef)
ListGrid.$32f(_1=>“tab”, _2=>0, _3=>6, _4=>1, _5=>0)
ListGrid.cellEditEnd(_1=>“tab”, _2=>undef)
ListGrid.editorKeyPress(_1=>[TextItem ID:isc_TextItem_23 name:orderPartyRef], _2=>“Tab”, _3=>undef)
[a]DynamicForm.itemKeyPress(_1=>[TextItem ID:isc_TextItem_23 name:orderPartyRef], _2=>“Tab”, _3=>undef)
FormItem.$18d(_1=>[TextItem ID:isc_TextItem_23 name:orderPartyRef], _2=>[DynamicForm ID:isc_DynamicForm_15], _3=>“Tab”, _4=>undef)
FormItem.handleKeyPress(_1=>Obj, _2=>Obj)
EventHandler.bubbleEvent(_1=>[TextItem ID:isc_TextItem_23 name:orderPartyRef], _2=>“keyPress”, _3=>Obj, _4=>undef)
EventHandler.handleKeyPress(_1=>Obj{type:error}, _2=>undef)
EventHandler.$j9(_1=>Obj{type:error})
EventHandler.dispatch(_1=>EventHandler.$j9(), _2=>Obj{type:error})
anonymous(event=>undef)
“var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;”
If i comment this setValueMap line, every thing is ok except my dropdown will be empty.
what is that i am missing to set ?