Expand my Community achievements bar.

SOLVED

How do I enumerate a table that grows?

Avatar

Level 4

I have a table that grows depending on the end-user input.  I would like the first column to show the enumeration for the table. For example, the first row after the header will be 1, the second row will be 2, etc.  I need a script that will add the correct number for each row that is created. I just KNOW there is an easy way to do this! Anyone? Anyone?

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi,

You can use index property.

On initialize event of your field you can put script:

this.rawValue = this.parent.index+1;

See example attached.

BR,

Paul Butenko

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

Hi,

You can use index property.

On initialize event of your field you can put script:

this.rawValue = this.parent.index+1;

See example attached.

BR,

Paul Butenko

Avatar

Level 4

Worked like a charm--thanks so much!