Service Portal - Report Widget to open in new tab

T_Anwailer1
Tera Contributor

Hey Guys,

Do you have any idea how to customize the report widget to open in a new tab on click?
I have some reports of different types - Single Score, list, bar, donut and I have requirements to open them in a new tab on click. It was easily doable with a list or icon widget but cannot find any possibility regarding a report widget...

12 REPLIES 12

I'm having the same issue... reports on a Portal Dashboard replace the portal page with a list view of records in the Platform UI...navigation and all. I have tried the suggestions in the knowledge article, which was last updated a few months ago, but it still does not work.

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Not sure if this is what you mean, though give it a go. To open the dashboard in a new window:

You can just add _blank to the window name (= tested).

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Ravinder Damera
Tera Contributor

Add the below code in your Link function inside setTimeout, it will work on on Load of the widget

Code:
setTimeout(function () {
angular.element(".chart-container a").attr('target','_blank');
angular.element(".chart-container a").attr('onclick', "event.stopPropagation();");
}, 3000);

Seconds should be specified till the report loads
Same code can used for dynamic in Client Controller.