URL (Object)

Member of:

Session object

Description:

Represents a list of key value pairs generated from a GET method invocation in the current browser. URL key value pairs are variables, which are appended to the end of a URL in a Web browser.

For example:

http://www.yourserver.com&name=test&version=6.0&jscript=enable

has two key value pairs, Name and Version. The URL (Object) provides read-only access to these variables. Because URLs are browser-based, this collection applies only to the plug-in products. However, the URL (Object) is exposed in the client server products to assist in developing plug-in scripts.

Note:

Do not use Session.URL.Add () and Session.URL.Item() in Interactive Reporting documents to be deployed in EPM Workspace.

Tip:

All collections have the “Item(NameOrIndex)” method. This is the default method for all collections that returns collection items at a particular index or by name. Use brackets ([]) to represent calls to the Item (Method). For example, these statements are identical: myItem = Documents[1] myItem = Documents.Item(1) myItem = Documents["StartUp.bqy"] myItem = Documents.Item("StartUp.bqy")

Example:

This example shows how to read and use values from URLs in scripts running on the plug-in.

http://www.yourserver.com&app=hyperionquery&group=pm&userid=2020&jscript=enable/
// Write the URL information to the console window.
BaseURL = Application.URL
Console.Write ("The URL of my server is = "+BaseURL)
Console.Write ("The value App variable is = " + Session.URL["App"])
Console.Write ("The value Group variable is = " + Session.URL["Group"])
Console.Write ("The value UserID variable is = " + Session.URL["UserID"])

Methods:

Add(Key As String, Value As String), Item (Key As String) As String