Issue Details (XML | Word | Printable)

Key: BCMS-11
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Savvas Triantafyllou
Reporter: Savvas Triantafyllou
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
BetaCMS

Support for enumerations as a type for a StringProperty

Created: 09/Jan/09 01:32 PM   Updated: 19/Jan/09 10:13 AM
Component/s: betacms-repository
Affects Version/s: None
Fix Version/s: 2.1.0.CR1

Time Tracking:
Not Specified


 Description  « Hide
Until there is no way to define in XML Schema that a StringProperty may take specific values from an enumeration. For example, if there is a content type representing a CAR and we want to define a property to hold car's color, we have to provide the following definition

<xs:element name="color"
minOccurs="1"
maxOccurs="1"
bccmsmodel:description="The color of the car"
type="xs:string"/>
where there is no restriction on what the values for the color of the car are.

It would be nice to support the following


<xs:element name="color"
minOccurs="1"
maxOccurs="1"
bccmsmodel:description="The color of the car"
>
   <xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="RED" />
<xs:enumeration value="BLUE" />
    <xs:enumeration value="GREEN" />
</xs:restriction>
</xs:simpleType>
</xs:element>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Savvas Triantafyllou added a comment - 19/Jan/09 10:13 AM
Committed revision

betacms-repository-api 2264
betacms-repository-api 2265
betacms-repository 2267

Also updated betacms-webui to support enumerations by providing a select box as a ui component
for editing enumeration properties

betacms-webui 2278