Use APIs to Launch Data Analyzer
You can use script APIs to launch data analyzer from stories.
Use NavigationUtils.openDataAnalyzer() API
You can use the API NavigationUtils.openDataAnalyzer() to open the data analyzer associated with a specific data source.
-
For the connection paramter, you can set it to undefined for SAP Analytics Cloud models.
-
You can specify the URL parameters the data analyzer is opened with. For the system type parameter, it's assumed to be BW if not specified, and required for other system types.
-
You can specify whether the data analyzer is opened in the current tab or a new tab, by default new tab (true) if not specified.
Use NavigationUtils.openInsight() API
You can use the API NavigationUtils.openInsight() to open a specific insight via its ID.
To get the insight ID, you can use the value help in the script editor. Press CTRL + Space , and open the insight selector. Select an insight, and its ID is shown in your script.

Optionally, you can define the URL parameters the insight is opened with.
Via the script API the insight is opened in a new browser tab.
Use openDataAnalyzer API on Charts or Tables
You can define whether the data analyzer is opened in the current tab or a new tab, and by default it's new tab (true) if not defined.