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)

Topic Options
#58155 - 09/27/21 01:16 PM Custom Data String for Datamatrix Barcode
Finny81 Offline
OL Newbie

Registered: 09/27/21
Posts: 2
I have a 34 character Datamatrix barcode I am trying to create. All but 5 characters of the barcode are the same each time. The other 5 characters need to capture which record in the dataset it is and have leading zeros for any empty slots.

I've been trying to concatenate a custom data string with very little progress. Thank you in advance for any help that you can provide.

Top
#58156 - 09/28/21 06:26 AM Re: Custom Data String for Datamatrix Barcode [Re: Finny81]
jim3108 Offline
OL Expert

Registered: 04/19/10
Posts: 316
Loc: London, UK
Can you share what you have tried so that we can try to help?

Top
#58157 - 09/29/21 07:32 AM Re: Custom Data String for Datamatrix Barcode [Re: Finny81]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
In your barcode, use a Custom data selection with the following two strings:
Code:
='This is a string of 29 chars.'
=right('0000'+inttostr(&current.datapage),5)


Obviously, change the content of the first string to match the 29 static characters in your own barcode.

You can use the same custom selection in a standard Data Selection object to preview the result without having to actually scan the barcode.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top