Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
Showing results for 
Search instead for 
Did you mean: 
Feature discussed: Passing variables from main application to bookmark

Context / scenario:

We have several custom widgets in our application which requires initialization since bookmarking won't load custom widget state. For loading this custom widget, we need the state of many variables in application while the application was bookmarked. For ex: selected country, selected cost center, selected month etc.


Saving bookmark :

We can pass the variables values using an array. This array has to be passed as a parameter in saveBookmark API namely properties. Syntax


Save bookmark with properties

Even arrays can be passed by converting them to string using join function.




Loading bookmark:

In the initialization script, we have to get all variables passed in properties using below syntax and call appropriate functions to load custom widgets


Loading bookmark after reading passed properties


In summary, we can pass variables using Properties of bookmark while saving and use it to load custom widgets once bookmark is loading other widgets. This is a quite feasible work around when we have requirement to bookmark applications with custom widgets without many hassles. There is limitation to pass only a specific number of characters maximum in the properties. We could pass around 60+ variables in one of the applications.


References on bookmark

SAP Analytics Cloud help for Bookmarks topic:

Other blogs related to bookmarks:

Post and Answer questions related to SAC topics:


1 Comment
Labels in this area