The main part of Reports.csp prints the table on the page.
//Retrieve the CurrentFolderID from the file's parameter list.
CurrentFolderID = Request.QueryString.Item("FolderID") ;
//Try to retrieve the InfoStore object.
//If it failed, redirect the user to the logon page.
RedirectWithFrames ("LogonForm.csp");
HTMLTable= RetrieveReports(CurrentFolderID, IStore,Error);
Response.Write ("<B>Report Listing</B><BR><BR>");
Response.Write ("No reports...");
Response.Write ("There was an error trying to retrieve the reports.");
After you have pasted this code into the Reports.csp file, ensure that you have included the RetrieveIStore function. This page needs it to communicate with the APS. Additionally, don't forget to surround all of the script with the <% and %> tags.
See Reports.csp.
Congratulations! You've reached the end of this lesson. To see a full version of the CSP page that you've created see Reports.csp
Lesson 2c: Displaying the complete path to the current folder
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |