Symptom
- From the Source application, a p_projectValue is setup as a script variable with "Expose variable via URL parameter" option
- When clicking on the button on the source, it jumps correctly to the target application with appURL :
var appURL =
NavigationUtils.createApplicationUrl("89D92D872A9AA1D0FC054B0DACDD3B9B",UrlParameter.create("p_projectValue",p_projectValue));
With the URL generated successfully : https://localhost:XXX/sap/fpa/ui/app.html?tenant=TEST#/analyticapp&/aa/89D92D872A9AA1D0FC054B0DACDD3B9B/?p_projectValue=DP000070000000000&url_api=true&mode=present&view_id=appBuilding - When loading the target application, the variable value is empty, there is no way to retrieve the variable value "DP000070000000000" from the p_projectValue variable from the URL
- In the target application, we have the same p_projectValue setup as a script variable with "Expose variable via URL parameter" option, like in the source application
With the script onInitialization() function :
var value_Prj=projectValue;
console.log(projectValue);
console.log(value_Prj);
Text_1.applyText(value_Prj); - The Text object cannot retrieved the variable value "DP000070000000000" : it is empty
- The console log is not displaying also the variable value
Environment
- SAP Analytics Cloud - Analytics Designer
Cause
In the Target application, the variable setup as a script variable with "Expose variable via URL parameter" option should not be named with the prefix "p_".
Resolution
In the URL of the target analytic application, there is a parameter that starts with "p_" and is followed by the script variable's name, like p_projectValue.
Remove the prefix "p_" in the script variable's name from the target application, it should be : projectValue without the prefix "p_" :
Keywords
NavigationUtils, createApplicationUrl, UrlParameter.create, script variable , KBA , LOD-ANA-AD , Analytics Designer , Problem