edittable.ijs

Script: ~addons/finance/finexec/toolbox/edittable.ijs
Contributor: William Szuch
Updated: 2022 6 26
Depend: nil
Definitions: loaded to locale base
Status: done
Script source: edittable.ijs

Definitions to create, edit and show table data:
   numeric - undoxed and boxed
   text - boxed
   numeric/text - boxed
Using QTableWidget.
Edit one cell at a time.

note:

Modify to:
allow copy/paste from table
use for transfer of data from J to Excel.
See: showtable

Definitions

E edittable

edittable (verb)

Form: explicit
Depend: nil

Syntax

edittable(D)
D = data table: unboxed or boxed table
    numeric - undoxed and boxed
    text - boxed
    numeric/text - boxed
    saved as NEWTABLE on exit
    NEWTABLE is boxed with numeric and text data

Example

 Sample data tables
 A =: i. 10 10
 A1 =: <"0 i. 10 10
 B =: 10 10 $ <'Text'
 C =: A1,.B
  edittable i. 6 6        NB. Numeric data table
  >NEWTABLE               NB. Numeric data table
  edittable 5 6 $ <'Text' NB. Text data table
  NEWTABLE
  edittable A
  edittable A1
  edittable B
  edittable C
 Create a table
 edittable 1 10 $ 0    NB. create a new table