Support Article
Unable to open PDF on IOS using Open URL in Window
SA-105831
Summary
On a table containing results of cases, unable to view PDFs using a Click action on a table column. The Click action uses the 'Open URL in Window' action. On triggering the action on an iOS mobile device, the overlay opens and images display for PNGs; however, for other file types such as PDFs, random characters display. This function works correctly on a desktop system.
Error Messages
Not Applicable
Steps to Reproduce
- Create a table that sources cases with attachments.
- Create an action set on Click for a column that executes the 'Open URL in Window'.
- Create a process to obtain the pzInsKey of one of the attachments.
- Use the pzInsKey of the attachment in a step to Call GetAttachmentReference.
- In the action, set the Window Name.
- Log in to a mobile.
- Click the table column to open the attachment. The PDF attachment displays incorrectly.
Root Cause
Open URL in Window does not work for a mobile application.
Resolution
Perform the following local-change:
- Invoke the pega.ui.HarnessActions.doAttachmentSingleClick JavaScript function on click of a button or a link.
- Pass the two parameters:
- Inskey
- LinkedRefto
Published July 4, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.