cancel
Showing results for 
Search instead for 
Did you mean: 

Showing parent of a child association in document details

lvs
Champ in-the-making
Champ in-the-making
Hi everybody,
I created a child-association annex and I when I see an annex, I would like to be abble to show in the property sheet of the docuement details the parent of the document.
I managed to show the children of a document configuring the web-client-config. Could anyone give me an advice of which component I should change to enable the parents of a child Association to be shown?
I am a little bit lost with this point,

thanks a lot
Laura
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
You can't at the moment. There are a couple of JIRA issues already raised for this:

http://issues.alfresco.com/browse/AWC-1498
http://issues.alfresco.com/browse/AWC-1789

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

Thank you for your answer. Actually I have to add this functionality to my project. Do you have any architectural advice on how to do it?

Thanks
Laura

gavinc
Champ in-the-making
Champ in-the-making
There will quite a few changes required to do this, but at a high level you will need to do the following…

1. PropertySheetElementReader and PropertySheetConfigElement need to be changed to read some config for which target-association to show
2. UIPropertySheet needs to be changed to handle target associations (new JSF components will be needed)
3. A TargetAssociationGenerator class will be needed to create a new UITargetAssociationEditor component
4. Depending on how complex you want the target association to be i.e. being able to edit them, some changes may also be needed to the Node object to store the associations that were added/removed.
5. Register the new components etc with JSF in the faces config files

Some wiki links that may help:

http://wiki.alfresco.com/wiki/PropertySheet
http://wiki.alfresco.com/wiki/Component_Generator_Framework

lvs
Champ in-the-making
Champ in-the-making
Thanks a lot Gavinc, it is a good start for me to begin.
Best regards
Laura