Forums / Developer / ezOption question / Comment44251

Author Topic

Marin Orlic

Wednesday 23 November 2005 10:59:14 am

Comment44251

Is there a way to specify the option list directly in the class definition? For instance, I need a rating system for content objects, allowing users to rate the object (for instance, rate each movie from 1 to 5).

It would be a hassle to force users to enter 1, 2, 3, 4, 5 each time a content object is created?

As far as I can tell, a suitable datatype for this would be ezoption, but it's values cannot be specified in class definition. I would prefer something like ezselection or ezrangeoption...

Any hints?

Thx,
M.