Dashboard URL parameters sysparm_header not Working.

anithanarayan
Mega Guru

Hi All,

I am trying to hide add a dashboard to a portal page as a widget.

I want to hide the Dashboard header. I am using the below header parameters but it does not seem to work.

  • hidden — The header is hidden on the application page.
  • embedded — The dashboard header appears but only has limited options. Options to refresh, reset filters, and export to PDF are available on the context menu.

Something like https://<your instance>/$pa_dashboard.do?_____________________________&sysparm_ignore_default_filter=false&sysparm_header=hidden

Am I missing anything here like roles, sharing? How to get this working. 

Thanks in Advance.

 

3 REPLIES 3

CezaryBasta
Tera Guru

How are you trying to add this dashboard? Any custom plugin? Or custom widget?

Basically, you can add widgets to pages. And the only way of adding dashboard to a page is to use HTML widget with proper URL given as an argument.

--
See more of my content here.

anithanarayan
Mega Guru

i,

Thanks for your response. I have not used any custom plugin or custom widget.

The widget I have created looks something like below. Even otherwise, if I copy the dashboard url and try to paste in a different browser or tab with the additional url parameters like hidden, embedded, there is no change at all. Dashboard url is same in all cases. I am following the below documentation. Am I doing something incorrect here.

https://docs.servicenow.com/bundle/london-performance-analytics-and-reporting/page/use/dashboards/reference/dashboard-url-parameters.html 

 <div>
<!-- your widget template -->
<iframe style="overflow: hidden; height: 1000px; width: 100%;" src="$pa_dashboard.do?sysparm_dashboard=fc131c88dbe12300b52034da7c9619e4&sysparm_tab=4c239888dbe12300b52034da7c961956&sysparm_cancelable=true&sysparm_editable=undefined&sysparm_active_panel=false&sysparm_ignore_default_filter=false&embedded=true" width="100%" height="100%" frameborder="0"></iframe>
</div>

 

Thanks in Advance.

 

Jeffrey Siegel
Mega Sage

i was able to hide my header bar using your information.  my HTML is:

<p><iframe style="overflow: hidden; height: 1000px; width: 100%;" src="$pa_dashboard.do?sysparm_dashboard=f78f4b77876c7d104a7764683cbb3581&amp;sysparm_header=hidden&amp;sysparm_editable=false&amp;sysparm_active_panel=false&amp;sysparm_ignore_default_filter=false&amp;embedded=true" width="100%" height="100%" frameborder="0"></iframe></p>