cancel
Showing results for 
Search instead for 
Did you mean: 

Getting group Info through association

joksy
Champ in-the-making
Champ in-the-making
Hi guys, i m working on a dashlet, and i need to show some information about group through an association,


<#if doc.assocs["xxx:Friends"]?exists>   
      ${doc.assocs["xxx:Friends"][0].properties.fullName}
</#if>

I m try some possibility but all are undefined, so form doc.assoc[something] i got an hash, i take the first element (in my case is 0 because there at most one group) then through the properties i try to get the name??

Someone can help me
Thanks a lot

Best Regards.
4 REPLIES 4

luxoliver
Champ in-the-making
Champ in-the-making
Have you ever tried "name" instead of "fullName" ?

joksy
Champ in-the-making
Champ in-the-making
Have you ever tried "name" instead of "fullName" ?
yes and the result is the id of the node  :cry:

luxoliver
Champ in-the-making
Champ in-the-making
In fact what did you really want to do ? I did not quite understand

joksy
Champ in-the-making
Champ in-the-making
In fact what did you really want to do ? I did not quite understand
Sorry guys,

I after the n'th caffe I found the solution and i break my head into the wall….
This code here return an hash Smiley Sad
${doc.assocs["xxx:Firends"][0].properties}
So what is the way to get the value form an hash (i m really tired).

so at the end if i want the name of the group the solution is:
${doc.assocs["xxx:Firends"][0].properties["usr:authorityName"]}

Sorry guys, and sorry Lux if u have try to follow my twisted mind
Best. Smiley Surprisedops: