I am not sure how to display a link to a PDF file that is attached to a case within the screen.
The assumptions and the extent of my investigation so far are as follows.
I was able to identify the URL that the PDF link navigates to. However, when I tried to use that URL by placing an Image component in a section and setting the URL there, the PDF was not displayed, and I am currently stuck at this point.
This is my first post, and the English text was translated using Copilot, so I apologize if there are any parts that are difficult to read.
I would really appreciate it if you could share any useful information or insights.
Prerequisites
-
The UI theme in use is Theme Cosmos.
-
PDF files are attached to the case using the standard activity
pxLinkAttachmentToCase, and the attachments are inherited from a pre-processing case.
Findings so far
- Based on the behavior observed using the browser’s developer tools, we identified that the URL to open the attached PDF file can be constructed as follows:
Plain Text
pxRequestor.pxReqContextURI + “/” +
pxRequestor.pxReqServletNameReal +
pxRequestor.pxReqPathInfoReal +
“?pyActivity=pzRunActionWrapper” +
“&linkInsHandle=” + pyWorkPage.pyCaseRelatedContent(1).pzInsKey +
“&pzActivity=Work-.GetAttachmentReference” +
“&skipReturnResponse=true” +
“&pySubAction=runAct” +
“&viewInline=true” +
“&viewPDFInline=true” +
“&fileName=” + pyWorkPage.pyCaseRelatedContent(1).pyMemo
-
When this URL is set on an Image component placed in a section, the PDF is not displayed inline.
-
When the same URL is configured on a Button with the click action “Open URL in Window”, clicking the button successfully opens the PDF content in a separate browser window.
- Based on this behavior, we assume that the URL itself is valid and working as expected.