AnsweredAssumed Answered

Access to aspect association via java script

Question asked by akudinov on Aug 18, 2011
Latest reply on Nov 5, 2012 by krups
Hello

I have aspect with association like this:


<aspect name="control:control">
         <title>Control</title>
         <properties>
            <property name="control:resolution">
               <title>Resolution</title>
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
         </properties>
         <associations>
            <association name="control:responsible-persons">
               <title>Responsible person</title>
                                         <source>
                                            <mandatory>false</mandatory>
                                            <many>true</many>
                                         </source>
                <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
                 </target>
            </association>
      </associations>
      </aspect>

If I want an access to document aspect simple properties - I use:
document.properties["control:resolution"]

But I want to access aspect association, for example username of person.

Can you help me ?

Thank you

Outcomes