VWorks User Guide : Creating a protocol: advanced topics : runset object

runset object
About the runset object
The VWorks JavaScript interpreter provides the following objects that can be accessed by a script.
This topic describes the runset object properties and methods.
runset enables control of the Runset Manager through JavaScript. You can use the runset object to clear the runs from a runset or append protocols to a runset. You can also query the Runset Manager and retrieve various fields of interest, such as barcodes. For more information on runsets, see Managing runsets.
Note: If you are using the VWorks Watcher, the runset object can be used in a script that is called by Watcher to create runsets automatically. For details, see Setting up and using the Watcher tool.
Properties
The runset object has no properties.
Methods
Methods are JavaScript functions invoked through an object. The runset object has the following methods.
 
appendProtocolFileToRunset(string ProtocolPath, int RunTimes, string ProtocolNotes, string formToUse)
Appends the specified protocol file at ProtocolPath to the Runset Manager. Specifies the number of RunTimes, and provides any ProtocolNotes.
To specify a VWorks form to be associated with the protocol, formToUse must specify the file name of the form without the path, for example, C:\MyDir\MyForm.VWForm must be specified as "MyForm.VWForm".
appendProtocolFileToRunsetAtTime(string ProtocolPath, int RunTimes, string ProtocolNotes, string formToUse, string AtTime)
Appends the specified protocol file at ProtocolPath to the Runset Manager at the date and time (local time) specified by AtTime. Specifies the number of RunTimes, provides any ProtocolNotes that will appear in the Runset Manager pane.
To specify a VWorks form to be associated with the protocol, formToUse must specify the file name of the form without the path, for example, C:\MyDir\MyForm.VWForm must be specified as "MyForm.VWForm".
appendRunsetFileToRunset (string runsetPath, string formToUse)
Appends the contents of a runset file, located at runsetPath, to the Runset Manager.
To specify a VWorks form to be associated with the protocol, formToUse must specify the file name of the form without the path, for example, C:\MyDir\MyForm.VWForm must be specified as "MyForm.VWForm".
openRunsetFile(string runsetPath, string formToUse)
Optionally, opens the form to use to run the runsetformToUse must specify the file name of the form without the path, for example, C:\MyDir\MyForm.VWForm must be specified as "MyForm.VWForm".
Related information
 
VWorks-defined functions
Other VWorks-defined objects
VWorks Watcher tool