Dynamic document generation and download

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

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    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

Children