Hello, i make a dynamic Component card view with Schema.
I’m using Google Spreadsheet as database.
when i delete a list using button Click. it worked perfectly in database. my clicked list deleted the row successfully. but not so well in Application side. Although the data was deleted in database side, but card view still load the old list data. the list not refreshing.
my logic said, for refreshing, you need to repeat the Create List - Delete List - Create List Process. But i can’t represent it in block.
can i get a little help with a method for refreshing in my case?
this is image for how i create list with dynamic component schema.
at the right side, is my attempt to get a delete function, but it seems not working, something wrong.
The logic is, you have deleted the item from list but not from this global list so after deleting the item try to delete the same from the global list and use the above procedure then recreate the schema. It will work with the new global variable
When the web got text just save the values in tinydb… after deleting particular item from the listview, delete the same from this tinydb using the block remove item from the list, and save the new list in tinydb and recreate schema(no need to modify anything in schema) from this tinydb
Put the schema creation with length of the global datagoohlesheet in a procedure.
When delete card clicked,
Already you designed blocks to del data from gsheet. Here you can call once again the web url from gsheet and repeat the process or
Delete the time from global list using the block index is in list and once again run the schema procedure
i did that… look at my block… i set up URL after i delete list… and create schema again… i repeated that…
technically in background process, it reset the list and create list again…
i checked that, with manually refresh, it works… but it just didn’t immediate work…
in the user viewpoint (Smartphone screen) the data seems no change…
i think my problem is just from the front-end… not back-end…
but with the clock, it give my screen time to load, so the data can load well