To use IBM Cognos product documentation, you must enable JavaScript in your browser.

Starting IBM Cognos 8 Components

Use a URL to start IBM Cognos 8 components and open specified content. For example, you can quickly open a report in Query Studio, or a metric in Metric Studio without using IBM Cognos Connection.

The components can be started from any enabled Web page.

You can use a URL to start the following IBM Cognos 8 components:

Start Parameters

Before using either the parameterized URL or cognosLaunch method you must first locate the object you want to access. The easiest way to identify the location of an object, such as a saved report, is to start IBM Cognos Connection and copy the object search path Using a Page ID Instead of the Object Search Path into the required URL command. The full path must be copied, as listed in the report properties, including the relevant package name and report names.

For example, using the following parameterized URL starts Cognos Viewer and runs the report named 2005 Sales Summary:

http://localhost/cgi-bin/cognos.cgi?b_action=cognosViewer&ui.action=run&ui.object=/content/package[@name='GO Sales (analysis)']/folder[@name='Report Studio Report Samples']/report[@name='2005 Sales Summary']

The following script performs the same function using the cognosLaunch method in an enabled Web page:

cognosLaunch('ui.gateway','http://localhost
/cgi-bin/cognos.cgi','ui.tool','CognosViewer','ui.action','run','ui.object','/content/package[@name=\'GO Sales (analysis)\']/folder[@name=\'Report Studio Report Samples\']/report[@name=\'2005 Sales Summary\']')

The following topics describe each of the parameters used in this example, and examples of some other commonly used parameters.

Starting Report Studio

You can use a URL to open and run a specific report in Report Studio.

Use the following parameters to start Report Studio with the parameterized URL method:

http://localhost/cognos8/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.tool=ReportStuio&ui.gateway=http://localhost/cognos8/cgi-bin/cognos.cgi?&ui.option=/content

When starting Report Studio with the parameterized URL method, specify both the gateway (http://localhost/cognos8/cgi-bin/cognos.cgi?) and the ui.gateway parameter.

Use the following parameters to start Report Studio with the cognosLaunch method:

cognosLaunch("ui.gateway","http://localhost/cognos8/cgi-bin/cognos.cgi?","ui.tool","ReportStudio","ui.option","/content")

Parameterized URL Examples

This section provides examples for performing specific functions when starting Report Studio using the parameterized URL method.

cognosLaunch Examples

This section provides examples for performing specific functions when starting Report Studio using the CognosLaunch method.

Starting Query Studio

You can use a URL to quickly open a specific report in Query Studio.

Use the following mandatory parameters to start Query Studio with the parameterized URL method:

http://localhost/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.tool=QueryStudio&ui.object=/content&ui.action=new

Use the following mandatory parameters to start Query Studio with the cognosLaunch method:

cognosLaunch('ui.gateway','http://localhost
/cgi-bin/cognos.cgi','ui.tool','QueryStudio','ui.action','new')

The ui.action parameter is a mandatory for both methods.

The following parameters are optional for Query Studio:

Use the following parameters for debugging purposes only:

Parameterized URL Examples

This section provides examples for performing specific functions when starting Query Studio using the parameterized URL method.

cognosLaunch Examples

This section provides examples for performing specific functions when starting Query Studio using the CognosLaunch method.

Starting Analysis Studio

You can use a URL to quickly open and run a specific report in Analysis Studio.

Use the following parameters to start Analysis Studio with the parameterized URL method:

http://localhost/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.gateway=http://localhost
/cgi-bin/cognos.cgi&ui.tool=AnalysisStudio&ui.action=new

When starting Analysis Studio with the parameterized URL method, specify both the gateway (http://localhost/cognos8/cgi-bin/cognos.cgi?) and the ui.gateway parameter.

Use the following parameters to start Analysis Studio with the cognosLaunch method:

cognosLaunch('ui.gateway','http://localhost
/cgi-bin/cognos.cgi','ui.tool','AnalysisStudio','ui.action','new')

The ui.object parameter is mandatory for both methods. However, if it is missing, you are prompted to select a package.

Parameterized URL Examples

This section provides examples for performing specific functions when starting Analysis Studio using the parameterized URL method.

cognosLaunch Examples

This section provides examples for performing specific functions when starting Analysis Studio using the CognosLauch method.

Starting Metric Studio

You can use a URL to quickly open a metric in Metric Studio.

Use the following parameters to start Metric Studio with the parameterized URL method:

http://localhost/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.tool=MetricStudio&ui.action=new

Use the following parameters to start Metric Studio with the cognosLaunch method:

cognosLaunch('ui.gateway','http://localhost
/cgi-bin/cognos.cgi','ui.tool','MetricStudio','ui.object','/content')

The ui.object parameter is mandatory for both methods. However, if it is missing, you are prompted to select a package.

Parameterized URL Examples

This section provides an example when starting Metric Studio using the parameterized URL method.

cognosLaunch Examples

This section provides an example when starting Metric Studio using the CognosLaunch method.

Starting Event Studio

You can use a URL to quickly access and edit an agent in Event Studio.

Use the following parameters to start Event Studio with the parameterized URL method:

http://localhost/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.tool=EventStudio&ui.object=/content/package[@name='GO Sales (analysis)']&ui.action=new

Use the following parameters to start Event Studio with the cognosLaunch method:

cognosLaunch('ui.gateway','http://localhost
/cgi-bin/cognos.cgi','ui.tool','EventStudio')

The ui.action and ui.object parameters are mandatory. If ui.object is missing, you are prompted to select a package.

Parameterized URL Examples

This section provides an example when starting Event Studio using the parameterized URL method.

cognosLaunch Examples

This section provides examples for performing specific functions when starting Event Studio using the CognosLaunch method.

Starting Cognos Viewer

You can use a URL to quickly open a specified report in Cognos Viewer.

Use the following parameters to start Cognos Viewer with the parameterized URL method:

http://localhost/cgi-bin/cognos.cgi?b_action=cognosViewer&ui.object=/content/package[@name='Sales and Marketing (cube)']/folder[@name='Report Studio Report Samples']/report[@name='Revenue by Product Brand (2005)']&ui.action=run

Use the following parameters to start Cognos Viewer with the cognosLaunch method:

cognosLaunch('ui.gateway','http://localhost
/cgi-bin/cognos.cgi','ui.tool','CognosViewer')

For a complete list of the Cognos Viewer parameters, see the "URL API Reference" Appendix in the SDK Developer Guide.

The following parameters are optional for Cognos Viewer:

Parameterized URL Examples

This section provides examples for performing specific functions when viewing reports using the parameterized URL method.

cognosLaunch Examples

This section provides examples for performing specific functions when viewing reports using the CognosLaunch method.

Starting IBM Cognos 8 Components in a Specified Browser Window

This feature allows you to start an IBM Cognos 8 component in a named browser window.

To do this, you must use the following parameters with this syntax:

cognosLaunchInWindow(windowName, windowProperties, "ui.gateway","
gateway","ui.tool","component")

The windowName and windowProperties parameters represent the values specific to starting an IBM Cognos 8 component in a named browser window.

The windowName string is the name of the browser window, frame, or iframe in which to start the specified component. If the specified name does not exist, a newly created pop-up browser window appears with the name. To create a new pop-up window, use "_blank" as the value.

The windowProperties string defines the properties applied to the new pop-up window. This only applies to newly created windows. The available values depend on the type of the Web browser you are using, and correspond to the values supported by the JavaScript window.open() function. Some options may not work in all browsers.

The windowProperties parameter consists of a comma-separated list. Each item consists of an option and a value, separated by the equals sign (=). For example, "fullscreen=yes , toolbar=yes". Some common examples include:

The ui.gateway, ui.tool, along with some additional parameter values are described in Start Parameters.