ScheduleForm.csp

To download the CSP files from this tutorial, click TutorialSamples.zip. For more information, see Code examples.

<%@ Language=JavaScript%>

<HTML>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

<link REL=STYLESHEET TYPE='text/css' HREF='tut.css'>

<!-- #include file=helper_js.csp -->

<BODY>

<FONT Size=+2><B>Schedule</B></FONT></P>

Select how often this report will be run.<P>


<%


var ReportID, CurrentFolderID;

ReportID = Request.QueryString.Item("ReportID") ;

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


// When the user clicks the 'Schedule' button, load the page

// Schedule.csp and give it the report's ID as one of its

// parameters.  The number of hours and minutes will be

// given as a part of the action method.

Response.Write ("<FORM Name=logonForm Action='Schedule.csp?ReportID="+ReportID +

            "&FolderID="+CurrentFolderID+"'  Method=POST>");



// Draw a drop down list on the screen with the numbers

// 0 - 24 in it.  This will give the option to the user to select

// the number of hours.

Response.Write ("&nbsp;&nbsp;&nbsp;&nbsp;Every <SELECT name='hours'>");

    var x;

    for (x = 0; x <= 24;x++)

    {

        if ( (x==1) )

            Response.Write ("<option selected value="+x+">"+x);

        else

            Response.Write ("<option value="+x+">"+x);

    }

    Response.Write ("</select> hours and ");


// Draw a drop down list on the screen with the number

// of minutes in it.

    Response.Write ("<select name='minutes' >");

    Response.Write ("<option value='0'>0");

    Response.Write ("<option value='15'>15");

    Response.Write ("<option value='30'>30");

    Response.Write ("<option value='45'>45");

    Response.Write ("</select> minutes.");

%>

<P><INPUT Name=sa Type=submit Value='Schedule'>

</BODY>

</HTML>



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