Hi everyone,
Is it possible to have a ListGrid connected to a JPA datasource to show for some of its fields a combobox from a linked table instead of a text box?
For example, my Customer datasource includes a “CustomerTypeID” which is a foreign key into the “CustomerTypes” table. The idea would be to show a combobox to choose from one entry in CustomerTypes instead of showing the CustomerTypeID in the list grid. (an extremely common technique in database front-end GUIs)
The “Large Value Map” SmartGWT EE example at http://www.smartclient.com/smartgwtee/showcase/#large_valuemap_sql does exactly what I need, but it is unfortunately for the DataSource.serverType=”sql”, while in my case the server datasource handler has serverConstructor="com.isomorphic.jpa.JPADataSource" in order to get JPA persistence working.
What is the best way to accomplish this commonly-used GUI technique under SmartGWT-EE & JPA? Would it be better to insert a correctly configured selectItem into the grid using the “createRecordComponent()” technique?
Many thanks for any hint you can offer... and *fantastic* work with SmartGWT!!
Jean-Pierre
Is it possible to have a ListGrid connected to a JPA datasource to show for some of its fields a combobox from a linked table instead of a text box?
For example, my Customer datasource includes a “CustomerTypeID” which is a foreign key into the “CustomerTypes” table. The idea would be to show a combobox to choose from one entry in CustomerTypes instead of showing the CustomerTypeID in the list grid. (an extremely common technique in database front-end GUIs)
The “Large Value Map” SmartGWT EE example at http://www.smartclient.com/smartgwtee/showcase/#large_valuemap_sql does exactly what I need, but it is unfortunately for the DataSource.serverType=”sql”, while in my case the server datasource handler has serverConstructor="com.isomorphic.jpa.JPADataSource" in order to get JPA persistence working.
What is the best way to accomplish this commonly-used GUI technique under SmartGWT-EE & JPA? Would it be better to insert a correctly configured selectItem into the grid using the “createRecordComponent()” technique?
Many thanks for any hint you can offer... and *fantastic* work with SmartGWT!!
Jean-Pierre
Comment