OpenURI

OpenURI

Opens the specified URI.

Core function

Syntax

OpenURI( uri )

Parameters

Parameter Description
uri The URI resource to be opened. Can be a string, e.g. "vt://browser?type=Jobs&id=1", or an object representing individual URI components as the key/value pairs, e.g.
.

Description

OpenURI opens external (outside of Virtual Ticket) or internal (within Virtual Ticket) resource identified by a URI passed in the uri argument.

The list of supported external URI schemes is platform- and machine-specific, but generally at least the following schemes/protocols are supported: http:, mailto:, file:.

The vt: URI scheme designates an internal Virtual Ticket URI, which can refer to any internal application resource, such as a specific window, a document or other object opened in a specific window, etc. All internal URIs have the following common syntax structure:

<internal-uri> ::= <base-URI>["?"<query>]["#"<fragment>]
<base-URI> ::= "vt://"<internal-resource>
<query> ::= <key>"="<value>("&"<key>"="<value>)*
<internal-resource> ::= <percent-encoded-string>
<key> ::= <percent-encoded-string>
<value> ::= <percent-encoded-string>
<fragment> ::= <percent-encoded-string>

The following table lists all Virtual Ticket resources currently accessible through OpenURI calls:

Resource baseURI
Browser Window vt://browser
Find Window vt://find
History Window vt://history
Custom Query vt://custom_query
Form Editor vt://form_editor
Library Import vt://administration/library_import
Library Export vt://administration/library_export

Examples

Example 1: Opening a new Browser window in Virtual Ticket

Example 2: Opening a document in a new Browser window

Example 3: Opening a document in the same Browser window

Example 4: Opening a document in a new Browser window using a specific form

Example 5: Opening external URIs

Additional Information

Please see Appendix B: OpenURI Supplement for additional information on OpenURI.

See also

UrlFromLocalFsPath
OpenWebDAV

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.