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
Read more...
Environment
- SAP Analytics Cloud - Analytics Designer
Product
SAP Analytics Cloud all versions
Keywords
NavigationUtils, createApplicationUrl, UrlParameter.create, script variable , KBA , LOD-ANA-AD , Analytics Designer , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview