Yuri Pinto (yurispinto)
Tata Consultancy Services

Tata Consultancy Services
yurispinto Member since 2018 4 posts
Tata Consultancy Services
Posted: June 5, 2018
Last activity: June 6, 2018
Posted: 5 Jun 2018 14:42 EDT
Last activity: 6 Jun 2018 15:32 EDT

PDF download not working


We are trying to download pdf files using Code-Pega-PDF.View activity (OOTB), but it's not working when it's called from a modal outside case (without errors on trace or log files).

This activity has only one step with this script:

//Get the byte array from the parameter page
byte[] byteArray=(byte[])tools.getParameterPage().getParameterValue("PDFDocument");

//Get the pdf name from the parameter page
String pdfName=tools.getParamValue("PDFName");

//Send the PDF File back to the user.
String result=tools.sendFile(byteArray,pdfName,false,null,true);

Both parameters are correct and filled when running this step. Before open modal, we open a work object using Obj-Open-By-Handle by .pzInstKey and OpenPortal/$WorkProcessing thread is created. Does anyone used this activity in similar situation or know any solution about this issue?

Any help would be highly appreciated.


Yuri Silva

Low-Code App Development Data Integration Java and Activities User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.