BEHAVIOR of sortField with editing vs filtering:
The pull down when editing sorts the continents.
Versus when filtering continents, the pull down for filtering does not list the continents in a sorted order?
ENVIRONMENT:
1.smartgwtpower-3.0p downloaded on 09-18-2012
2. MacOSX 10.8.1,
Eclipse Indigo Service Release 2 Build id: 20120216-1857
chrome and eclipse:runOnServer
Tomcat 7.0.27
3,4, and 5 not apropos
MODIFICATIONS TO EXAMPLE in EE Showcase:
Variation of SmartGWT EE Showcase->Java Data Integration -> SQL ->Basic Connector.
1. I imported the world.data.xml into MySQL.
2. I normalized the table by adding a Continent table.
3. I added attribute sortField to the continent field.
and
The pull down when editing sorts the continents.
Versus when filtering continents, the pull down for filtering does not list the continents in a sorted order?
ENVIRONMENT:
1.smartgwtpower-3.0p downloaded on 09-18-2012
2. MacOSX 10.8.1,
Eclipse Indigo Service Release 2 Build id: 20120216-1857
chrome and eclipse:runOnServer
Tomcat 7.0.27
3,4, and 5 not apropos
MODIFICATIONS TO EXAMPLE in EE Showcase:
Variation of SmartGWT EE Showcase->Java Data Integration -> SQL ->Basic Connector.
1. I imported the world.data.xml into MySQL.
2. I normalized the table by adding a Continent table.
3. I added attribute sortField to the continent field.
Code:
<DataSource ID="worldDS" serverType="sql" tableName="worldDS" > <fields> <field name="pk" type="sequence" hidden="true" primaryKey="true" /> <field name="countryCode" type="text" title="Code" required="true" /> <field name="countryName" type="text" title="Country" required="true" /> <field name="capital" type="text" title="Capital" /> <field name="government" type="text" title="Government" length="500" /> <field name="continent" type="integer" title="Continent" optionDataSource="Continent" valueField="pk" displayField="name" sortField="name" /> <field name="independence" type="date" title="Nationhood" /> <field name="area" type="float" title="Area (km2)" /> <field name="population" type="integer" title="Population" /> <field name="gdp" type="float" title="GDP ($M)" /> <field name="member_g8" type="boolean" title="G8" /> </fields> </DataSource>
Code:
<DataSource ID="Continent" serverType="sql" tableName="Continent" > <fields> <field name="pk" type="sequence" hidden="true" primaryKey="true" /> <field name="name" type="text" title="Continent" required="true" /> </fields> </DataSource>
Comment