Page 1 of 1

Label values not saved in database

Posted: Wed Aug 19, 2015 8:45 pm
by A.W.H.

Hi, I'm having an error when saving data to the database.

Data stored from local storage is fine. But data stored in a label on the page, mapped to the database for storage, doesn't store anything.

Please take a look and let me know.

Image

Image Imageinline.png?1440017227[/img] [/url] Image Imageinline.png?1440017258[/img] [/url]


Label values not saved in database

Posted: Fri Aug 21, 2015 5:31 pm
by Serhii Kulibaba

Hello Ave,

Could you check data which you send to the DB when you use labels? Please send us screenshots with them from the browser's network tab?
Note: it is bad idea to use labels as sources. It is better to save all necessary data to the storage variable and use it in the future.


Label values not saved in database

Posted: Sat Aug 22, 2015 2:40 am
by A.W.H.

Ok. How do I iterate from a collection to local storage? It is much easier to iterate over a label and map the text to the label.


Label values not saved in database

Posted: Mon Aug 24, 2015 12:31 pm
by Serhii Kulibaba

E.g. you can add success event handler:

Apperyio.storage.myVariable.set(data);

here "myVariable" - name of the storage variable with the same structure as service's response