I am developing an application in Alfresco Activiti App which has multiple levels with different user actions. At 1st step I am generating a document using a form info and a template. Now, I would like to display the same document to the user in the next level.
I tried with Adding Attach but I could not display document.
When I tried with Attach only document name is getting displayed like below:
To view this document, I have to go to part of process and then view it like below:
Instead, How can I display the same document in the Tasks page itself?
Notice the 5005 in the URL is the content ID of the attachment, you will need to retrieve this when you create/save the document and put it into a variable so you can include it in the Hyperlink definition.
Obviously you could get a lot fancier with a custom form stencil, but whatever you do, you will need to pull the document with the URL shown (I think this is what the tasklist uses).
Thank you Greg Greg Harley for the quick response. I have tried to check the solution that you have suggested. I could see the document getting loaded when i hit the URL. I am generating the document using Activiti, here could you suggest me how to get the content id when the document is generated?