Hi all,
My question is this: can you make a composed type and use it in a datasource so that the value and unit are displayed in one field (listgrid field) and can be modified in that one field as well?
Some more background/info:
Our existing application makes use of several composed types (Currency, Duration, Distane, etc.). On database level these are stored as seperate fields, but in code (or on our existing rich client) we always use the composed type.
Example: Distance consists of a distance (double) and distanceUnit (integer).
I am stuck on how to do the same with smartClient. I have tried several things like making a simpletype "Duration" (with the above two fields) or even a "Duration" pojo and using the setJavaClass() function on datasourcefield but to no effect.
If anybody has an example of how he/she implemented a composed type or knows how to solve this problem, I would be very gratefull!
To make it a bit more interesting we are trying to avoid validators and/or formatters.
Thanks a lot
Bart
My question is this: can you make a composed type and use it in a datasource so that the value and unit are displayed in one field (listgrid field) and can be modified in that one field as well?
Some more background/info:
Our existing application makes use of several composed types (Currency, Duration, Distane, etc.). On database level these are stored as seperate fields, but in code (or on our existing rich client) we always use the composed type.
Example: Distance consists of a distance (double) and distanceUnit (integer).
I am stuck on how to do the same with smartClient. I have tried several things like making a simpletype "Duration" (with the above two fields) or even a "Duration" pojo and using the setJavaClass() function on datasourcefield but to no effect.
If anybody has an example of how he/she implemented a composed type or knows how to solve this problem, I would be very gratefull!
To make it a bit more interesting we are trying to avoid validators and/or formatters.
Thanks a lot
Bart
Comment