CMDBuild Forum

How to set a fixed string value for an attribute

Hi , I cant seem to find a way to set a fixed string value for an attribute.

In particular, I am trying the following:

Each class should have a TYPE field containing a 2 or 3 letter code for the class

Class 'Server' should have an attribute 'TYPE' and it s value should be 'SRV'

Class 'Switch' should have an attribute 'TYPE' and its value should be 'SW'

Class 'Port' should have an attribute 'TYPE' and its value should be 'PT', etc....

How would I implement this?

You can find here some suggestions on the same subject:
   http://www.cmdbuild.org/forum/forum-in-english/908224516
   http://www.cmdbuild.org/forum/forum-in-english/452549010

Fabio