Hello guys. I am new to App inventor and I'm making a project about book search app.
Although I've finished the search page part, I don't know how to save a book title and author by clicking "Bookmark It!" button on Search page, store it in TinyDB (I named it BooksDB) then display book title and author to Listview in Bookmark page.
Here's the SearchPage screen(ran from Emulator) with block:
Very briefly - don't use a tag called "books". The tag could be the book title (no space characters allowed) and the value could be either just the Name of the Author or both the Name Of the Author and the Book Title.
How to store the bookmarks - as I described above, but where will your App collect the Book Title and Author from? We only go through an entire Project to help as a last resort given that we have so many people to help.
Not sure what you meant by collect but I am using Google Books API to get book's info (title, author, etc.). Is it possible to save book title and author to listview?
In practice you need additional code to reload the BookMark List on screen unitization to the ListView; provide code to avoid duplicates etc. The example ignores your Bookmark page. You really do not need at that code.
You can convert the BookMark List to a listOfPairs (BookMark2) as one way to place the author under the Title (or save the Title/Author data in that format in the BookMark List instead if the way it is done now)
The above example shows how to convert BookMark to BookMark2 and display the title/author in a ListView. It also shows how you might display the information in a Label.
Use a similar construction elsewhere in your app. You can save the data in the TinyDB as a list of pairs instead of as a simple List.