Ok, here's the problem. We want a way for the user to deselect a combobox (i.e. to change from returning a value to returning null).
This was a late addition to requirements as we have a huge number of comboboxes defined in many DB tables and I would REALLY like a better way than going into every single table and adding a null value to the list of combobox options. Frankly having an "empty" option on the combobox at all doesn't sound all that attractive but I can't think of any other way to return a combobox to a "null" state that your normal user could easily understand and use.
Is there a way to alter the ResultSet so that on dataArrived I can just slip in a pair of empty objects? I'm already overriding dataArrived globally to do some checking so adding an object to the set there sounds fairly convenient but I'm not sure what the object structure should be in a combobox result set or if its read only.
Can anyone give me some guidance on this?
Thanks
This was a late addition to requirements as we have a huge number of comboboxes defined in many DB tables and I would REALLY like a better way than going into every single table and adding a null value to the list of combobox options. Frankly having an "empty" option on the combobox at all doesn't sound all that attractive but I can't think of any other way to return a combobox to a "null" state that your normal user could easily understand and use.
Is there a way to alter the ResultSet so that on dataArrived I can just slip in a pair of empty objects? I'm already overriding dataArrived globally to do some checking so adding an object to the set there sounds fairly convenient but I'm not sure what the object structure should be in a combobox result set or if its read only.
Can anyone give me some guidance on this?
Thanks
Comment