Data viewer rows desapear

This is not what I meant to say.

I was using the List Viewer as a synchronous component alongside the create row as an asynchronous component.

We have seen that the outer loop which contains an asynchronous block (Web API in this case) works as expected and fills the List Viewer with all rows. From this we come to the conclusion that the issue is with the amount if time it takes the create record to actually commit data to storage which is long enough for the outer loop to run again and overwrite the previous data of the local table.

So, the issue is all about timing. The solution is to introduce a delay in the outer loop to give the necessary time for the slower asynchronous block to complete its operation. This way we can avoid overwriting of the data.

See the updated project.
https://x.thunkable.com/projectPage/6174ffbb20566a0011faf503

I have added a new variable stillRunning which is turned TRUE in the start of the loop and only turned FALSE after the create row is done.

I also introduced a while loop at the bottom of the main loop to delay the main loop enough time for the records to be written to local table.

Check and let me know.

1 Like