Hello,
I have created with BPMN editor a process that generate a document. In a next task, i would like to display this document in a form to allow the task assignee to view it.
I would like to have the same functionnality as if the generated document was an uploaded document : in the form, a link is display and if the user click on it, a popup is displayed with a preview of the document.
Is it possible and how can i do ?
Raphael
Solved! Go to Solution.
Hi Raphael,
This is possible if you use a display value (instead of display text). The generated document variable will be available for you to select in the DisplayValue->Variable->SelectVariable (dropdown).
Also, the generated document is automatically linked to the process and you can preview it from there as well by going into the process list. App->Processes->Select your running process instance.
Regards,
Ciju
Which forms you are using ? Alfresco share or Activiti ?
Hello,
My forms are in Activiti Suite.
I would like to preview a generated document from an activiti form.
To preview an uploaded document from a form, i use the component "Display Text" and in the text to display, i just put this value : ${name_of_attachFile_field}.
With this method, i have a link in my displayed form and when click on it, it display a popup with a preview of the uploaded document.
But, it doesn't work with a generated document as we only get the ID of this content.
Is it possible to have the same link as an uploaded document and how can i do ?
Raphael
Hi Raphael,
This is possible if you use a display value (instead of display text). The generated document variable will be available for you to select in the DisplayValue->Variable->SelectVariable (dropdown).
Also, the generated document is automatically linked to the process and you can preview it from there as well by going into the process list. App->Processes->Select your running process instance.
Regards,
Ciju
Thank you Ciju, it works fine when using Display Value.
Regards,
Raphael
Hi Jose and team,
We know how to use display value for attachment and it generates preview automatically but i have a situation where i do not want preview to enable in display value, could you kindly provide some solution for this.
Requirement:
User1 will upload the documents
User2 will have view option but not editable, also this attachment should not preview because when ever it previews user2 will have to scroll down to the bottom to select other fields and this is causing trouble.
Your suggestions would realy help me.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.