Trying to push the limits of App Inventor!
Snippets,
Tutorials and
Extensions from
Pura Vida Apps by
Taifun.
http://stackoverflow.com/a/36115708/1545993
Is it possible to use the datepicker to set the date? It would be unpractical to generate the apk every time a new date would be set.
Ray
I suspect that you get an empty screen because the values of global variables are not passed between screens. There is only one TinyDB, so you could use what is in there. But I would suggest that you do not try to solve two problems at the same time, that is unwise coding practice. First solve the editing and searching, then read up on managing multiple screens. There are plenty of forum appends that point to plenty of documentation.
The edit button is almost a combination of the delete and add buttons. First you pick a book, then you show the values in the edit fields (the code for that is already there in the after picking block). To make it nice you could enable and disable the appropriate blocks at the appropriate times. When the edit button (a better name would be save) is clicked, you make a list as in the add button, you replace this list and the list of books, by using replace instead of remove as in the delete button code, you store the list in the TinyDB and to show the updated list, you read it back again, as for the delete button.
Cheers, Ghica.
Anyway, it is no essential. Just disable it (click with your right mouse button on it and choose disable) and try again.
Cheers, Ghica.
Hi Ghica,
Thanks for the feedback. I thought that there had to be something not right as I had some problems testing it on the phone. There is the call TinyDB1 floating on its own, where must this be docked on to? Screenshot attached.
I want to try and make the search book function now and hope it will go easier. Can I arrange for the books returned at first to show on top of the list?
Greetings
Ray