To download the CSP files from this tutorial, click TutorialSamples.zip. For more information, see Code examples.
<META HTTP
<link REL=STYLESHEET TYPE='text/css' HREF='tut.css'>
<!-- #include file=helper_js.csp -->
<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
"&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
Response.Write (" Every <SELECT name='hours'>");
Response.Write ("<option selected value="+x+">"+x);
Response.Write ("<option value="+x+">"+x);
Response.Write ("</select> hours and ");
// Draw a drop down list on the screen with the number
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'>
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |