cancel
Showing results for 
Search instead for 
Did you mean: 

[solved] child association display and clickable link ?

ethan
Champ in-the-making
Champ in-the-making
Hi Smiley Happy

I have a custom model which defines e-mails. These e-mails have a child association with other documents (i.e attachments). I modified the web-client-config-custom.xml file to display this child-association for the e-mails nodes in the document properties page. The default component for this association is a multi-lines textbox which display the xpath to the node. I would like to replace that default property by my attachments cm:name property (or cm:title for exemple). I also would like to make this link clickable to get to the properties page of these attachments.

How can I do this? Is there a way to change this in the web-client-config-custom.xml file or could I use an existing component generator (or another option) ?

Thnak you Smiley Happy
3 REPLIES 3

ethan
Champ in-the-making
Champ in-the-making
While searchin the web for a solution, I found the AMP for Webclient links association. I installed it and it almost worked correctly. When I click on the link, a nullPointerException is thrown.

In debug mode, I found out that in the UIChildAssociationWithLinkEditor.broadcast() class, the following code is returning null :


// hack to make sure that the UIPropertySheet component gets refreshed
// (otherwise it will not update the property sheet to reflect the
// properties of the node type of the target), see this post here:
// http://forums.alfresco.com/viewtopic.php?p=31476#31476
UIPropertySheet ps = (UIPropertySheet)fc.getViewRoot().findComponent("document-details:document-props");

Any idea ?

thank you Smiley Happy

ethan
Champ in-the-making
Champ in-the-making
Solution found !

I replaced :

UIPropertySheet ps = (UIPropertySheet)fc.getViewRoot().findComponent("document-details:document-props");
By :

UIPropertySheet ps = (UIPropertySheet)fc.getViewRoot().findComponent("dialog:dialog-body:document-props");

The component id was right for Alfresco 2.1 but not anymore for Alfresco 3.3 Smiley Happy

billo
Champ in-the-making
Champ in-the-making
Dear Ethan,

In which file have you done the above replacement, could you tell me the path to access to it.
UIPropertySheet ps = (UIPropertySheet)fc.getViewRoot().findComponent("document-details:document-props");

Thanks