cancel
Showing results for 
Search instead for 
Did you mean: 

Create a document details link on a custom share page

pchoe
Champ in-the-making
Champ in-the-making
I am creating a reporting page for workflow.

It is document based, meaning that I'll get the workflows that are attached to the documents.  I want to make the name of the document that is displayed a link to the document details page, just like the document library.

I was trying to figure out how the document library does it, but I am stuck.

I see the Alfresco.DocumentList.generateFileFolderLinkMarkup in the documentlist.js file.  But I don't know how to get the scope and report parameter passed to the function.

Ideally, I would like to call the Alfresco.DocumentList.generateFileFolderLinkMarkup function from my ftl page that renders the workflow report.

Can anyone give me a pointer on how to get the scope and report objects passed to the javascript function?
3 REPLIES 3

aaditvmajmudar
Confirmed Champ
Confirmed Champ
Are you displaying all the workflows attached to any one document in your custom page?

pchoe
Champ in-the-making
Champ in-the-making
Yes.

aaditvmajmudar
Confirmed Champ
Confirmed Champ
Then I think you will be passing noderef to your custom webscript of that document for which you want all the workflows attached.

So you have the noderef of the document with you.

So you don't go for OOTB implementation of document details link.

Just make the link with available noderef in your client side JS file.

/document-details/nodeRef={document_noderef}

Hope this helps.

Thanks,