Page 1 of 1

Looping Grid Update Bug

Posted: Fri Oct 09, 2015 3:34 am
by Jack Bua

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.


Looping Grid Update Bug

Posted: Fri Oct 09, 2015 6:26 am
by Evgene Karachevtsev

Hello Jack,

Could you please specify the name of the app?


Looping Grid Update Bug

Posted: Fri Oct 09, 2015 6:27 am
by Jack Bua

Yeah, you may need to know that, huh?

Lister.


Looping Grid Update Bug

Posted: Fri Oct 09, 2015 6:33 pm
by Serhii Kulibaba

Hello,

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


Looping Grid Update Bug

Posted: Fri Oct 09, 2015 7:33 pm
by Jack Bua

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.


Looping Grid Update Bug

Posted: Sat Oct 10, 2015 3:43 pm
by Serhii Kulibaba

I meant data from the browser network tab.