Performance Analytics Dashboard tab is broken

gs53
ServiceNow Employee
ServiceNow Employee

Hello i have created a custom widget in PA dashboard. This custom widget is a UI page which runs some logic which is running fine as i can see the response in the UI page. But the same when added to PA dashboard shows the dashboard tab is broken. 

I am using this servicenow documentation as reference : https://www.servicenow.com/docs/bundle/yokohama-now-intelligence/page/use/dashboards/task/create_wid...

Screenshot 2025-04-17 at 1.12.57 PM.png

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Is this widget has been added properly? 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

gs53
ServiceNow Employee
ServiceNow Employee

I created a custom widget. System UI -> widgets. Then linked the UI page in the widget with the below code in widget. This widget then i added to the dashboard.

function sections() {
return {
'Widget_Status': { 'uiPageName' : 'UI_Status'},
};
}
function render() {
var uiPageName = renderer.getPreferences().get("uiPageName");
return renderer.getRenderedPage(uiPageName);
}
function getEditLink() {
var uiPageName = renderer.getPreference('uiPageName');
return 'sys_ui_page.do?sysparm_query=' + encodeURIComponent('name=' + uiPageName);

Sorry mate, coding is not my area., @Robert H, any input here?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Robert H
Mega Sage

Hello @gs53 ,

 

The widget code itself looks accurate as per the documentation you posted. The docs mention that "Not every UI page" will work in a widget. Have you tried with some other UI Page, maybe a really simple one that just shows some text? The docs also mention that, for scoped applications, you need to use different code in the widget.

 

I can't test this myself as I don't have access to an instance that still has the old Performance Analytics dashboard functionality enabled. Platform Analytics is the replacement but does not support adding these widgets, and Performance Analytics dashboards will likely be deprecated with the Australia release. So you should probably not spend too much effort trying to make your widget work.

 

Regards,

Robert

 

Regards,

Robert