Data Storage
Trigger Setup
In this sample, we will look at some options for storing temporary data between 2 scripts within the application.
VB Scripting contains three temporary storage variables, namely VBString1, VBString2, and VBString3. These values can be set using the Echo response, like the “Control Interaction” sample.
To demonstrate this, we will SET an arbitrary value when tabbing off the Job Number field and then show that value again when clicking the Allocate button.
If you don’t like reading, you can watch the video.
Try it!
Right click on the “Job Number” text box and add the following script to the Lost Focus event.
WScript.Echo “ ”
Right click the “Allocate” button and add the following script to the Click event msgbox ObjectData.Item(“VBString1”)
Testing this by loading a Job and then clicking the “Allocate” button will show the value was stored and then retrieved.