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

URL Methods

There are two methods to start IBM Cognos components: parameterized URL and cognosLaunch. Both methods perform the same function and use the same parameters. You can use either method to perform any UI task.

Parameterized URL Method

The parameterized URL method performs tasks or starts specific components using parameters typed in the Web browser address bar. Using both get and post methods, the launch.xts or cc.xts parameter starts the specified IBM Cognos 8 component.

This method requires that the parameters use the following format:

&ArgumentName=ArgumentValue

The ArgumentName parameter specifies the type, and the ArgumentValue parameter specifies the value of the called arguments. All names and values must be character strings.

This method is easier to begin using than the cognosLaunch method because it does not require advance preparation. However, the longer URL-encoded entries are restrained by browser character limits.

You can use these commands to browse content in IBM Cognos Connection or view pages in Cognos Viewer.

Mandatory Parameterized URL Parameters

If you are using the parameterized URL method to start any component, you must use the following parameters with this syntax:

http://localhost/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts

followed by the specific component parameters you want to use.

If you want to start Cognos Viewer using the parameterized URL method, use the following parameters with this syntax:

http://localhost/cgi-bin/cognos.cgi?b_action=cognosViewer

If you want to start IBM Cognos Connection using the parameterized URL method, use the following URL:

http://localhost/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/cc.xts

The mandatory building blocks for parameterized URL commands are as follows:

cognosLaunch Method

The cognosLaunch method uses a JavaScript function to perform tasks and start components. To use the launch utility in a Web page, you must first include the following statement in the HTML file from which you start the specific component:

<script language="JavaScript" src="Cognos8Gateway/cognoslaunch.js">
</script>

Cognos8Gateway is the main IBM Cognos 8 gateway defined in IBM Cognos Configuration.

This statement enables the page to open a specified report in the chosen IBM Cognos component using the cognosLaunch JavaScript parameters.

This method requires that the parameters use the following format:

"Argument Name","Argument Value"

The Argument Name parameter specifies the type, and the Argument Value parameter specifies the value of the called arguments. All names and values must be character strings.

The cognosLaunch method uses a simpler construction than the parameterized URL method, but requires an enabled starting page.

Mandatory cognosLaunch Parameters

If you are using the cognosLaunch method to start any component, use the following parameters with this syntax:

cognosLaunch("ui.gateway"," gateway ","ui.tool","
component")

Common Optional Parameters

In addition to the mandatory parameters required by each IBM Cognos 8 component, you can use the following optional parameters, unless otherwise specified: