[Solved] Update localdb from web API data when screen opens

is it possible to do this.

i have an array like this

REST%20Console%20-%20before%20-%20Backendless

and I want it when the screen opens, then update cells for each array of web api. like this.

I want my application to run offline without an internet connection. By first saving the object in localdb. How can I achieve this workflow. Thanks

1 Like

Hi,

image

Does this help you?

Thanks!

I do not really understand it, what you need of LocalDB, if you already have a data set? What of upload LocalDB, if you open the screen, these data already exist in a variable?

1 Like

I want to make an offline listview. therefore I save all objects in localdb. I have not tried it, but thank you @kartik14 . because thunkable listview cannot be custom and appears only list without image. I tried other ways. Do you have any advice? @actech

You do not need to use LocalDB to add data to ListViewer. All data record in the List, and then copy them to the List Viewer.

1 Like

I’m trying your way @actech
https://x.thunkable.com/copy/9a1a1ad00a4fe05efd73f6fc8ec61182

Can this be used to api call so that my list becomes dynamic?

Yes. You need to instead of my data in the variable List insert your data, obtained from the API in JSON format.

1 Like

thanks @actech I will try your way

@actech how to create variable “start”

I did not find you using initialize “start”

3b049ee3-fd33-4e18-9d3d-e890eeb5ed01

These blocks are created from the function block parameters

.

3 Likes

thanks @actech