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

Avatar

Avatar
Validate 1
Level 1
shahnisarg28
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
shahnisarg28
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
shahnisarg28
Level 1

21-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

21-10-2015

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.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
shahnisarg28
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
shahnisarg28
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
shahnisarg28
Level 1

22-10-2015

It was very simple and, it really helped.

Thanks @radzmar

-Nisarg