Hi everyone, basically I am trying to create a book reservation system. In the main page, the user will be able to click on a book from a list and the book info will then be transferred to another list called the reservationlist in another screen. So far I am able to transfer 1 data to the other screen but whenever I tried to go back to the 1st screen and I tried to send another data to the other list, it will replace the previous data in the list. I suspect the problem lies in the start value that I send to the other screen but I'm not so sure about this. Here are the sample of the coding blocks of screen 1 and 2.
So I need to create another data storage to store the chosen item from the list? If so, whenever I use the block listView afterpicking, store data to book reservation. Then on the 2nd screen, I just initialize the list to display the data from the book reservation table?
Also, it is a good idea to use multiple stacked Vertical Arrangements, only one visible at a time, instead of Screens, to avoid problems transfering data scross Screens.
Use Media Files to store your starting book collection and borrower list, as .csv files.
At Screen Initialize, look in TinyDB to see if you have already loaded those files into TinyDB. otherwise issue File Reads for those Files.
Do not try to keep your collection in text blocks. It would overwhelm the Blocks Editor and Build processors.
Since I am still new to mit app inventor, I am still not used to using media files and csv files as a storage. I am currently approaching this problem with another method.
How about using this method? I have tried it but still it just replaced the old data with the new data. It would be nice if I can just keep going back to add data without worrying to replace the old data in the new list.
Hi, I have referred to the project and make some changes to my app but it still would not add a new data to the list and replace the old data with the new one. I have changed back the blocks to my original blocks. May I share my aia file here and may I ask you to point out what I need to change and how to do it?