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
#35076 - 02/22/11 04:41 PM IMb barcode random # generation
hiskeys Offline
OL Newbie

Registered: 02/22/11
Posts: 17
When creating an IMb barcode, it needs either a 6 or 9 digit random number. Should this be done with the 'random' function? It needs to be a unique identifier according to the USPS for 45 days, and we mail about 3-400,000/month, so 6 digit would be fine.

We can create the other digits, but not sure how to get the random ones generated.

Thanks!

Top
#35078 - 02/22/11 05:14 PM Re: IMb barcode random # generation [Re: hiskeys]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
hiskeys,

Yes, you can use the random function in PlanetPress to generate random numbers. Here's a help page on how to use it:

http://www.objectiflune.com/documentation/en/planetpress-talk/3014.html

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top
#35086 - 02/23/11 09:41 AM Re: IMb barcode random # generation [Re: Raphael Lalonde Lefebvre]
JulieK Offline
OL Newbie

Registered: 02/23/11
Posts: 7
Loc: Tampa, FL
Raphael,
I'm super new to PlanetPress, but I'm familiar with coding. At where and what point would I use that code? I'm having the same issue with random generation in IMB/OneCode.

Thank you so much in advance for you knowledge sharing!
Julie
smile

Top
#35089 - 02/23/11 10:23 AM Re: IMb barcode random # generation [Re: JulieK]
hiskeys Offline
OL Newbie

Registered: 02/22/11
Posts: 17
Thank you Raphael,

This is our first time generating an IMB, and so we will have the 2 digit Barcode Identifier, the 3 digit Service Type Identifier, and the 6 digit Mailer Identifier, but at that point, we will need to insert a 9 digit random number before the 5th and last section, our 11 digit PostNet. So the string would look something like:

='22333666666' + '999999999' + @(24,1,11)

...except that, of course, the 'random' function would be used to generate digits 12 thru 20.

The example you gave is PlanetPress Talk. How is that integrated into a string like the one above?

Thanks again!

Top
#35090 - 02/23/11 10:32 AM Re: IMb barcode random # generation [Re: hiskeys]
Eric Lachance
Unregistered


hiskeys (and Julie),

You'll have to generate your number outside of the barcode itself. This can be done by creating a global variable called, for example, "SerialNumber".

Then, in the "PlanetPress Talk Before" box of your barocode, put in the following code:

Code:
define(&x,integer,1)
&SerialNumber := ''
for(&x,1,1,10)
  &SerialNumber := &SerialNumber + inttostr(floattoint(random()*20)+1)
endfor()


You can then use the &SerialNumber variable in your barcode string, like so:

Code:
='22333666666' + &SerialNumber + @(24,1,11)

Top
#35123 - 02/25/11 03:50 PM Re: IMb barcode random # generation [Re: ]
JulieK Offline
OL Newbie

Registered: 02/23/11
Posts: 7
Loc: Tampa, FL
smile
Eric,
You're our hero!
It looks like it's working, how exciting!!
Any suggestion on a quality check to make sure I've done it correctly?
Thank you so much for your great instuctions.
Julie and Gary

Top
#35124 - 02/25/11 03:54 PM Re: IMb barcode random # generation [Re: JulieK]
Eric Lachance
Unregistered


Hi Julie,

If it works and it doesn't give you sequential or static numbers, then I'm fairly certain you don't need any quality check. Be confident in your abilities smile

Top
#35129 - 02/28/11 10:56 AM Re: IMb barcode random # generation [Re: ]
JulieK Offline
OL Newbie

Registered: 02/23/11
Posts: 7
Loc: Tampa, FL
Eric,
I guess I did it right then they are not sequential and not static. So yea me. :-)

Thanks again for your help!!

Julie

Top
#35585 - 04/06/11 05:14 AM Re: IMb barcode random # generation [Re: JulieK]
keithbohr Offline
OL Newbie

Registered: 04/06/11
Posts: 8
Loc: Bristol
I need to create 4 different barcodes for 4 vouchers on a flyer which when redeemed I have to match back to see who used them (barcode scanner?)
150000 flyers
Is this possible using my planet press 7?

Top
#35588 - 04/06/11 09:04 AM Re: IMb barcode random # generation [Re: keithbohr]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Keith,

To be honest, I am not entirely sure what you mean by "4 vouchers on a flyer which when redeemed I have to match back to see who used them"...

Can you give us more details?

Thanks!

Raphaël

Top
#35610 - 04/06/11 02:53 PM Re: IMb barcode random # generation [Re: Raphael Lalonde Lefebvre]
Arch1 Offline
OL Expert

Registered: 02/15/11
Posts: 216
Loc: michigan
Yes I have done this. You need to include a household Id as part of the barcode string to identify the recipient.
_________________________
Dan Lixie
Archway
734-713-2417

Top
#35622 - 04/07/11 07:02 AM Re: IMb barcode random # generation [Re: Raphael Lalonde Lefebvre]
keithbohr Offline
OL Newbie

Registered: 04/06/11
Posts: 8
Loc: Bristol
the vouchers are free swimming vouchers enabling the person to go to their nearest leisure center for a free swim but they need to know who is getting the free swim hence a barcode that can be read and the information put back onto the excel spreadsheet for future use. Hope this is OK

Top
#35623 - 04/07/11 07:05 AM Re: IMb barcode random # generation [Re: Arch1]
keithbohr Offline
OL Newbie

Registered: 04/06/11
Posts: 8
Loc: Bristol
Thank you I will be back in touch, first I must submit a price.

Top
#35785 - 04/20/11 02:57 PM Re: IMb barcode random # generation [Re: keithbohr]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Keith,

This thread has been opened for a while, and I will now close it.

If you are still having issues or questions, feel free to open a technical support issue. You can call 1-866-348-5863, or use the web form:
http://www.objectiflune.com/OL/en-CA/Services/Support/ReportIssue.aspx

Regards,
Raphaël Lalonde Lefebvre

Top
Page 1 of 2 1 2 >