- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2015 03:53 AM
Hi,
I have created an iframe with a link to a published report, to be placed on a CMS/ESS site.
That was the easy part, i have used the following URL: sys_report_display.do?sysparm_report_id=850179c20f1e7900e4b279f692050e58
The thing is, that the report is displayed with some things i wish to remove. For example, a "Click to Print" button, and the report header which is unnecessary in this case.
I tend to beleive those can probably be removed by adding some sysparm strings to the URL. But have no idea how.
Has anyone ever done something similar?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2015 08:40 AM
Try to add "&sysparm_media=portal" at the end of your URL. you will get what you require.let me know if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2015 08:16 AM
Hi Raul,
If you can't find any sysparm parameter the easiest thing I can think of since you're using CMS is you can hide that button using CSS styles. I would create a custom style sheet in the theme your site is using and place this style in it:
.print_hide {
display: none;
}
make sure your style sheet has an order that makes it last in the theme list.
If there are any other pages that use this same button or class name you could either do a right click inspect on the button to look for any other identifiers to make the style very specific to that button so you don't effect any other pages.
Or worse case you can use javascript to capture the element and place the style on it. Although this gets a little tricky because it's in an iframe but it can be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2015 10:00 PM
Use system parameter partial_page=theReport
e.g. https://demo002.service-now.com/sys_report_template.do?jvar_report_id=d1145802df020100cd7da5f59bf263...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 05:34 AM
Thanks guys for you help on this.
Chris - i would not want to go to any javascript or client side solutions.
Nikita - your sysparm solution actually hides the print button which is great. However, it also changed the font of the data in the report which made it inconsistent with the rest of the page. But more importantly, it "cuts" the buttom half of the report when displayed on the ESS page. which is no good :-).
Any further suggestions will be highly appreciated.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2015 08:40 AM
Try to add "&sysparm_media=portal" at the end of your URL. you will get what you require.let me know if this helps.