AnsweredAssumed Answered

Assigning More than One Value for a Model Attribute

Question asked by partha on Mar 14, 2008
Latest reply on Mar 27, 2008 by acis
Hi,
     I have created my Custom Content Model which has all the basic attributes like Name, Category, Company , Location etc. and i have one attribute called employeeId and it should have more than one value at a time, means user will be allowed to set more than one value at a time for this.
     I want to know how i can achieve this.

     <property name="hrao:employeeId">
        <type>d:text</type>
        <mandatory enforced="true">true</mandatory>
        <multiple>false</multiple>
     </property>

Currently if i set two values one by one by the following way it takes only the last value assigned, not all the values.
         newChildNode.setProperty("sam:employeeId","12341");
         newChildNode.setProperty("sam:employeeId","12340");

If any other way is there to solve this please give me that solutions.
Thanks in Advance.

Outcomes