05-25-2020 10:09 AM
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
05-25-2020 02:14 PM
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.
10-06-2022 12:33 PM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.