Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to autonumber expanding table in 4 digits, specially when the increment in multiplication of 10

Avatar

Level 2

Hello all,

I know it would have a simple solution, but being very new to livecycle, I am not sure how to do this.

I have a table in my form, which expands as per the digits entered in a separate numeric field. Now, I even made it to autonumber itself, but the thing is I want them to autonumber in 4 digits, that to in multiplication of 10.

For example, 0010, 0020, 0030, 0040 and so on.

Can anyone please tell me how do  I do this? Any help would be appreciated.

Thanking you,

Nisarg

1 Accepted Solution

Avatar

Correct answer by
Level 10

To do this add this script to the table rows indexChange event.


NumericField.rawValue = (this.index + 1) * 10;


For the numeric field use the display pattern num{9999}.

Hope this helps.

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

To do this add this script to the table rows indexChange event.


NumericField.rawValue = (this.index + 1) * 10;


For the numeric field use the display pattern num{9999}.

Hope this helps.

Avatar

Level 2

It was very simple and, it really helped.

Thanks @radzmar

-Nisarg