Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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