Question
HCL
IN
Last activity: 4 Oct 2016 5:37 EDT
on click of BUtton , PDF link should be opened in modal dialogue
When we click on "GenerateReport" button in section "A", model dialogue should be opened and modal dialogue should contain link , when we click on link
pdf should be opened. this pdf contains info from the section "A". Modal dialogue also contains OK and Cancel buttons , when we click on OK button PDF should be attached to WorkObject, if we click on cancel modal dialogue should be closed.
***Updated by Moderator: Lochan. Removed user added Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option; updated Category***
1. call Local action as a on click event on the button.
2. On Local action create a link. on click of the link, call an activity using Open URL in window
3. In the activity, Generate stream for section using property-set-html and pass your sectionname and class as Rule-HTML-section
4. Set the stream to Param.MarkUp
5. call Code-Pega-Pdf.HTML to PDF activity and pass Param.markUP and pdf name etc
6. Call Code-Pega-Pdf.View activity to show PDF as a pop up
7. On click of canel you can attachtoworkobject