Message Boards Message Boards

GROUPS:

Paste data from Excel into `TableView` in Column

Posted 2 months ago
232 Views
|
0 Replies
|
0 Total Likes
|

I was looking for a way to paste from Excel into TableView. I can do it with an InputField like this...

TableView Expression:

tableViewExpr = TableView[Dynamic[tab]]

InputField expression:

inputFieldExpr = InputField[
 Dynamic[string, {(string = #) &, (tab = 
      StringSplit[StringSplit[string, "\n"], "\t"] /. {} -> Nothing; 
     string = "") &}], String, FieldSize -> {10, 1}, 
 ContinuousAction -> True]

But if I try putting these in a column

Column[{
inputFieldExpr,
tableViewExpr
}]

the table won't update when I paste in new values. I tried a few ways to force the TableView expression to update but haven't been able to make it work.

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

Group Abstract Group Abstract