On the ChronoScan Vlog page you will be able to experience our training videos on a completely different level. You will be able to see each video individually and ask and see the related questions made by other users on the comments section. You can start by scrolling down the pages or by using the search box at the bottom of the page.
Home
Tips and Tricks
Showing posts with label Tips and Tricks. Show all posts
Showing posts with label Tips and Tricks. Show all posts
Barcode Validation on ChronoScan Tips and Tricks
There are several ways to create validation rules on ChronoScan. On this video we will learn how to implement some scripting to create a somewhat simple validation rule for a barcode reading field.
The most important function for that effect is the OnValidate scripting section found on the properties for any field on your ChronoScan setup:
The most important function for that effect is the OnValidate scripting section found on the properties for any field on your ChronoScan setup:
- Right click on a data field on the Form view;
- Click on Properties;
- The properties for that field will open up on the Properties Panel;
- On the Properties Panel scroll down to the Scripting section and click on the gear icon for the OnValidate field to open the VBScript editor for the OnValidate event.
If Left(UserField_Extra.value, 4) = "DONE" Then
UserField_Done.value = "true"
UserField_Difference.value = "false"
End If
If Left(UserField_Extra.value, 4) = "DIFF" Then
UserField_Done.value = "false"
UserField_Difference.value = "true
End If
The logic is very simple and is making sure that it is known which value the barcode reading field Extra have. Some extra lines could be added to make sure there is a error on the field should it doesn't assume either the values "DIFF" or "DONE" but with barcode reading the error margin is very broad as hardly a barcode is not readable on document of that nature.
Subscribe to:
Posts
(
Atom
)