cancel
Showing results for 
Search instead for 
Did you mean: 

Association : Get parent node

bch
Champ in-the-making
Champ in-the-making
Hi,

An association between a type A and a type B is defined unilaterally on Alfresco, per example A->B. If I want to have an overall view on a content of type B, I want to see all contents of type A that reference my content of type B. Here, I have a problem.

First possibility :
Search by XPath or Lucene all contents of type A and check the association. This way is quite long.

Second possibility :
Create a bean to access by an SQL request to the parent. The disadvantage is to work directly on database is not clean.

This is my problem. If you have an opinion or ideas…

Thanks
1 REPLY 1

lvs
Champ in-the-making
Champ in-the-making
Hi bch,

I have the same problem (see my post)

Nevertheless, I saw that the AdminNodeBrowserBean does have a getParents function so maybe that can help you…

Best regards
Laura