Hello,
I have two data sources - brand and car. Each car has field brand, that is of type brand. This maps well with my server side ORM data mapping.
In UI I have a DynamicForm, that set with car DataSource. Inside I have a field of type ComboBoxItem with OptionDataSource: brand and value field = "id" and display field = "name".
My problem is when I open an existing car within this form. I can't make ComboBoxItem to select specified brand.
I'm using Smart GWT Pro 2.4.
Any suggestions ?
Best Regards,
paco
I have two data sources - brand and car. Each car has field brand, that is of type brand. This maps well with my server side ORM data mapping.
Code:
<DataSource
ID="brand"
serverType="generic"
>
<fields>
<field name="id" type="text" hidden="true" primaryKey="true"/>
<field name="name" type="text" title="Name" />
</fields>
...
</DataSource>
Code:
<DataSource
ID="car"
serverType="generic"
>
<fields>
<field name="id" type="text" hidden="true" primaryKey="true"/>
<field name="name" type="text" title="Name" />
<field name="brand" type="brand" title="Brand" />
</fields>
...
</DataSource>
My problem is when I open an existing car within this form. I can't make ComboBoxItem to select specified brand.
I'm using Smart GWT Pro 2.4.
Any suggestions ?
Best Regards,
paco
Comment