Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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

2 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