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
BedrockMission!

Learn More

View all

Sign in to view all badges

Encode leading zeros in barcode

Avatar

Avatar
Boost 1
Level 1
rickstsx04
Level 1

Likes

2 likes

Total Posts

47 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
rickstsx04
Level 1

Likes

2 likes

Total Posts

47 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
rickstsx04
Level 1

19-06-2015

Hi Everyone!

I am having trouble with encoding leading zeros into a barcode. Is there a javascript to force a leading zero to be generated into a 2D barcode in LiveCycle?

Thanks!!!!!!

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

23-06-2015

I was using the calculate event for that previous example, but the PDF417 BarCode doesn't allow that to be modified. So, I would suggest a button or other valid event.

A quick test to verify it's working.


p1.btnChangeBarCode::click


if (PDF417BarCode1.rawValue == "0000001234") PDF417BarCode1.rawValue = "9876543210";


else PDF417BarCode1.rawValue = "0000001234";


Avatar

Avatar
Boost 1
Level 1
rickstsx04
Level 1

Likes

2 likes

Total Posts

47 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
rickstsx04
Level 1

Likes

2 likes

Total Posts

47 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
rickstsx04
Level 1

23-06-2015

I'm using PDF417. The barcode gets generated by a button. Would the code go on the button or on the field itself?

Thanks for your help!

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

23-06-2015

Which barcode are you using? I was able to leave the leading zeroes in an EAN8 barcode just by supplying the rawvalue as a text string.

this.rawValue = "00001234";