lastfivescripts.js

This file, which is included in available.csp, allows the user to view the last five reports. It includes the following functions: addToMenu and ShowReportLastFive.

addToMenu function

This function is called from within showreportscripts.js when a a report or a report instance is viewed. It takes four arguments—rptname, rptnumber, rpttype, and history—and uses them to add reports to the "View last five reports" list.

ShowReportLastFive function

This function launches the Report Viewer when the user selects a report from the "View last five reports" list. It calls the ShowReport function in showreportscripts.js, passing in the following arguments: reportName, reportNumber, and reportType.



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