Hi,
I've probably found a bug in ListGrid.fetch().
There is a difference in handling below two calls. And I assume there shouldn't be.
When you call the second one to a ListGrid with a filter editor showed you can use this editor only once. Second filter attempt will produce an error:
Strange thing that with new Criteria() call instead of new AdvancedCriteria() it all works fine. So there is a probably a bug with handling AdvancedCriteria.
GWT 2.5.1
SmartGWT 3.1p 2013-05-22
Best regards
Mariusz Goch
I've probably found a bug in ListGrid.fetch().
There is a difference in handling below two calls. And I assume there shouldn't be.
Code:
listGrid.fetch(new Criteria()); listGrid.fetch(new AdvancedCriteria());
Code:
15:50:39.062:KPR6:WARN:Log:TypeError: _4 is undefined Stack from error.stack: DataSource.compareAdvancedCriteria(_1=>{Obj}, _2=>{Obj}) @ admin,desktop,compress,sc,ISC_DataBinding:919 unnamed({Obj}, {Obj}, {Obj}, {Obj}) @ admin,desktop,compress,sc,ISC_DataBinding:954 DataSource.compareAdvancedCriteria(_1=>{Obj}, _2=>{Obj}, _3=>{Obj}) @ admin,desktop,compress,sc,ISC_DataBinding:919 DataSource.compareCriteria(_1=>{Obj}, _2=>{Obj}, _3=>{Obj}, _4=>undef) @ admin,desktop,compress,sc,ISC_DataBinding:819 ResultSet.compareCriteria(_1=>{Obj}, _2=>{Obj}, _3=>{Obj}) @ admin,desktop,compress,sc,ISC_DataBinding:1266 ResultSet._willFetchData({Obj}, "substring") @ admin,desktop,compress,sc,ISC_DataBinding:1269 ResultSet.willFetchData(_1=>{Obj}, _2=>"substring") @ admin,desktop,compress,sc,ISC_DataBinding:1266 RecordEditor.performFilter(_1=>undef, _2=>undef) @ admin,desktop,compress,sc,ISC_Grids:2341 RecordEditor.performAction() @ admin,desktop,compress,sc,ISC_Grids:2337 RecordEditor.cellEditEnd(_1=>"enter") @ admin,desktop,compress,sc,ISC_Grids:2352 ListGrid.editorKeyPress(_1=>{Obj}, _2=>"Enter", _3=>13) @ admin,desktop,compress,sc,ISC_Grids:676 [a]MathFunction.invokeSuper(_1=>null, _2=>"editorKeyPress") @ admin,desktop,compress,sc,ISC_Core:225 [a]MathFunction.Super(_1=>"editorKeyPress", _2=>{Obj}) @ admin,desktop,compress,sc,ISC_Core:218 RecordEditor.editorKeyPress({Obj}, "Enter", 13) @ admin,desktop,compress,sc,ISC_Grids:2355 unnamed({Obj}, "Enter", 13) @ admin,desktop,compress,sc,ISC_Grids:643 FormItem._fireKeyPressHandlers({Obj}, {Obj}, "Enter", 13) @ admin,desktop,compress,sc,ISC_Forms:954 FormItem.handleKeyPress({Obj}, {Obj}) @ admin,desktop,compress,sc,ISC_Forms:951 [a]MathFunction.invokeSuper(_1=>null, _2=>"handleKeyPress") @ admin,desktop,compress,sc,ISC_Core:225 [a]MathFunction.Super(_1=>"handleKeyPress", _2=>{Obj}) @ admin,desktop,compress,sc,ISC_Core:218 TextItem.handleKeyPress({Obj}, {Obj}) @ admin,desktop,compress,sc,ISC_Forms:1242 [c]EventHandler.bubbleEvent(_1=>{Obj}, _2=>"keyPress", _3=>{Obj}) @ admin,desktop,compress,sc,ISC_Core:1163 [c]EventHandler.handleKeyPress(_1=>[object KeyboardEvent]) @ admin,desktop,compress,sc,ISC_Core:970 EventHandler._handleNativeKeyPress([object KeyboardEvent]) @ admin,desktop,compress,sc,ISC_Core:967 [c]EventHandler.dispatch(_1=>isc_c_EventHandler__handleNativeKeyPress, _2=>[object KeyboardEvent]) @ admin,desktop,compress,sc,ISC_Core:1193 anonymous([object KeyboardEvent]) @ admin,desktop,compress,sc,ISC_Core:41 unnamed() @
GWT 2.5.1
SmartGWT 3.1p 2013-05-22
Best regards
Mariusz Goch
Comment