A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Label values not saved in database

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]

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Label values not saved in database

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.

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Label values not saved in database

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Label values not saved in database

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

Return to “Issues”