Add a simple datasource to the BuiltInDS example to reproduce the following.
Seems that when I have some datasource that might look like
And I want to autoDeriveSchema but also rename some column(s) via nativeName (http://www.smartclient.com/smartgwte...tml#nativeName)
SmartGWT issues the following SQL:
Instead of merging the definitions up and selecting the column once. What this does, of course, is cause components with no field component-level overrides (e.g.,'pattern reuse' forms, default filterbuilders, etc.) to carry that definition twice - once with the name as defined on the underlying table (state_uk) and once with the alias (stateId).
Bug?
SmartGWT 2.5 nightly eval (2/23 build)
Seems that when I have some datasource that might look like
Code:
<DataSource ID="STATE" serverType="sql" tableName="STATE"> <fields> <field name="STATE_UK" type="number"/> <!-- and so on --> </fields> </DataSource>
Code:
<DataSource ID="state" serverType="sql" tableName="state" autoDeriveSchema="true"> <fields> <field name="stateId" nativeName="STATE_UK"/> </fields> </DataSource>
Code:
SELECT [b]STATE.STATE_UK[/b], STATE.DESCRIPTION, [b]STATE.STATE_UK AS stateId[/b], STATE.STATE_CODE, STATE.REGION_UK, STATE.COUNTRY_UK FROM STATE WHERE ('1'='1')
Bug?
SmartGWT 2.5 nightly eval (2/23 build)
Comment