Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Linking to a scorecard from a custom widget

Linking to a scorecard from a custom widget

You can create a custom widget to link to a Performance Analytics scorecard.

Use the function paDetailedHelper.open('<scorecard sys_id>') in a widget link to open a scorecard when clicking that link.
The following example demonstrates how to create a dynamic content block including links to Performance Analytics scorecards.
<?xml version="1.0" encoding="utf-8" ?> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null"
        xmlns:g2="null"> <script src="scripts/pa/pa_detailed_helper.js" /> <a href="#" onclick="paDetailedHelper.open('31efe602d7130100b96d45a3ce610300')">New
      Incidents</a><br /> <a href="#" onclick="paDetailedHelper.open('7dafa602d7130100b96d45a3ce6103c8')">Resolved
      Incidents</a><br /> </j:jelly>