Group Abstract Group Abstract

Message Boards Message Boards

3
|
16.7K Views
|
10 Replies
|
13 Total Likes
View groups...
Share
Share this post:

TableView improvement suggestions

10 Replies

TableView does not allow the deletion of a cell.

This slipped through the cracks and will be fixed shortly.

POSTED BY: Jason Abernathy
Posted 6 years ago

Thanks for the pointer, I've reported this to the appropriate development team.

POSTED BY: Kyle Martin
Posted 6 years ago

I was quite disappointed by this behavior as well. When I read about TableView[] I immediately updated to 12.1, hoping to be able to build an easy to sue interface for data import.

But with TableView[] ignoring cell deletion this seems not feasible.

I wonder why the implementation was chosen to be like it is now.

POSTED BY: Stefan Popien

Funny things in TableView :)

TableView[Table[{n, N[ZetaZero[n], 5]}, {n, 1, 100}], ItemSize -> {15, 1}, AllowedDimensions -> {2, 100}]

Scroll Down to the end and See RED boxes. Scroll Up at the beginning and see No data in the Column 2.

Regards :)

POSTED BY: Mariusz Iwaniuk
Posted 6 years ago

The following additional issues make TableView[] rather useless (to me):

  • copy & paste works flawlessly within the TableView, but not from Excel or LibreOffice (\t and \n separated, instead the whole cell range is pasted into one cell)
  • copy & paste does not work at all when the TableView is displayed in a dialog

TableView[] has great potential for interactive input, but is not useable now. I wonder what Wolfram intended users to do with it in its current state.

POSTED BY: Stefan Popien
Posted 6 years ago

The following works. Replace cells to be deleted with "x" and press "OK", which will display a new TableView with the cells deleted. Pressing "Cancel" closes the dialog and the final data can be read from "table".

res=True;
While[res,
  res=ChoiceDialog[TableView[Dynamic[table],AllowedDimensions->{5,5}]];
  If[res,
    (table[[Sequence@@#]]=Null)&/@Position[table,"x",{2},Heads->False];
    table=Replace[table,{{Null..}->{},{x__,Null..}:>{x}},{1}];
    While[table[[-1]]==={},table=table[[;;-2]]]
    ]]

Hope it will be of use! / Hoffe es ist von Nutzen!

POSTED BY: Stefan Popien

On a slightly different tack, could options be provided to allow the content of table cells to be aligned (e.g. Alignment->Left) and wrapped when too large to fit the cell. It would also be useful to be able to specify row and column headings.

POSTED BY: Ian Williams

The first thing I tried when testing TableView was to copy data from Excel to TableView and vice versa. Unfortunately it’s not possible.

POSTED BY: Rodrigo Murta
Posted 6 years ago
POSTED BY: Stefan Popien

Thank you for the reply. I had hoped, I had made a mistake. In its current state, TableView[] is completely useless.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard