Restart Serialization Each Day S’abonner

0
Avatar
Legacy Poster

Hi, I have an embedded text data in a barcode using a serialization transform. It's set to run 0001 to 9999 however I need it to reset to 0001 each day.
How do I force a rollover or is there a simpler reset method?

8 commentaires

0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

Hi, there's no such setting to reset serial number every day - you need a bit of scripting.
Create 3 text with share name:

SYSTEMDATE (Datasouce: System date)
LASTPRINTEDDATE (Datasource: Embedded data)
SERIAL (Datasource: Embedded data, Serialized, update after print)

Create a data entry form, place a input box and link to "SERIAL"

Create a text in label design view - this is just for VB Script.
Select VB Script source - Event control script.

in OnAutoSelected Event:
[code]Value= "Script"[/code]

in OnPrePrompt Event:
[code]
If SYSTEMDATE <> LASTPRINTEDDATE Then
SERIAL = "0001"
LASTPRINTEDDATE = SYSTEMDATE
End If
[/code]

see attached document (BarTender 9.1 or later.)
0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

[quote name='Shotaro I -Seagull Support' timestamp='1340950083' post='2718']
Hi, there's no such setting to reset serial number every day - you need a bit of scripting.
Create 3 text with share name:

SYSTEMDATE (Datasouce: System date)
LASTPRINTEDDATE (Datasource: Embedded data)
SERIAL (Datasource: Embedded data, Serialized, update after print)

Create a data entry form, place a input box and link to "SERIAL"

Create a text in label design view - this is just for VB Script.
Select VB Script source - Event control script.

in OnAutoSelected Event:
[code]Value= "Script"[/code]

in OnPrePrompt Event:
[code]
If SYSTEMDATE <> LASTPRINTEDDATE Then
SERIAL = "0001"
LASTPRINTEDDATE = SYSTEMDATE
End If
[/code]

see attached document (BarTender 9.1 or later.)
[/quote]


Shotaro,

what if I like to reset serial on weekly bassis with Bartender Version 7.75. can you please guide me to right direction.
0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

[quote name='V ANA' timestamp='1341616416' post='2777']
what if I like to reset serial on weekly bassis with Bartender Version 7.75. can you please guide me to right direction.
[/quote]
Hi,
Basically, you need to change "SYSTEMDATE" text's date format (currently "YY/MM/DD") to "Week of year" (found in Legacy date format, for BT10 users).
Note that number will reset on 1/1 (the first day of year) too.

However I wonder this works properly on 7.75 or not - 7.75 was a bit dated version and No longer the subject to technical support - hope that works.
0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hi,
I am using Bartender Enterprise automation 9.4 sr3 and I am trying to reset serial number each day to 000, so I used this information but when I print the label the serial number does not reset

Here is the label
0
Avatar
Domingo Rodriguez
Modérateur
Actions pour les commentaires Permalien

[quote name='soporte_avanza' timestamp='1348602304' post='3344']
Hi,
I am using Bartender Enterprise automation 9.4 sr3 and I am trying to reset serial number each day to 000, so I used this information but when I print the label the serial number does not reset

Here is the label
[/quote]

Find attached a modified version of your label format. Will this one work for you? I've modified the number of serialized copies to be printed via the "File > Print" dialog and also linked one of the user prompt items with the serial number on the label design. The other user prompt item is still not related to an object on the label, so I advice you to link it.
0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

From BarTender 10.1, reset serial number has been greatly improved and it supports reset serial number daily / weekly / yearly etc, along with specific database / named data source / object value changed etc.

Which can be accessed from Transform > Serialization (properties button at right)> Reset tab.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

For those, who are still using Bartender 9.
I made some changes in the code. Hope it will be helpful

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hi, there's no such setting to reset serial number every day - you need a bit of scripting.
Create 3 text with share name:

SYSTEMDATE (Datasouce: System date)
LASTPRINTEDDATE (Datasource: Embedded data)
SERIAL (Datasource: Embedded data, Serialized, update after print)

Create a data entry form, place a input box and link to "SERIAL"

Create a text in label design view - this is just for VB Script.
Select VB Script source - Event control script.

in OnAutoSelected Event:

Value= "Script"
in OnPrePrompt Event:
If SYSTEMDATE <> LASTPRINTEDDATE Then
  SERIAL = "0001"
  LASTPRINTEDDATE = SYSTEMDATE 
End If
see attached document (BarTender 9.1 or later.)

This helped me enormously. Thank you

Vous devez vous connecter pour laisser un commentaire.