Block having wrong connection thing... (SteveJG help pls)

So I saw SteveJG post this to save checkmarks in tinyDB, but the call block has wrong connection.
His block:
image
Mine:
image

Tinydb and firebase db??

TinyDB works like this> TinyDB

FirebaseDB works like this FirebaseDB

How YOU retrieve from the TinyDB depends on how YOU save to it (TinyDB.StoreValue) .

Did you save the state of the AutoSave.CheckBox to the TinyDB? The saved state will be either true or false depending on whether checked or not checked.

Possibly you want to connect AutoSave.Checked to the TinyDB1.GetValue ? which should be true or false.

I'm trying to make so when i check tinyDB and reopen the app its still saved, but it doesnt work whatever i try
image

Your TinyDB GetValue block will not do anything, it must be inside for example an event

Therefore in your Screen Initialize event do it like this

Set Autosave.Checked to TinyDB.GetValue...
Also the socket valueIffTagNotThere should be a boolean value true or false

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.