09-17-2008 02:38 AM
I typically initialize an ObjectChoiceField like this:
String  messages = GetMessageList();
cboMessages = new ObjectChoiceField("Pick a message", messages );
And this works great. However, later on I want to delete all entries and add a new list to the ObjectChoiceField.
I can't seem to find how to clear the ObjectChoiceField and I also don't see any way to insert new items?
Am I missing something massively simple?
Solved! Go to Solution.
09-17-2008 04:15 AM
Try the ObjectChoiceField setChoices(Object choices) method, so in your case you would say
I generally do an invalidate() after I've done a setChoices(), just to be sure the Field is updated on the screen.