Using OpenURI for Internal Resources
Internal Resources are resources contained within the Virtual Ticket system. To open internal resources using OpenURI, you must employ a specific syntax.
OpenURI - Internal Resource Syntax
The elements of the OpenURI syntax for internal resources are described below.
OpenURI function for an internal resource. Always composed of <internal-scheme> and <internal-resource> elements. | |
Component of the OpenURI function for internal resource(s). Currently, the following values are permitted: | |
Component of the OpenURI function for internal resource(s). This is composed of the following segments: | |
An element of <internal-resource>. In the current implementation, the <hierarchical-resource-path> element is composed entirely of the <application-window-path> element (see below). This segment of the OpenURI function may be referred to by either name. | |
The application window to open. In the current implementation, the <application-window-path> segment composes the entire <hierarchical-resource-path> segment. This segment of the OpenURI function may be referred to by either name. | |
The query component always starts with a leading question mark ("?"). This segment is used to identify which object to open in the specified application window (browser) and how it should be opened (in edit mode, etc...). Additional functionality may be specified. | |
The following keys are permitted for use in the OpenURI function when calling internal resources: Note: keys may have dependencies that require the inclusion of additional keys. See "Available Keys" below for additional details. | |
Dependent upon corresponding <key> value used in the OpenURI statement. Will either be an absolute value or a percent encoded string (see Using OpenURI for Internal Resources). |
The following keys are available when using the OpenURI function to specify an internal resource. Note that some keys have dependencies. That is, the use of one key may require the use of another key.
Is passed as userData property of "loadObject", "objectLoaded" and "objectSet" events for existing objects, and "editingStarted" event when window_mode=new|edit. | ||||
Some values used in OpenURI functions for internal resources must be encoded as "percent encoded strings". These are required when and if the absolute value includes a special character called a "Reserved Character". Consult the table below for a list of reserved characters and their percent encoded equivalents.
All OpenURI MetaScript functions are processed asynchronously except for those that use the action key with a value not equal to "close".
The following OpenURI examples are provided, along with an explanation of the resulting functionality.
Opens a new browser window in the Virtual Ticket application.
OpenURI( "vt://browser?type=job&id=2&form=Job_Form2" );
Displays record information for Job #2 using the "Job_Form2" form in a new browser window.
Displays record information for Job #2 using the "Job_Form2" form in a new browser window. Browser opens the record in editing mode.
Creates a new job record in the database and displays the record information in a new browser window using the "ticket2_form".
Creates a new Design document object under Job with id "1" using form "Design Entry".