Hello All,
I have to implement "d:noderef" datatype in a model. I have done this till now in one aspect.
<property name="sc:abc"> <type>d:noderef</type> <mandatory>true</mandatory> <multiple>true</multiple>
</property>
And when I try to add this aspect on a file it shows "could not update aspect".
Please help to solve the problem.
Thanks,
Dhrumil
Please share the whole aspect details and error. With partial info can't tell what could be wrong.
Have a look at this sample aspect as to how to configure a property with d:noderef
<aspect name="demo:referenceable"> <title>Referenceable</title> <description>Referenceable</description> <properties> <property name="demo:reference"> <title>Reference</title> <description>Reference node between a and b</description> <type>d:noderef</type>
<mandatory>true</mandatory>
<multiple>false</multiple> </property> </properties> </aspect>
Hope this helps.
let @abhinavmishra14 correct me if I'm wrong, but if you want to create a custom property, which will be set by the user in the "Edit Properties" box, then it should not have the "d:noderef" type. Form data will be passed as String to the FormProcessor so it will be a "d:text". However, you can freely keep NodeRef value as String so it's not a big problem
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.