Enhancing Generic Navigation Widgets with Scripting

Objective

After completing this lesson, you will be able to enhance generic navigation widgets with scripting.

Generic Navigation Widgets

Enhancing Generic Navigation Widgets with Scripting

In SAP Analytics Cloud, you can add scripting to checkboxes, radio buttons, dropdowns, and list boxes. All of these generic navigation widgets are used in a similar way.

Watch this short video to find out more about enhancing stories by adding scripting to generic navigation widgets.

In summary, there are two steps to enhance a generic navigation widget with scripting:

  1. Define the items for the widget in the Builder panel. It can be defined in three different ways:
    1. Manually, using direct input
    2. Dynamically, using scripting
    3. Dynamically, using property binding
  2. Define the action that should be executed in the widget’s onSelect script

In this lesson, we will focus on manually defining the items using direct input. We will create a dropdown that will allow report viewers to easily select monthly or quarterly data in a time series chart.

Using APIs in Scripting to Filter a Table Using a Dropdown

Business Scenario: Your team makes a request to add a dropdown to the Taxes chart that will allow them to easily select either a monthly or quarterly view of the data.

This short video will walk you through the final story and scripting required.

Simulate the Steps

The practice exercise below simulates being in Advanced Mode in SAP Analytics Cloud and takes you through adding scripting to a dropdown to create the final story shown in the demo video.

Task Flow: In this practice exercise, you will:

  • Add scripting to a dropdown to filter data by month and by quarter
  • Test the scripting in the story

Log in to track your progress & complete quizzes