log4j.logger.org.alfresco.repo.jscript=DEBUG.
puis dans votre script, il suffit d'ajouter ce genre de code : logger.log("VERIFICATION VARIABLE : " + maVariable);
var personnes = document.assocs["custom:contacts"];
var person1 = personnes[0];
var personName = person1.properties["cm:userName"];
logger.log("VERIFICATION personName : " + personName);
j'ai aussi très légèrement modifié votre modèle en ajoutant une source :<types>
<type name="custom:mail">
<parent>cm:content</parent>
<associations>
<association name="custom:contacts">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
</types>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
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.