From: Ittay D. <it...@ql...> - 2007-01-01 09:27:57
|
can i create an attribute whose type is some enumeration? the point is to have an attribute that accepts string values, but still be able to create order, and use comparisons in queries. my use case is a 'product_version' attribute. I'd like for different components to state since what product version they exist ('since version 1.2'). i want then to be able to list all components for a given version (something like [[product_version:=<1.3]]). version names can be anything (e.g. 'xp'). so i want to be able to map them in the attribute page (or type of). then i'd assign to 1.1 the value of 1, to 1.2 the value of 2, to 'xp' the value of 3, etc. when new versions come (incl. minor versions), i'll update the page, inserting the version and its sequence number (maybe bumping others) thanks, ittay -- =================================== Ittay Dror, Chief architect, openQRM group leader, R&D, Qlusters Inc. it...@ql... +972-3-6081994 Fax: +972-3-6081841 www.openqrm.org - Data Center Provisioning |