Skip to main content

Search

Search

Bartender 10.0 Mandatory Fields?

Comments

1 comment

  • Avatar
    Michael Toupin (mtoupin

    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.