Oracle Discoverer Oracle Discoverer 3i Viewer Configuration Guide for Oracle Internet Application Server for Unix Release 3.3.57.25 A86662-01 |
|  | Contents | Index

# 3
Accessing Oracle Discoverer 3i Viewer From Other Web Applications

Oracle Discoverer 3i Viewer can be accessed from other Web applications by specifying a combination of parameters in the URL. Rather than having your end users log in, choose a workbook, and worksheet, you can specify a URL that starts the Oracle Discoverer 3i Viewer for them. You can explicitly specify the settings that you want; for example, you can specify which workbook and worksheet you want to open and which parameter values to use.

This means you can embed live Discoverer reports directly onto your Web site pages simply by specifying the details in a URL. When the link is clicked the database is queried and the latest data is displayed in HTML.

After you create this URL, you can give it to end users to type into their Web browser. Or you can add the URL as a link on your company's Intranet site so that end users can make a specific database query with a single click.

In addition, you can also specify an end user's Applications Responsibility in this same URL.

## 3.1 Using Parameters in URLs

Using parameters in a URL can be used to specify specific factors when accessing Oracle Discoverer 3i Viewer from other applications it saves your end users time and gives you control over the data they use.

You can specify username, database, EUL, workbooks, worksheets and worksheet pages through parameters placed in the URL. Passwords are generally not displayed in the URL for security reasons.

### 3.1.1 Specifying username, database

Format for each parameter is:

&us=<username>
&db=<databasename>

http:mywebserver/disco3iv?us=<username>&db=<databasename>

### 3.1.2 Specifying display of the Applications User Checkbox in Connect Dialog

You can configure the disco3iv.xml file so that the connect dialog enables or disables display of the Applications User checkbox:

To set up the Connect dialog to display (or hide) the Applications User checkbox, access the configuration file located in D:\disco3ivhome\disco3iv\html\disco3iv.xml and set the "show_login_method_control" argument to true or false as required.

### 3.1.3 Specifying a workbook in a URL:

Format for parameter is:

&wb=<wkbkname>

You MUST also specify the username and database name (see above). The order used is not important:

http://myserver/disco3iv?us=<username>&db=<databasename>&wb=<workbookname>

An Example is:

http://myserver/disco/disco3iv?us=qstats&db=disco&wb=nobugs

### 3.1.4 Specifying a worksheet

This is similar to workbook above.

Format for parameter is:

&ws=<worksheetname>

You must also specify the workbook name, username and database name. These parameters do not have to be in a specific order but they must be entered after the question mark?:

http://mywebserver/disco3iv?us=<username>&db=<databasename>&wb=<workbookname>&ws=<worksheetname>

An Example is:

http://myserver/disco/disco3iv?us=qstats&db=disco&wb=nobugs&ws=Sheet+1

### 3.1.5 Specifying worksheet parameters

Format for parameter is:

&qp_<parameter_name>=<parameter_value>

You must also specify the workbook, worksheet name, username and database name. These parameters do not have to be in a specific order but they must be entered after the question mark?:

http://myserver/disco3iv?us=<username>&db=<dbname>&wb=
<workbookname>&ws=<worksheetname>&qp_<parameter_name>=
<parameter_value>

An Example is:

http://myserver/disco/disco3iv?us=video33&db=video33&wb=wb1&ws=ws2&qp_City=
Denver&qp_City=Los+Angeles&qp_Year=1995

The query string specifies Denver and Los Angeles as values for the City parameter and 1995 as the value for the Year parameter for the worksheet with id ws2, in the workbook with the id wb1, in the database - name video33 with user name video33.

### 3.1.6 Specifying a page number

This is similar to worksheet above.

Format for parameter is:

&pg=<pagenumber>

You must also specify the workbook, worksheet name, username and database name. These parameters do not have to be in a specific order but they must be entered after the question mark?:

http://myserver/disco3iv?us=<username>&db=<dbname>&wb=<workbookname>&ws=<worksheetname>&pg=<pagenumber>

An Example is:

http://myserver/disco/disco3iv?us=video33&db=video33&wb=wb1&ws=ws2&pg=2

The query string specifies the second page in worksheet with id ws2, in the workbook with the id wb1, in the database - name video33 with user name video33.

Note: If the Servlet was supplied this query string the user would be challenged for a password, before opening the worksheet.

| Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|  | Contents | Index