Help About TABLEVIEW

Well, because of screen size, you either:

  1. Have the basic data and a means to show expanded data for one person (click on the person's data row, swap-out the current vertical arrangement with one that has all of the data of interest for that person)

or

  1. Use a table that scrolls horizontally as well as vertically. You can do that with Arrangements and Labels but it is a lot of work, so either Ken's extension or an HTML Table.
1 Like

I choosed tableview. That is easy for me.

But How to delete data when i click the TableView?.
My database is TinyDb.

Show please your blocks to display data from tinydb.
Do you want delete selected row or selected cell ?

Yes i want to delete the selected cell. Like that my block

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
image

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
image

After Deletion
image

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....

:grinning: i'll tried in the TinyDb. Can't remove when click the Tableview.

Please show how you are working with your tinydb...

Thats my block in Saving of Data.

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.

1 Like

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.