We have requirement io display the attachments in pop up window without clicking download option. the We are using Attachment Widget in Pega Constellation 26.1 version.
Generally with OOTB attachment widget, you should be able to click on the file name link and it should open up automatically for native viewing. This applies to Images and PDF files without any additional configuration.
For any other files like xls, docx, pptx etc you would require to download and view from your local disk. Pega does not have OOTB support to preview these kind of files.
If you need support for other extensions as well, then you need to load these attachments in a table in a separate tab on the case and setup a link for each of the entry. That link should be a custom DX component which will serve as a generic viewer for any type of document in a modal window. Please note the docx, pptx, and xlsx files needs special handling in its own way which is again a different ball game. I have personally not tried yet.
Thank you very much for the reply. I understand and accept that docx, pptx office file types require special handling. but our concern is on pdf and images. Rather than Previewing in side panel (light modal boxes supported in pega 25/26 version)or in different tab client is asking for direct pop up window (modal dialog) for each attachment so that they can compare easily.( as this was supported in Pega earlier versions)
In Constellation, modal dialogs are fixed overlays and cannot be resized or moved once opened. They remain centered on the screen, with their size determined by the content being displayed.
A browser pop-up window, on the other hand, opens in a separate window that users can resize and position anywhere on the screen. This was a common pattern in traditional UI applications and worked well for scenarios requiring side-by-side comparisons.
If the client has a strong requirement to compare multiple documents simultaneously, the custom DX component approach I mentioned earlier could support this. Clicking an attachment link could open the image in a browser pop-up window, allowing multiple images to be displayed side by side in separate windows for easy comparison.
While this approach may feel somewhat old-fashioned and does not fully align with Constellation’s UI design patterns, it could be a pragmatic solution if it delivers clear business value. Since the pop-ups would be used only to retrieve and display attachment content in a read-only manner, I believe it should be an acceptable option.
That said, I’d be interested in hearing others’ thoughts on this approach as well.