How to view attachments in Service Portal ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2022 03:27 AM
Hello everyone,
is there an ootb possibilty to view the attachments (e.g. with the document viewer) without downloading them first in Service Portal View ?
In the classic UI it's possibly to view the attachments via [view]-button by enabling the sysproperty com.snc.documentviewer.enable_document_viewer.
But that doesn't work in ServicePortal View.
If it is not possible with ootb feature - where to create a new button with hyperlink to "sys_attachment.do?view=true&sys_id= ..."
I tried to create a Catalog client script, but there you can't integrate jquery/angular code to manipulate the DOM !
Desired solution:
[View] button behind the filename "invoice.pdf" to open the document with the document-viewer:
Thanks in advance
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2022 05:31 AM
Hi Denis
There is a OOTB way to do it, but only on HR module. On the HR module exists a form with this type of link.
Basically this list of attchments is a variable on the record producer with a widget embedded
I recommend you to install the HR module and clone that widget and adapt for your requirement.
If you need further help just tell me. I think this is very easy, but tricky to accomplish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 06:26 AM
I have a requirement where the users need to view the attachment in the portal is this feasible or possible and this should not be any variable? Please can anyone revert for this concern or query