Bartender 10.0 Mandatory Fields?
I am trying to make a field mandatory to prevent printing an
object if certain fields are missing (ex. price, upc code, etc.) I have
tried the minimum number of characters option, but it allows a padding
option, and although it warns a user that a field is missing and that
the field has been padded (with "0" in our test), it will still give
them the option to continue printing using the pad. I don't want to give
the option to print. Is there any way to prevent printing entirely if a
field is empty in the datastream?
I am using version 10.0 of Bartender.
-
To stop it from printing you can just turn off the warning message for padding. Go into Administer, than Application Message setup, search for message number 2602, uncheck the box for 'Dialog (Interactive Use Only)', and make sure that the Default Response to Message is set to 'Cancel'. Leave Database or Text File logs checked if they're enabled. That way if any fields with a minimum are not met the job just won't print, but you'll be able to see in the logs what the problem is and why it occurred..
This isn't going to give any notification, for that you'd have to do some VB scripting to make a message pop up, in which case you could also leverage the 'Format.CancelPrinting()' command to stop the print procedure, so something like :
if Format.NamedSubStrings("sd").Value = "" then
value = Format.CancelPrinting("This field contains no data. Please check and try again.","")
End if
When using the CancelPrinting command notice that specifying "" for the continue button parameters does remove the continue button so all you get is the choice to cancel the job.
0
Please sign in to leave a comment.
Comments
1 comment