Hi,
previous builds I tried always crashed the hosted mode when I clicked the pulldown icon on a SelectItem, SmartGWT EE build from 2010-11-25 finally gives me some more information:
Though I'm not sure if I can do anything about it myself. Any in-depth explanation would be great as I then maybe can figure out these errors in future myself.
I've checked the JS source code, and I guess it's this function in form\PickList.js and I assume "_isGeneratedField" is null in my case:
Custom formatter? Yes, zzzEnum extends SimpleType by super("zzzEnum", FieldType.ANY) and uses the same custom SimpleTypeFormatter which is used for setNormalDisplayFormatter and setShortDisplayFormatter.
The field is then also bound to a custom editor which extends ComboBoxItem and has a custom setEditorValueFormatter and setInputTransformer.
My DS definition of the field:
SmartGWT EE 2010-11-25 hosted mode IE8.
In IE8 compiled mode, no JS error seems to occur, the dropdown just doesn't show.
previous builds I tried always crashed the hosted mode when I clicked the pulldown icon on a SelectItem, SmartGWT EE build from 2010-11-25 finally gives me some more information:
Code:
com.smartgwt.client.core.JsObject$SGWT_WARN: 14:11:22.109:TMR6:WARN:Log:Error:
''this.pickList.getField(...).$720' is null or not an object'
in http://127.0.0.1:8888/zzz/sc/modules/ISC_Forms.js
at line 1937
PickList.formatPickListValue(_1=>"P place", _2=>"309", _3=>Obj)
PickListMenu.$315(_1=>"P place", _2=>Obj, _3=>Obj{name:309}, _4=>0, _5=>0)
ListGrid.getCellValue(_1=>Obj, _2=>0, _3=>0, _4=>[GridBody ID:isc_PickListMenu_0_body])
[o]GridBody.getCellValue(record=>Obj, rowNum=>0, colNum=>0, gridBody=>[GridBody ID:isc_PickListMenu_0_body])
GridRenderer.$22k(_1=>Obj, _2=>0, _3=>0)
GridRenderer.getTableHTML(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef)
GridRenderer.getInnerHTML(undef)
Class.invokeSuper(_1=>null, _2=>"getInnerHTML", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
Class.Super(_1=>"getInnerHTML", _2=>Obj{length:1}, _3=>undef)
GridBody.getInnerHTML(undef)
Canvas.$px(_1=>undef)
Canvas.$p8(_1=>true)
Canvas.draw(_1=>undef, undef, undef, undef, undef, undef, undef, undef)
** recursed on Class.invokeSuper
I've checked the JS source code, and I guess it's this function in form\PickList.js and I assume "_isGeneratedField" is null in my case:
Code:
formatPickListValue : function (value,fieldName,record) {
// apply standard formatter to the value in the single generated field for
// standard pick lists.
// This handles formatters applied via simpleType as well as any
// 'formatValue()' method applied to this item
if (this.pickList.getField(fieldName)._isGeneratedField) {
return this._formatDataType(value);
}
return value;
},
_isGeneratedField ::
// hang a flag on the field object as being auto-generated.
// in this case we'll assign our custom formatter to it.
// Otherwise the user is on their own.
fieldObj._isGeneratedField = true;
The field is then also bound to a custom editor which extends ComboBoxItem and has a custom setEditorValueFormatter and setInputTransformer.
My DS definition of the field:
Code:
<field zzzId="309" name="locationTypeEnumID" title="locationType" type="zzzEnum" javaClass="zzz.zzzEnum" crud="15" > <valueMap> <value ID="445">P place</value> <value ID="446">Motorway</value> </valueMap> </field>
SmartGWT EE 2010-11-25 hosted mode IE8.
In IE8 compiled mode, no JS error seems to occur, the dropdown just doesn't show.
Comment