Hello,
I am using SmartClientOperations.wsdl with Axis2 and hibernate on the server side.
I have a lot of database fields which shoud be combobox'ed. Drop down values should be a list of already saved values in this field through all records.
This is nicely handled by setOptionDataSouce(), but repeating values are on the list, too. In my case, I do not need to distinguish records with the same value in the field. I just need a distinct list of already entered values stored in the database (there are thousands of records, but only hundreds of unique field values).
Could you suggest the right way to go ?
I could do datasource.fetchData and fill LinkedHashMap using rowData adding unique only values, but this is a kind of "disconnected" from datasource once done, so newly entered and saved form values are not listed.
Thanks,
MichalG
I am using SmartClientOperations.wsdl with Axis2 and hibernate on the server side.
I have a lot of database fields which shoud be combobox'ed. Drop down values should be a list of already saved values in this field through all records.
This is nicely handled by setOptionDataSouce(), but repeating values are on the list, too. In my case, I do not need to distinguish records with the same value in the field. I just need a distinct list of already entered values stored in the database (there are thousands of records, but only hundreds of unique field values).
Could you suggest the right way to go ?
I could do datasource.fetchData and fill LinkedHashMap using rowData adding unique only values, but this is a kind of "disconnected" from datasource once done, so newly entered and saved form values are not listed.
Thanks,
MichalG
Comment