How do we print a record from Service Portal

thomaskvistjaco
Kilo Expert

Hi,

How do we control the printing of a request or incident in the Service Portal in Helsinki?

There's no print button as far as I can see, and ctrl-p yields a mostly useless layout.

br

Thomas

1 ACCEPTED SOLUTION

erikbartholdy
Giga Guru

hi again



just found out, you can control which output is used by adding sysparms



ie, using the ess view (or any other view)


&sysparm_media=print&sysparm_result_view=ess



this is very usefull if you want to control what is send to the printer 🙂



more about sysparm http://wiki.servicenow.com/index.php?title=Navigating_by_URL#gsc.tab=0


View solution in original post

10 REPLIES 10

ian_cox
ServiceNow Employee
ServiceNow Employee

Crtl-P works ok for me. It depends on how nice you need it to be.   I don't there is a specific function for this in the portal. In the legacy UI we export to PDF which is a nicely formatted out put.



kylin.follenweider Do you know?


Ctrl+P works but there is also the ability to export to PDF on forms which has a nice format.   This should be accessible from the menu in the upper corner of the form.


ian_cox
ServiceNow Employee
ServiceNow Employee

Right click on the header should give you the ability to export to PDF.


thomaskvistjaco
Kilo Expert

Thank you to both of you.



I was a bit unclear in my original post: the missing print functionality is in the 'ticket' widget.


I recognize that the 'form' widget do have an export to PDF. I consider that a workaround for the missing print functionality.


The ctrl-p printing is not good at handling forms that are longer than one page so I created a new button:


find_real_file.png



using this HTML:


                  <a href="{{data.ticketPrint}}" target="_blank" class="panel-button" title="Print">


                      <span class="glyphicon glyphicon-print"></span>


                  </a>


and corresponding server script:



        var u = data.table + '.do?sys_id=' + data.sys_id;


        data.ticketPrint = '/' + u + '&sysparm_media=print';



Thanks,


Thomas