Page 1 of 1

storage variable based on a model not working

Posted: Fri May 01, 2015 7:08 am
by Rodrigo Dias

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?


storage variable based on a model not working

Posted: Fri May 01, 2015 12:45 pm
by Illya Stepanov

Hi Rodrigo -

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


storage variable based on a model not working

Posted: Sat May 02, 2015 1:21 am
by Rodrigo Dias

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.