how can I add some Explanations (description ) to reports page in service now ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2015 02:51 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2015 05:51 PM
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".
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()}&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:
Hope this helps!
-Manjul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 07:45 AM
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.
Thank,
Sai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 11:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 11:16 AM
Yes we don't have access to that page I got you.
Thank you.
Sai