Report in iFrame without buttons, etc.

raulron
Kilo Expert

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.

1 ACCEPTED SOLUTION

sekhar7
Giga Contributor

Try to add "&sysparm_media=portal" at the end of your URL. you will get what you require.let me know if this helps.


View solution in original post

6 REPLIES 6

ChrisBurks
Mega Sage

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.


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!


sekhar7
Giga Contributor

Try to add "&sysparm_media=portal" at the end of your URL. you will get what you require.let me know if this helps.