Chris7650227
Posts: 0
Joined: Mon Jul 20, 2015 9:22 am

Apperyio.storage

I'm sorry, but I'm a little lost in your documentation regarding Model and Storage( https://devcenter.appery.io/documenta...).

I have a model called "temp" setup in session storage using "Model and Storage". There is a variable in "temp" that is called "tab". I want to query it using Javascript, but I'm failing. How exactly would the JS using the recommended Apperyio function call look like?

Apperyio.temp.tab.get()?
Apperyio.sessionStorage.temp.get("tab")?

Sorry, I may be confusing myself, but the documentation doesn't really give an exact example...

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Apperyio.storage

Hi Chris,
Model it is just data structure to represent variables.
You need to create some object before:
code
var object = Apperyio.getModel('temp');
/code
or use storage tab to do this on UI

Chris7650227
Posts: 0
Joined: Mon Jul 20, 2015 9:22 am

Apperyio.storage

Hmm...not sure this answers my question completely. "object" now contains the structure. And how do I get the current value now from session or local storage?

Chris7650227
Posts: 0
Joined: Mon Jul 20, 2015 9:22 am

Apperyio.storage

...never mind. Finally figured it out. Thanks!

Return to “Issues”