cancel
Showing results for 
Search instead for 
Did you mean: 

Suggest. custom association from external data

need
Champ in-the-making
Champ in-the-making
Hi all,

I need help on the feasibility of an amendment to the Alfresco share. Should I attach a document for each type of attribute external to Alfresco using the webservice that provides the external application can make me return json format that interests me but how can I do to attach it to any kind of doc?

I thought about creating a custom association in my model. It 'can change the rendering of the association so as to load data from my external application, select the data from pop-ups and then bind it to the document?

It is possible to think of a solution? Or do I have to find another way?

If all this were possible, I suggested a way to change the pop-up of the association when you click on the button select the page editing metadata.

Thanks to all…
2 REPLIES 2

need
Champ in-the-making
Champ in-the-making
why no answer? Please take me a suggest for my problem!!!

loftux
Star Contributor
Star Contributor
OK, here is what you can do.

Instead of having an association in you datamodel, make it a text property (or long if the key in the external system numeric only).

Now you need to be able to populate that property. You do that by creating a custom control.
http://wiki.alfresco.com/wiki/Forms

Download the Forms Development Kit, FDK, https://process.alfresco.com/ccdl/?file=release/community/build-3370/alfresco-community-fdk-3.4.d.zi...

In that, a good starting point would be the autocomplete control. That is because it shows you how you make a rest call to alfresco, and then server side pick up external data. And that external data is what you put in your property, a pointer to an external system. In view mode, make it a link to navigate to that system (if necessary).