Skip to Content
0
Former Member
Sep 18, 2015 at 08:26 AM

data model : specify default value of localized enum

838 Views

Hi all!

  I hava an attribute of enum in my model . and i want to set default value like this:

             <attribute qualifier="xxxxxxx" type="localized:xxxxxxxEnum" metatype="VariantAttributeDescriptor">
                 <description>xxxxxxxx</description>
                 <modifiers read="true" write="true" search="true" encrypted="false" optional="true" removable="true" initial="false" unique="false" private="false" partof="false" dontOptimize="false"/>
                 <persistence type="property"/>
                 <defaultvalue>em().getEnumerationValue("xxxxxxxEnum","Y")</defaultvalue>
             </attribute>

 but unfortunately , it is not effect. 

Any idears to how to set default value? Thanks and regards !