I have EFORM files, and I’m attaching them to case using GenerateEform and AttachEform activities, the same attachments also needs to be displayed within view also. So, I have copied the FileName, Category and Label to AttachmentFiles (PageList - Link-Attachment) and displaying the same in view. I’m able to see the names but they are not appearing as PDF’s to download or view. (Tried with pyCaseRelatedContent also)
To fix your issue, use the Display PDF component available in the Pega Constellation UI Gallery, since it is built specifically to show PDF files inline. Right now, pyCaseRelatedContent and your AttachmentFiles list only display file details as text, not the actual file content, which is why you only see names. Add this Display PDF component to your view and connect it to the attachment’s file reference so it can properly load and render the PDF. This will let users both view and download the EFORM attachment directly on screen, instead of just seeing its label.