Hi,
I'm using SmartClient Version: v8.3p_2014-03-06/PowerEdition Deployment (built 2014-03-06) (SmartGWT 3.1p) with PostgreSQL 9.2.2, Firefox 26 and Tomcat 7.0.33.
I have some look up tables in the database. I want to use includeFrom to reference the values in these tables.
I have been using 'Smart GWT EE Showcase - Java Data Integration - SQL - Field Include' from your web site as an example of how to do this.
Referencing the look up table with includeFrom worked fine for the value in the listGrid. Your example shows a pull down list in the FilterEditor for the Country column and this pull down list is populated with entries from the datasource countryIncludeFromSQL.ds.xml. My result was different. I was getting the list of values from the original data source. Not the includeFrom dataSource.
Eventually I copied the code from your example into my application and the behavior of your example changed. It started showing the list of countries from the cityIncludeFromSQL.ds.xml dataSource instead of countryIncludeFromSQL.ds.xml. This behavior was consistent with how my code was behaving. I then figured out that I needed to use setFilterEditorProperties on the list grid field to provide an optionDataSource and a displayField for the FilterEditor.
I don't understand why the Showcase gets the correct pull down in the FilterEditor when the source it shows doesn't include the setFilterEditorProperties call. Is the SmartGWT version used for the showcase on your website smarter than the version I'm using? Is the optionDataSource being set somewhere else that I missed? Is the code that is running the example different than the source shown with the 'View Source' button?
I'm confused. Please help.
Thanks,
Kevin
I'm using SmartClient Version: v8.3p_2014-03-06/PowerEdition Deployment (built 2014-03-06) (SmartGWT 3.1p) with PostgreSQL 9.2.2, Firefox 26 and Tomcat 7.0.33.
I have some look up tables in the database. I want to use includeFrom to reference the values in these tables.
I have been using 'Smart GWT EE Showcase - Java Data Integration - SQL - Field Include' from your web site as an example of how to do this.
Referencing the look up table with includeFrom worked fine for the value in the listGrid. Your example shows a pull down list in the FilterEditor for the Country column and this pull down list is populated with entries from the datasource countryIncludeFromSQL.ds.xml. My result was different. I was getting the list of values from the original data source. Not the includeFrom dataSource.
Eventually I copied the code from your example into my application and the behavior of your example changed. It started showing the list of countries from the cityIncludeFromSQL.ds.xml dataSource instead of countryIncludeFromSQL.ds.xml. This behavior was consistent with how my code was behaving. I then figured out that I needed to use setFilterEditorProperties on the list grid field to provide an optionDataSource and a displayField for the FilterEditor.
I don't understand why the Showcase gets the correct pull down in the FilterEditor when the source it shows doesn't include the setFilterEditorProperties call. Is the SmartGWT version used for the showcase on your website smarter than the version I'm using? Is the optionDataSource being set somewhere else that I missed? Is the code that is running the example different than the source shown with the 'View Source' button?
I'm confused. Please help.
Thanks,
Kevin
Comment