Using SmartGWT Pro, how should I code the following? Thanks.
1. A CheckboxItem that should be checked if database field "type" has a value of "CBN" otherwise unchecked. If user ticks the checkbox then I need to set "type" to "CBN" otherwise "PBN".
One way would be to use a ValueMap, is this the correct approach?
2. A set of CheckboxItems, say A to E, whose values all come from the same char(5) database field which contains Y or N corresponding to each CheckboxItem e.g. YYNNY means A, B and E should be checked and C and D should be unchecked. If the user checks or unchecks I need the database field to be updated.
1. A CheckboxItem that should be checked if database field "type" has a value of "CBN" otherwise unchecked. If user ticks the checkbox then I need to set "type" to "CBN" otherwise "PBN".
One way would be to use a ValueMap, is this the correct approach?
2. A set of CheckboxItems, say A to E, whose values all come from the same char(5) database field which contains Y or N corresponding to each CheckboxItem e.g. YYNNY means A, B and E should be checked and C and D should be unchecked. If the user checks or unchecks I need the database field to be updated.
Comment