cancel
Showing results for 
Search instead for 
Did you mean: 

Where are preferences stored?

former_member223302
Active Participant
0 Kudos

Hi,

where are preferences stored when setPreference is called?For how long are they stored?As long as the widget exist?

var prefs = new gadgets.GadgetPrefs();

prefs.setPreference("Greeting", "Value");

Regards,

Elena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Elena,

The preferences are stored on a DB that is linked to the application which is running your widget (The application is actually the site who is hosting the widget).

They are stored as long as the instance of the widget exists in the site.

Once the instance is removed from site, the preferences are removed as well.

Best,

Sapir

former_member223302
Active Participant
0 Kudos

Thanks a lot.Can one actually see the link between the app corresponding to the widget and the DB in the cockpit?

Former Member
0 Kudos

Hi,

There is no link between a widget <--> DB schema.

The link is between the DB schema and the application (aka site) who is hosting the widget.

More information can be found on SAP HANA Cloud documentation:

SAP HANA Cloud Platform

Best,

Sapir

Answers (0)