Help saving text with tinyDB

i have a textbox how can i save the entered data and when i exit the app and open it again the data i entered before is still there
Capture

3 Likes


i have many textboxes how can i save all data in textbox to tinyDB

all textbox.text saved with same tag?

You can make use of dictionary as data structure, everything under one roof.

image
Am I using this block?

You need to loop over any component block for all the objects for which you want to set value from tinyDB.

I think you will need an extension :thinking:

Why an extension for the simple task of saving textbox texts to tinydb tags ?

Here is a sample for you to study ...

Hi @thinh after doing some research, I have found a good solution for you.

First, you need to download this extension & import the extension to your project

App Inventor Extensions: Textbox | Pura Vida Apps

Second, you can follow the logic blocks that I have made. :wink:

Aia File: test303.aia (20.1 KB)

1 Like

Hi, @thinh I came up with another way, and this way you don't need an extension!

Here my logic blocks:

Aia File: Test606.aia (2.7 KB)

1 Like