Hi,
I am experiencing a strange behavior using the list grid filter editor.
When I put my search term inside a text column an confirm the filter, the search term "magically" appears on every column configured with an optionDataSource.
I've attached a screenshot where you can see the serch term propagated (cloned) to the other columns (only the date is clean).
I noticed when I use the filter the GWT log shows several warnings like this:
04:15:04.787 [ERROR] 15:04:21.781:TMR6:WARN:RestDataSource:myDS:Operator iContains is not valid for field fieldName. Continuing anyway.
com.smartgwt.client.core.JsObject$SGWT_WARN: 15:04:21.781:TMR6:WARN:RestDataSource:myDS:Operator iContains is not valid for field fieldName. Continuing anyway.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
To be more precise, I have several ListGrids, representing filtered views over the same datasource instance, and every listgrid is added to a tab bar as follows:
What's wrong with my code?
Am I missing something like filterEditorProperties for list grid fields? I've considered them optional...
At client side I'm using
SmartClient Version: 8.0/LGPL Development Only (built 2010-05-18)
GWT 2.0.4
Firefox 3.6.9
at server side Grails 1.3.4
Kind regards
Davide
I am experiencing a strange behavior using the list grid filter editor.
When I put my search term inside a text column an confirm the filter, the search term "magically" appears on every column configured with an optionDataSource.
I've attached a screenshot where you can see the serch term propagated (cloned) to the other columns (only the date is clean).
I noticed when I use the filter the GWT log shows several warnings like this:
04:15:04.787 [ERROR] 15:04:21.781:TMR6:WARN:RestDataSource:myDS:Operator iContains is not valid for field fieldName. Continuing anyway.
com.smartgwt.client.core.JsObject$SGWT_WARN: 15:04:21.781:TMR6:WARN:RestDataSource:myDS:Operator iContains is not valid for field fieldName. Continuing anyway.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
To be more precise, I have several ListGrids, representing filtered views over the same datasource instance, and every listgrid is added to a tab bar as follows:
Code:
final Tab tabA = new Tab ("Tab A"); tab.setID ("tabA"); ListGrid gridA = new ListGrid (); gridA.setDataSource (SomeDataSource.getInstance()); gridA.setShowFilterEditor (true); final ListGridField textField = new ListGridField ("name"); final ListGridField option1Field = new ListGridField ("option1Field"); option1Field.setOptionDataSource (Option1DataSource.getInstance ()); option1Field.setValueField ("id"); option1Field.setDisplayField ("name"); final ListGridField option2Field = new ListGridField ("option2Field"); option2Field.setOptionDataSource (Option2DataSource.getInstance ()); option2Field.setValueField ("id"); option2Field.setDisplayField ("name"); gridA.setFields (textField, option1Field, option1Field /* and so on */); tabA.setPane (gridA); tabSet.addTab (tabA); //and so on for other tabs using other listGrids based on the same DataSource
Am I missing something like filterEditorProperties for list grid fields? I've considered them optional...
At client side I'm using
SmartClient Version: 8.0/LGPL Development Only (built 2010-05-18)
GWT 2.0.4
Firefox 3.6.9
at server side Grails 1.3.4
Kind regards
Davide
Comment