I've found an error when combining selectItem/combobox with the following attributes: showFilterEditor:true and multiple:true.
The symptom is that the picklist is not shown from the second click.
In Chrome developer tool i get:
In the SmartClient Developer console i get the following:
Sample code for testing, starting from http://www.smartclient.com/#comboBoxStyled
Issue is present in version 8.1 and also in 8.2.
Thanks
The symptom is that the picklist is not shown from the second click.
In Chrome developer tool i get:
Code:
Uncaught TypeError: Cannot call method 'getValueFieldName' of undefined isc_c_EventHandler_dispatchISC_Core.js:1662 (anonymous function) ISC_Core.js:299Uncaught TypeError: Cannot call method 'getValueFieldName' of undefined isc_c_Class_fireCallbackISC_Core.js:299 isc_c_Timer__fireTimeoutISC_Core.js:1276 (anonymous function)
Code:
17:34:03.668:MUP6:WARN:Log:TypeError: _6 is undefined unnamed(undef, {Obj}, 0, 1, {Obj}) ListGrid._formatCellValue(undef, {Obj}, {Obj}, 0, 1) Class.invokeSuper(_1=>null, _2=>"$32v") Class.Super(_1=>"$32v", _2=>[object Arguments]) RecordEditor._formatCellValue(undef, {Obj}, {Obj}, 0, 1) ListGrid.getCellValue({Obj}, 0, 1, {Obj}) Class.invokeSuper(_1=>null, _2=>"getCellValue") Class.Super(_1=>"getCellValue", _2=>[object Arguments]) RecordEditor.getCellValue(null, 0, 1, {Obj}) anonymous(null, 0, 1, {Obj}) GridRenderer._getCellValue(null, 0, 1) GridRenderer.refreshCellValue(0, 1) ListGrid.refreshCellValue(0, 1, true, undef) ListGrid.refreshCell(0, 1, true) ListGrid.refreshRow(0) ListGrid.hideInlineEditor(false, true) ListGrid.setFields([object Array]) Class.invokeSuper(_1=>null, _2=>"setFields") Class.Super(_1=>"setFields", _2=>[object Arguments]) RecordEditor.setFields([object Array]) ListGrid.setFields([object Array]) unnamed() unnamed(undef, undef) unnamed() SelectItem.showPickList() SelectItem.handleClick({Obj}, undef, undef, undef) DynamicForm.bubbleItemHandler({Obj}, "handleClick", {Obj}) DynamicForm.handleClick({Obj}, undef) [c]EventHandler.bubbleEvent(_1=>{Obj}, _2=>"click") [c]EventHandler.handleClick(_1=>{Obj}) EventHandler._handleMouseUp([object MouseEvent], undef) [c]EventHandler.handleMouseUp(_1=>[object MouseEvent]) [c]EventHandler.dispatch(_1=>isc_c_EventHandler_handleMouseUp, _2=>[object MouseEvent]) anonymous([object MouseEvent]) unnamed() @ 17:34:04.322:RDQ9:WARN:Log:TypeError: _6 is undefined unnamed(undef, {Obj}, 0, 1, {Obj}) ListGrid._formatCellValue(undef, {Obj}, {Obj}, 0, 1) Class.invokeSuper(_1=>null, _2=>"$32v") Class.Super(_1=>"$32v", _2=>[object Arguments]) RecordEditor._formatCellValue(undef, {Obj}, {Obj}, 0, 1) ListGrid.getCellValue({Obj}, 0, 1, {Obj}) Class.invokeSuper(_1=>null, _2=>"getCellValue") Class.Super(_1=>"getCellValue", _2=>[object Arguments]) RecordEditor.getCellValue(null, 0, 1, {Obj}) anonymous(null, 0, 1, {Obj}) GridRenderer._getCellValue(null, 0, 1) GridRenderer.getTableHTML() GridRenderer.getInnerHTML(undef) Class.invokeSuper(_1=>null, _2=>"getInnerHTML") Class.Super(_1=>"getInnerHTML", _2=>[object Arguments]) GridBody.getInnerHTML(undef) Canvas._getInnerHTML() Canvas._updateInnerHTML(undef, undef, undef, undef, undef, undef, undef, undef) Class.invokeSuper(_1=>{Obj}, _2=>"$vn", _3=>undef, _4=>undef, _5=>undef, _6=>undef) GridRenderer._updateInnerHTML() Canvas._updateHTML() Canvas.redraw(false, undef, undef, undef, undef, undef, undef, undef) Class.invokeSuper(_1=>{Obj}, _2=>"redraw", _3=>false, _4=>undef, _5=>undef, _6=>undef) GridRenderer.redraw(false, undef, undef, undef, undef, undef, undef, undef) Class.invokeSuper(_1=>null, _2=>"redraw", _3=>false, _4=>undef, _5=>undef, _6=>undef) GridBody.redraw(false) [c]Canvas.clearRedrawQueue() [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) Timer._fireTimeout("$j4103") unnamed() unnamed() @
Code:
isc.DynamicForm.create({ ID:"testForm", width: 500, fields : [ { name: "fItemName", title: "Item Name", editorType: "comboBox", optionDataSource: "supplyItem", displayField:"itemName", valueField:"itemID", multiple:true, multipleAppearance : "picklist", pickListProperties: { showFilterEditor:true } }] });
Thanks
Comment