showreportscripts.js

This file opens a Report Viewer window and displays a report. It contains one major function: ShowReport.

ShowReport function

This function enables the user to view a report. It is called from within a number of different locations:

The ShowReport function takes six arguments: reportName, reportNumber, reportType, history, expo, and parentId. If the reportType is not a Crystal report, then objectviewer.csp is loaded, along with the following parameters:
Parameter [OUT] Values To Description

action

0

objectviewer.csp

The value of the action that the page has been requested to perform. 0 is the report viewer's default value.

id

<long>

objectviewer.csp

The ID of the report.

WCSID

<cookie>

objectviewer.csp

The session's logon token.

If the reportType is a Crystal report, then reportviewer.csp is loaded, along with the following parameters:
Parameter [OUT] Values To Description

expo

<string>

reportviewer.csp

The report's export type.

parent

<long>

reportviewer.csp

The ID of the report's parent object.

reportNumber

<long>

reportviewer.csp

The ID of the report to be viewed.

reportName

<string>

reportviewer.csp

The name of the report.

reportType

<long>

reportviewer.csp

The type of report object.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com