Clearing Data Entry After Format.CancelPrint Follow
In Print station, a label i have created requires user input from a barcode scanner. The user scans the barcode and the label is printed, as well as encoding the tag in SGTIN-96 format.
I'm trying to add data validation to the data entry field, in case they scan the wrong barcode. I have added a simpe VB script to the linked data source which is:
If Left(Value, 2) <> "01" Then
Call Format.CancelPrinting("Invalid barcode.")
The data validation works, but it gives me a popup that says, return to Data Entry Screen, or Cancel.
Two main issues i have, one is that when returning to the Data Entry Screen, the old value is still there. How do i clear it?
The second is that, i don't want the user to be able to Cancel. So basically i need a message that says "invalid barcode", user presses OK, and goes back to empty data entry field.
Also, whenever the CancelPrint dialog is shown, the data entry form is minimized, and i see the Windows Desktop, very ugly.
Please sign in to leave a comment.