Rodrigo Dias
Posts: 0
Joined: Fri May 01, 2015 7:08 am

storage variable based on a model not working

I've created a model called "cliente" and then created a local storage "objCliente" of type "cliente"

when I run the code
alert(Apperyio.storage.objCliente.get());
it returns a message "undefined"

Is it mandatory to bind any local storage to a db service?
I didn't do it!

Is it necessary to initialize before use a storage variable based on a Model?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

storage variable based on a model not working

Hi Rodrigo -

Could you please show us how you had defined your model and storage in builder with screenshots?

Rodrigo Dias
Posts: 0
Joined: Fri May 01, 2015 7:08 am

storage variable based on a model not working

I solved the problem adding a mapping linking the storage variable to an input field in the page.
The mapping is fired by the field's onBlur event.

Everything working fine.

Return to “Issues”