Forums / Developer / Ordering output of ezselection
Eric Weik
Friday 28 January 2005 6:31:30 pm
I've worked on a number of projects where we ended up using a custom selection datatype instead of ezselection simply because the items in the selection may change over time. I.e. lets say that a class has an attribute with the following initial options: Red Yellow BlueViolet
But later this needs to be updated with orange and green. Right now our only option is to do "new options" twice, resulting in a rainbow that is out of order: Red Yellow Blue Violet OrangeGreen
My solution has always been to create a new datatype for these that actually stores its values as text. This way the creation of the dropdown comes from a template (and can easily be re-ordered). However, creating a new datatype is somewhat arduous (and does not encourage re-use).
Anyone have any suggestions on how to work around this, or should I just add a suggestion to the bug tracker?
-Eric