
In this blog, we explore how to seamlessly pass URL parameters from an SAP Analytics Cloud (SAC) Optimized Story to the SAC Data Analyzer. This integration enhances data exploration capabilities by allowing users to drill down into data at deeper levels based on their specific requirements. Moreover, it enables the SAC Data Analyzer to open in the same state as the story, preserving filters and variables, and thus providing a more fluid and personalized data analysis experience.
This blog focuses on:
To achieve the parameter passing, we utilize the following scripting classes:
To open the Data Analyzer from an optimized story, the following scripting classes play a crucial role:
Suppose a user wants to open the Data Analyzer by clicking on a table within the SAC story. The steps are as follows:
Creating URL parameters is essential for passing filters and variables. The URLParameter class is used for this purpose. Parameters to be specified include:
NavigationUtils.openDataAnalyzer("<Connection Name>",
"<DataSource Name>",
[
UrlParameter.create("f01Dim","<Dimension Name>"), // filter 1
UrlParameter.create("f01Val","<Filter Value>"), // filter 1 value
UrlParameter.create("f02Dim","<Dimension Name>"), // filter 2
UrlParameter.create("f02Val","<Filter Value>"), // filter 2 value
UrlParameter.create("v01Par","<Variable ID>"), // variable 1
UrlParameter.create("v01Val","<Variable Value>") // variable 1 value
],
true);
https://<tenant>#/dataanalyzer&/dz/?view_id=dataAnalyzer&connection=<Connection Name>&dataSourceName=<DataSource Name>&f01Dim=<Dimension Name>&f01Val=<Filter Value>&f02Dim=<Dimension Name>&f02Val=<Filter Value>&v01Par=<Variable ID> &v01Val=<Variable Value>
URL parameters in SAC are used to pass specific filters and variables from an Optimized Story to the Data Analyzer. This ensures that the Data Analyzer opens in the same state as the story, maintaining the user's context and selections.
For more information regarding URL Parameters visit the following link :
SAP Help Portal | URL Parameters
Passing URL parameters from an SAC Optimized Story to the Data Analyzer significantly enhances data exploration and user experience. By preserving the state of filters and variables, users can continue their analysis seamlessly. This scripting approach, leveraging SAC's powerful scripting classes, facilitates effective navigation and interaction between SAC components, empowering users to derive deeper insights.
If you are here, thank you so much for taking out your time to read this. Your feedback will be highly appreciated.
Thanks,
Himanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
23 | |
9 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |