AnsweredAssumed Answered

Problem with extension propertie

Question asked by toze on Jul 1, 2010
Latest reply on Jul 1, 2010 by toze
Hi.
I made an extensio and created the propertie

<type name="custom:Production">
         <title>Production</title>
         <parent>cm:content</parent>
         <properties>
            <property name="custom:ProductionNr">
               <title>Production number</title>
               <type>d:text</type>
               <mandatory enforced="true">false</mandatory>
            <index enabled="true">
              <atomic>true</atomic>
              <stored>false</stored>
                  <tokenised>both</tokenised>
               </index>
            </property>

then when i create a new file i want to set the propertie like this

QName propertiesQname = QName.createQName("custom.model", propertyName);
nodeService.setProperty(nodeRefInsertedFile, propertiesQname, propertyValue);

but its giving this error to me: A QName must consist of a local name

Anyone can help?

Outcomes