Symptom
How to pass the values containing the backslash via the NavigationUtils APIs in SAP Analytics Cloud (SAC)?
Various ways are tried and they all fail. Sometimes the following error is received:
- We detected problems in the URL used to access this story. If you came to this story from a URL you assembled yourself, please resolve the errors below. If you were brought here from a link, please contact your administrator. There was an invalid parameter value in filter f01. Please check that the parameters and values passed to the URL API are well-formed and properly encoded. For more help with the usage of the API, refer to the documentation at: https://help.sap.com/viewer/a4406994704e4af5a8559a640b496468/release/en-US/0c84d524ee1c4b88836287579cae7923.html
Environment
SAP Analytics Cloud (Enterprise)
Resolution
Add additional backslashes. For example, if you want to pass a filter with value AB\C and D, please write the script similarly as below:
UrlParameter.create("f01Val",'["AB\\\\C","D"]');
See Also
Keywords
SAP Analytics Cloud, URL parameters, story-like jump, composite characteristics, version dimension, cost center, backslash, error message, escape character, escape characters, encoded, encoding, decoded, slash, backslashes, NavigationUtils.openStory, NavigationUtils.openApplication, NavigationUtils.openStory(), NavigationUtils.openApplication(), NavigationUtils, Open URL, UrlParameter.create, UrlParameter.create() , KBA , LOD-ANA-AD-COR , SAC Application Designer , Problem