HI All,
We have a requirement to generate a PDF document and download on click of a link. to generate the PDF we use Generate PDF smart service and this needs a process to be executed execute.
The issue we need to generate the document in-flight and download it.
User is viewing a report and user should be able to download the report data as PDF on click on a link provided on the report.
At the moment I have found any solution other than on click of the link to show another link to download.
Discussion posts and replies are publicly visible
hi Mike,I have similar requirement as mentioned above in my case I have a nested SAIL form and the last form has this download option.Now I could successfully start PM to generate document but am not able to pass the DocID generated in the process model back to UI Below you can see the code snippet:
saveInto: a!startProcess( processModel: cons!DQEM_PM_EXPORT_EXCEL, processParameters: { ScorecardReviewDetails: ri!summaryData, docId: local!documentId }, onSuccess: { a!save(ri!document, local!documentId) } )
Can you please help me identify the issue here.
Thanks,
Preji
Do you have the chaining till the node that generates the DocID?
Yes I do have activity chaining enabled
Do you just need to replace one of the a!save() parameters with fv!processInfo.pv.docId?
docs.appian.com/.../Start_Process_Smart_Service.html
You can try what steven mentioned but if it doesn't work, try pasting your button's code here for us to help you debug it.
Thank you very much Steven, above suggestion has worked for me.