Trigger Setup
All major transaction screens include the ability to add VB script to a host of fields and buttons. This allows a customer to edit a traditional screen to include extra prompts, check boxes or enter fields during normal processing. For instance a pack station checkout screen can be integrated extensively into a 3rd party logistics solution by simply adding VB scripted functions into one of the standard DATASCOPE checkout screens. The user would not even know that the final solution includes customizations to automate all LSP label printing for instance
If you don’t like reading, you can watch the video.
<link to PDF doc on my OneDrive>
Try it!
What is VBScript?
VBScript talks to host applications using Windows Script. With Windows Script, browsers and other host applications do not require special integration code for each scripting component. Windows Script enables a host to compile scripts, obtain and call entry points, and manage the namespace available to the developer. With Windows Script, language vendors can create standard language run times for scripting. Microsoft will provide run-time support for VBScript. Microsoft is working with various Internet groups to define the Windows Script standard so that scripting engines can be interchangeable. Windows Script is used in Microsoft® Internet Explorer and in Microsoft® Internet Information Service.
Adding VBScripts to DATASCOPE WMS modules
Adding or setting up VBScripts to DATASCOPE WMS modules is relatively simple. Within the PC-based modules, VBScript can be applied to any of the following controls on the screen:
Text Boxes
Buttons
Grids
Note: Whenever you see the scripting icon ( ), it indicates that the screen can be customized with a VBScript.
When the user right-click on any of the controls listed (either a text box, button or within the data grid) and select VB Scripting from the pop-up, the VB Script Editor screen will open.
Interface
The VB Script Editor screen is used to create/edit VBScripts for the specific control from which the editor was opened.
The screen is broken down into five areas:
This is the main menu panel to save/exit the VB Script Editor screen.
This is the Script Details section where the Control, Event, and Script paths are displayed.
This is the main Code View where the VBScript will be written.
This is the Field Selector section where the fields available on the screen can be referenced.
This section is the Formal Builder to pass information back to the calling Control (for which the VBScript will be updated) and/or screen.
Prerequisites
To edit and create VBScripts, you will need the following prerequisites.
Correct permissions (typically only applicable to Administrators with some development experience).
VBScript Developer experience.
Permissions
You need the correct permissions to create/edit VBScripts on a PC screen.
Open DATASCOPE WMS
On the Ribbon Bar, select Permissions.
Select the Group Permissions tab.
Select the group Administrators, as Operators should not be allowed to customize modules.
All the permissions for that group will open. Ensure the Administrator has MAY_EDIT_VBSCRIPTING enabled.
If you have the correct permissions, you will notice the small VBScript icon on certain PC screens.