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

shahnisarg28

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)

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.