how can I add some Explanations (description ) to reports page in service now ?

Gangadhar Ravi
Giga Sage
Giga Sage

I want to add some Explanations to reports in service now so that user can see what that particular report is for. let me know if there is any way that I can add it.

4 REPLIES 4

Manjul Katare
ServiceNow Employee
ServiceNow Employee

Hi Sai,



The report uses a template called "sys_report_template" and users do not have an access to customize it.


The workaround I could think of is create a custom UI-Page querying [sys_report] table and create a new list-view with Report Title & Description. This would be an alternate to "home_report.do" report page.



Here is how I would achieve this:



Step#1: Personalize a table [sys_report] and add a new field for "Description".


Screen Shot 2015-11-11 at 4.22.54 PM.JPG


Step#2 : Create a new UI page (feel free to style it further)



<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<style>


table.list_table { width: 100%;}


table.list_table tr:nth-child(odd) {background: #eeeeee;}


table.list_table td{ padding-left: 10px;}


table.list_table td:first-child {text-align: center;}


</style>


<g:evaluate var="jvar_report" object="true">


  var gr = new GlideRecord("sys_report");


  gr.orderBy('title');


  gr.query();


  gr;


</g:evaluate>


<h3>My Reports</h3>


<table class="list_table">


  <j:while test="${jvar_report.next()}">


      <tr>


          <td align="center"><a class="report_link edit_report_button" href="sys_report_template.do?jvar_report_id=${gr.getUniqueValue()}&amp;sysparm_filter_only=true">Edit</a></td>


          <td>


              <a href="sys_report_template.do?jvar_report_id=${gr.getUniqueValue()}"><p><b>${HTML:jvar_report.getValue('title')}</b></p></a>


  <p>${HTML:jvar_report.getValue('report_description')}</p>


          </td>


      </tr>


  </j:while>


</table>


</j:jelly>




Step#3 : Run the new UI Page and you should get the end result as shown below:



Screen Shot 2015-11-11 at 5.37.44 PM.JPG



Hope this helps!


-Manjul


Hi manjul.katare


                                                        Thanks for reply but I wanted to have that Description in to show when we open a report. like I mentioned in the bellow image. i wanted to have that description in one of those green lines place.



find_real_file.png



Thank,


Sai.


Sai,



I'm not sure if you can modify this page as it uses a "sys_report_template" template and users do not have an access to customize it.



Thanks,


Manjul


Yes we don't have access to that page I got you.



Thank you.


Sai