Retrieving the current folder ID

Declare the variables needed to retrieve the InfoStore object and folder information, and retrieve the current folder ID from the file's parameter list. Note that the file you are using is still Folders.csp.

Example

var Result;

var IStore;

var CurrentFolderID;

CurrentFolderID = Request.QueryString.Item("FolderID");

The object Request used to retrieve the FolderID parameter is another system object and not a part of the Crystal Enterprise SDK. Among other things, it has the member function QueryString, which you use to retrieve the current folder ID from the page's parameter list.

Go to next step:

Printing the child folders for the current folder



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