How to view attachments in Service Portal ?

Dennis Braun
Tera Expert

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:

find_real_file.png

Thanks in advance

2 REPLIES 2

Thiagofmeira
Kilo Guru

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.

 

find_real_file.png

 

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

 

 

Raghavendra97
Tera Contributor

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