Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Looping Grid Update Bug

I have a grid that I map and loop a service response to,
Image

with this code from the $ mapping to the grid:

element.on("click", function () {
Apperyio.storage.selected_isle.set(value);
console.log(Apperyio.storage.selected_isle.get("$['name']"));
});
element.on("taphold", function () {
Apperyio.storage.selected_isle.set(value);
});
which saves the selected item to storage.

Here is my page after the service:
Image

The component "sort" is a number input box with a value change event that fires an update service.
Image

My issue is that when the update service triggers, the label and the input clears and the data in the database is replaced with nothing, or in other words, clears as well. Why is this?

Shared with Support.
Just open the app, click the menu button on the top left and click the Isles list item.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Looping Grid Update Bug

Hello Jack,

Could you please specify the name of the app?

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Looping Grid Update Bug

Yeah, you may need to know that, huh?

Lister.

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

Looping Grid Update Bug

Hello,

Could you show us screenshots with data which you send to the server and it's response?

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Looping Grid Update Bug

Test work just fine
Image

its messes up when the data comes from the grid.

Image
Image

I can confirm through the console that the values are not being transferred over to the service properly, BUT they ARE being transferred over correctly with the same trigger over to a mapping: Image

Feel free to play around with this. The data on this collection is not important.

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

Looping Grid Update Bug

I meant data from the browser network tab.

Return to “Issues”