Disable report drill-down option

Syvo
Mega Guru

Hi all,

My current client wants to display a few reports on his portal but the drill-down only gives him an empty list because of ACL.

This is expected, but then how would you disable the drill-down from the start ?

I thought of a few ways already :

* run a piece of JS that would override the click event; but I can't seem to find how to do that on the report blocks

* create a specific "boucing" view, and a client script running on that view that would relocate the browser to the previous page; but that would be terrible for UX

* display a static image of the report instead of the report itself; but I don't see how to do that

Thanks for your insights !

Sylvain

10 REPLIES 10

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Sylvain,



I believe if you were to use a public report it's more of a read-only view that you can't click through. That could raise an issue around security but it's a possibility.


Hi Brad, thanks for your fast answer. Can you just explain what you mean by read-only view ?


At this time, when the user clicks on a report, he is directed to an empty back-office list. I would like to prevent that.


I just tested in Fuji, took a Report and Published to URL. I embedded that URL into an iFrame on a homepage. I hadn't tried list view which would probably work but graphical and pivot tables still are clickable to drill down.


russell_miller
Kilo Guru

Hi Sylvain,



I have a solution, it is not perfect but it stops drill down for CMS displayed reports.



I made the reports public and included them in a series of iframes on the relevant page



Then I added this to the stylesheet for the site:



div#gauge_chart_container {


      pointer-events: none !important;


}



Unfortunately it stops the rollover info too, but it met the requirements I had.



Chees


RM