I want to delete the DAVID JOHN SMITH
Let do one thing at a time, are you able to display data from tinydb?
Use this block
to get row/column or cell content for the item you want to delete.
Apply this to your tinydb/list so that you can delete the entry
refresh your list/tinydb/tableview to relfect the change.
Can you send sample block?
Using my previous example:
When a row is selected, we subtract 1 from the row number (because of the header row) and then remove the item from the list (datalist). We then rebuild the datastring from the list (needing to remove all the quotes), and rebuild the table.
You will want to put a notifier choice block in here to confirm the deletion!
Before Deletion
After Deletion
I am used tiny db.
Well just update your tinydb accordingly with the new list
Desame block of tiny db?
You will need to show how you are storing your data in the tinydb, and how you are bringing this data into your app from the tinydb....
i'll tried in the TinyDb. Can't remove when click the Tableview.
Please show how you are working with your tinydb...
OK thank you.
Try blocks like this:
Please notice the bottom block "savedata". I have changed the way you save the three textboxes to saving a list of lists. This will work better for you.
Notice we load the tinydb to the variable on startup, and save to the tinydb everytime we make a change to the list.
Thank you very much. Only problem if only one data i got an error.
Error at your end, no issues here with no entries, 1 entry or more.
Check your blocks observing the advice from the error
attempt to remove item "0" from the list "((A B C))"
How to search using Textbox. Like a listview FilterBar.
Probably you need to start a new topic for this, explaining your requirement.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.