cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with extension propertie

toze
Champ in-the-making
Champ in-the-making
Hi.
I made an extensio and created the propertie

<type name="customSmiley Tongueroduction">
         <title>Production</title>
         <parent>cm:content</parent>
         <properties>
            <property name="customSmiley TongueroductionNr">
               <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?
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
QNames are either short format e.g. prefix:value or long format {fullnamespace}value.

"custom.model" does not look like either of the above patterns.

toze
Champ in-the-making
Champ in-the-making
like this?
QName propertiesQname = QName.createQName(nameSpace.getNamespaceURI("custom"), propertyName);