Overview and Interface
Trigger Setup
All primary transaction screens include adding VBScript to various fields and buttons. This allows customers to edit a traditional screen to include extra prompts, checkboxes, or fields entered during standard processing. For instance, a pack station checkout screen can be integrated extensively into a 3rd party logistics solution by simply adding VBScript functions into one of the standard DATASCOPE WMS checkout screens. The user would not 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.
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
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.
Let us look how to edit or create VBScripts - https://datascopewms.atlassian.net/wiki/spaces/TG/pages/226525198