Adding A Print Counter To A Text Field Follow

0
Avatar
Legacy Poster

Version:BT 10.1

Printers: Zebra Stripe S4M and Zebra GX430T

 

I am attempting to add a counter that keeps track of labels printed per day in order to expedite inventory tracking. Can anyone tell me how I might add a field to my label that would increment by 1 each time the label is printed. To clearify, this particular field is not a barcode and does not get scanned, it purely consists of a date and number that increments up to around 400 per day. Secondarily, if there is a way that I can have this number reset by the clock that would be very helpful, however not crucial.

 

Thanks in advance for any input,

 

Edit:

 

I was able to get the serialization working properly, I am now working on getting the reset to work. I realize that there are reset options built into the serialize function, however, im wondering if the only options are on set increments, such as hour, day, week, etc? We run a swing shift and I need to be able to reset my daily count around 2:30 AM. Can a specific time be set?

 

Thanks once again,

 

-Miguel

10 comments

0
Avatar
Fernando Ramos Miracle
Moderator
Comment actions Permalink

Hello Mthomas,

 

If you are resetting your serial number using the built in feature referring to clock values, then it will surely be reset upon a new day, hour, or any other clock changes.

 

If you wish the serial number to be rest at a certain hour, you would need to instead use the reset on "data changes" feature, pointing to a "named data source" that only changes when that certain hour is reached.

 

For example, this named data source could be of a "clock" type, it's data type should be "time" but configured with a custom format of "dd" to display the day (this will allow you to set an offset on hours), and apply an offset of -2,5 hours. With this configuration this named data source will only change value at 2:30 in the morning.

 

Regards

0
Avatar
Legacy Poster
Comment actions Permalink

Hello Fernando,

 

Thank you for your reply. I have a data source which is a "clock" as you've said. I have chosen my reset parameters to reference this source and have set the offset to .125 days, in order to simplify the situation (reset at 3:00 am, rather than 2:30) My question now is, how do you determine the direction of the offset, is offset always considered later? or is there an option to make the offset earlier or later?

 

I have also attached my label, if that helps.

 

Thank you again for your assistance,

 

-Miguel

0
Avatar
Fernando Ramos Miracle
Moderator
Comment actions Permalink

Hello Miguel,

 

A date/time offset supports negative numbers for "earlier" date/times. Normal offset is always considered "later".

 

I've modified your document and attached it for you to take a look at it. With the current configuration the serial number will reset every day at 10:30 (I've set a constant offset to the time data source of "-150" minutes).

 

Regards.

0
Avatar
Legacy Poster
Comment actions Permalink

Everything seems to be in order, however, when I set the offset, arbitrarily to a time, say 1 minute from now, and then increment the count to a number other than 001, when the time changes over, it doesn't reset the value. Do you know why that might be, or how I can fix it so that it does?

 

Thanks,

 

-Miguel

0
Avatar
Fernando Ramos Miracle
Moderator
Comment actions Permalink

Have you also reconfigured the displayed clock format? If you've set a minute offset, but the object is displaying the "days" value, you won't see much of a change.

 

Remember that the serial number only resets when that object's value changes.

 

Regards.

0
Avatar
Legacy Poster
Comment actions Permalink

Yes, I changed it so that it displays mintues, but regardless of that, I adjusted the offset, in oreder to make it so that the day of the month would change at the appropriate time, and physically watched the data change in the field from 15 to 16, still no reset. I'm simpyl unsure why the count would not reset.

 

Thanks,

 

-Miguel

0
Avatar
Fernando Ramos Miracle
Moderator
Comment actions Permalink

Could you please attach the latest version of your document so I can take a look at it?

 

Thanks!

0
Avatar
Legacy Poster
Comment actions Permalink

Of course, keep in mind I simply have it set to change whenever my "clock" field changes, for any reason, simply to try and force a reset to happen. Once I have determined why it will not reset, then I would like to change it so that it resets at 2:30 or 3:00 AM.

 

Thanks,

 

-Miguel

0
Avatar
Fernando Ramos Miracle
Moderator
Comment actions Permalink

Hello mthomas,

 

Please do attach the latest version of your document so I can take a look at it.

 

Thanks.

0
Avatar
Legacy Poster
Comment actions Permalink

My apologies, I thought I had attached it.

 

Thank you once again,

 

-Miguel

Please sign in to leave a comment.