Good afternoon, let me introduce myself. I'm Alejandro, and I'm new to the MIT Inventor app. If you could help me, please. I have my app and I use a webviewer textbox and a button. With the textbox, I enter a video URL from Drive, and it displays in the w

blocks


Good afternoon, let me introduce myself. I'm Alejandro, and I'm new to the MIT Inventor app. If you could help me, please.
I have my app and I use a webviewer textbox and a button.
With the textbox, I enter a video URL from Drive, and it displays in the webviewer. This is where I'm stuck.
How can I make the values ​​added to the textbox persist when changing screens and exiting the app?
And are the videos visible when I return?
I've tried TinyDB or CloudDB, but I can't integrate the blocks properly.
If you could help me, I'd be very grateful.

How many different URLs would you like to save?

Well, I would like there to be 5

Would you like to keep a name with each URL, so you could ask for them by name afterwards?

but I have a hard time making them stay when I go to another screen and come back

yes

I would like to save each URL and have it remain the same every time it is requested.

I have a hard time trying to put the blocks in order to be able to do that function.

Store the URLS in TinyDB under the video names you gave them as tags.

The TinyDB component has a block that gets all its tags as a list.

Use that to load the Elements of a ListView.

When a ListView selection is taken, use the Selection as a tag to lookup the matching URL from TinyDB. Then load that into the WebView.

TinyDb persists across screens.

But you can avoid screen switching by stacking multiple Vertical Arrangements, pnly one visible at a time.

BTW, why do you think you need extra screens?

Sorry, I don't need any additional screens. Just the one that will display the videos. I can make them scrollable.

Okay, so I need to put the listview instead of the text box.

I will try to do it like this, but what is difficult for me is putting the blocks in order... but you learn by messing around.

Thank you very much for your help.
I hope I don't complicate my life too much.

(See next post)

This should get you going.

1 Like

Oops, I had a bug. This should work.
blocks (1)
TinyDB_URLs (1).aia (2.2 KB)

1 Like

Haaaaa...
Thank you so much for the help.
Yes, I'll do the necessary tests.
With that image of the blocks, you'll help me a lot, and it won't be so hard.
Thank you. :v: