AnsweredAssumed Answered

Association default value

Question asked by cgiuliano on Apr 4, 2014
Latest reply on May 28, 2014 by krutik.jayswal
Hello everybody,

I've defined an aspect including an association to a datalist:

<association name="ax:tenant" >
   <source>
      <!– The association to a tenant is mandatory –>
      <mandatory>true</mandatory>
      <many>false</many>
   </source>
   <target>
      <class>axdl:tenants</class>
      <!– The associated node must exist in the target class –>
      <mandatory>true</mandatory>
      <many>false</many>
   </target>
</association>
I need such association to be mandatory.

But then I cannot manually add the aspect to a node from Share, because the required association would be not present until I associate the node. And this is quite annoying during development and maintenance.

Is there any way to define a default value for an association?
I would like to avoid to build a custom action for each aspect with a mandatory property/association.

Thanks,
Carlo

Outcomes