ScheduleForm.csp

To download the CSP files from this tutorial, click TutorialSamples_vb.zip. For more information about using the samples, see Code examples.


<HTML>

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

<BODY>

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

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


<%


Dim ReportID, CurrentFolderID

ReportID = Request.QueryString("ReportID")

CurrentFolderID = Request.QueryString("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'>"

    Dim x

    for x = 0 to 24

    If (x=1) then

        Response.Write "<option selected value="&x&">"&x

    Else

        Response.Write "<option value="&x&">"&x

    End If

    Next

    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