Page 1 of 1

Combo Box ListCollection

Posted: Tue Nov 10, 2009 9:49 pm
by bhowden
Is there a way to exclude items from a Combo box when you have a ListCollection. For example exclude those items that meet a certain condition such as past a certain date or a true false condition. Or is there a way to remove an item that is in the ListCollection if a certain condition is true/false or whatever.
I did see the removeItem option but can't get it to work.

Re: Combo Box ListCollection

Posted: Tue Nov 10, 2009 10:25 pm
by BeeJay
If you return null in the ComboBox::displayEntry method, then there will not be an entry in the ComboBox for that object. You can use this technique to suppress all entries from the underlying collection that you don't want displayed in the ComboBox.

Cheers,
BeeJay.