Question
PDF generation and download pdf to browser
Hi,
I have a requirement of generating a pdf on click of a button.
I am calling an activity on the button by refreshing the section where I use
.Property-set to set parameters
.property-set-html to pass html stream
.activity HTMLto PDF to generate pdf and
.view CODE-Pega-PDF to send the file back to user
the activity works fine for the first time whenever I click on the button and the pdf gets generated.But issue comes when I click on the button again,pdf is not being sent to user.Again it works good If reopen the case for one time
please help
***Edited by Moderator Marissa to update platform capability tags****
Hi Sarmishta,
Instead of running activity on "Refresh", use Open URL in Window and call activity there (with use page check box checked). This downloads PDF in new window, so there won't be any refresh problems.
Hope this helps..!!