Hi
I'm using Smart GWT Pro 2.4.
I have a dynamic form bound to a data source.
The form.saveData() call is working perfect, except - how do I send hidden data back to the server.
In this case - the SelectItem ID.
My SelectItem display a description, but also have the database ID hidden in the datasource.
See the following code extract:
The save data bring back the description of the option selected, but I need the ID.
Can anyone help please?
I'm using Smart GWT Pro 2.4.
I have a dynamic form bound to a data source.
The form.saveData() call is working perfect, except - how do I send hidden data back to the server.
In this case - the SelectItem ID.
My SelectItem display a description, but also have the database ID hidden in the datasource.
See the following code extract:
Code:
DataSourceTextField description = new DataSourceTextField("Description", "description", 30);
DataSourceTextField id = new DataSourceTextField("code", "Code", 2);
id.setHidden(true);
DataSource dataSource = new DataSource();
dataSource.setID("dataSourceName");
dataSource.setFields(description, id);
SelectItem mySelect = new SelectItem("fieldName", "title");
mySelect.setOptionDataSource(dataSource);
Can anyone help please?
Comment