Skip to main content
Participating Frequently
October 6, 2008
Question

[CS2/CS3 JS] Inserting columns or rows in tables

  • October 6, 2008
  • 2 replies
  • 614 views
Anybody here know how to insert or add column(s)/row(s) in tables in Indesign Javascript? Please help... Thanks...
This topic has been closed for replies.

2 replies

Participating Frequently
October 6, 2008
Martin,

Thanks so much for your help.

-Joaquin
Inspiring
October 6, 2008
Hi Joaquin,

you might have to take use of the add()-command:

Add a column before the first column:

myTable.columns.add( LocationOptions.BEFORE, myTable.columns[0] );

Add a row after the last row:

myTable.rows.add( LocationOptions.AFTER, myTable.rows[-1] );


Martin