Set the value of a Keyed object

Hi All,

I’m using an keyed object to store user’s preferences.
The keyed object is created by a Server Connect.
I can READ values using this syntax prefs_array.value.BOOKS_EMP for example.
But i do not figure out how to SET a value. I tried prefs_array.value.BOOKS_EMP.setvalue() but it doesn’t works.

How to do it ?

Thx

Have you checked the new Data Store component?

Not yet, i was currently having a look to session storage as a alternative.
What is Data Store pro’s and con’s vs session storage ?

Data storage can store your data in the session storage, it’s not one vs another :slight_smile:
https://docs.wappler.io/t/creating-a-shopping-cart-with-the-data-store-component/17465

Please check the doc i linked to.

1 Like

Many thank’s !