#35086 - 02/23/11 09:41 AM
Re: IMb barcode random # generation
[Re: Raphael Lalonde Lefebvre]
|
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
|
Top
|
|
|
|
#35089 - 02/23/11 10:23 AM
Re: IMb barcode random # generation
[Re: JulieK]
|
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: 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: ='22333666666' + &SerialNumber + @(24,1,11)
|
Top
|
|
|
|
#35123 - 02/25/11 03:50 PM
Re: IMb barcode random # generation
[Re: ]
|
OL Newbie
Registered: 02/23/11
Posts: 7
Loc: Tampa, FL
|
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
|
Top
|
|
|
|
#35129 - 02/28/11 10:56 AM
Re: IMb barcode random # generation
[Re: ]
|
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]
|
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
|
|
|
|
#35610 - 04/06/11 02:53 PM
Re: IMb barcode random # generation
[Re: Raphael Lalonde Lefebvre]
|
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]
|
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]
|
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]
|
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.aspxRegards, Raphaël Lalonde Lefebvre
|
Top
|
|
|
|
|
|