IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Page 1 of 2 1 2 >
Topic Options
#47976 - 05/20/14 04:37 PM Barcode issue
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Funny issue here with a barcode - I'm checking to see if anyone else has seen this funky occurance.

We're using a "Datamatrix" barcode, width of 21mil, square with Error Correction Level 1 (whatever that means).

We're using leading zero's on the barcode in an effort to create a 6-digit number, so 1 = 000001, etc.

25 is scanned as 000025 - but 26 is scanned as 00026. Only 5 digits. It'll revert back to 6 digits later on. Could it be that we need to bump up the 21 mil size?

Wierd.

Top
#47979 - 05/20/14 04:45 PM Re: Barcode issue [Re: strido]
jim3108 Offline
OL Expert

Registered: 04/19/10
Posts: 316
Loc: London, UK
There must be something wrong with the data selection because I have just tested this by hard-coding the data selection in the Datamatrix barcode object to a string value of '000025' and '000026' and both were read correctly by my iPhone.

Can you post the data selection?


Edited by jim3108 (05/20/14 04:45 PM)

Top
#47981 - 05/20/14 05:07 PM Re: Barcode issue [Re: strido]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Yea, I just noticed that myself - I put a man-readable underneath it and it does the same thing. The data selection is this:

=GetMeta('SelectedIndexInGroup[0]', 1, 'Job.Group.Document')

That gives us the sequential numbering. Then in "lines" I put this in:

=left('000000',(6-length(inttostr(&current.datapage))))

Top
#47982 - 05/20/14 05:13 PM Re: Barcode issue [Re: strido]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
It'll go to 6 digits again when it gets to 100. But later on it'll drop a zero and revert back to 5 digits, at around 300. So 00300 instead of 000300....

fun stuff

Top
#47984 - 05/20/14 05:40 PM Re: Barcode issue [Re: strido]
jim3108 Offline
OL Expert

Registered: 04/19/10
Posts: 316
Loc: London, UK
So are you trying to pull the barcode from the result of the manipulated data selection?

What is set in "Data" in the Barcode object? Presumably you have a custom data selection for this?

Top
#47988 - 05/21/14 09:02 AM Re: Barcode issue [Re: strido]
JFLAIR
Unregistered


Strido,

If you want to have leading zeros, you should use the right function instead.

=right('000000'+inttostr(&current.datapage), 6)

Hope this helps.
Regards,
JF

Top
#48004 - 05/21/14 11:40 AM Re: Barcode issue [Re: jim3108]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Originally Posted By: jim3108
So are you trying to pull the barcode from the result of the manipulated data selection?

What is set in "Data" in the Barcode object? Presumably you have a custom data selection for this?



This is the string in my "data" field for the barcode:

=left('000000',(6-length(inttostr(&current.datapage)))) + GetMeta('SelectedIndexInGroup[0]',1,'Job.Group.Document')


But since it's also happening on the man-readable, I don't think it's specific to barcoding

Top
#48007 - 05/21/14 02:30 PM Re: Barcode issue [Re: jim3108]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Originally Posted By: jim3108
There must be something wrong with the data selection because I have just tested this by hard-coding the data selection in the Datamatrix barcode object to a string value of '000025' and '000026' and both were read correctly by my iPhone.

Can you post the data selection?


Is it possible to post that?

Top
#48008 - 05/21/14 02:47 PM Re: Barcode issue [Re: ]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Originally Posted By: JFLAIR
Strido,

If you want to have leading zeros, you should use the right function instead.

=right('000000'+inttostr(&current.datapage), 6)

Hope this helps.
Regards,
JF


This works a bit - but it puts a 1 at the end of every number.

Top
#48011 - 05/21/14 03:08 PM Re: Barcode issue [Re: strido]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Originally Posted By: strido
Originally Posted By: jim3108
There must be something wrong with the data selection because I have just tested this by hard-coding the data selection in the Datamatrix barcode object to a string value of '000025' and '000026' and both were read correctly by my iPhone.

Can you post the data selection?


Is it possible to post that?


I think he meant the string that you have in your data selection object, not the object itself!

Top
Page 1 of 2 1 2 >