ChangeReportNameForm.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'>

<BODY>

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

<%    



var CurrentReportID, CurrentReportName, CurrentFolderID;


//Retrieve the ID and report name from the parameter list.

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

CurrentReportName = Request.QueryString.Item("ReportName");

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


//Post the results of this form to the file RenameReport.csp and

//give it the report ID.  The report name will be a part of the

//post action.

Response.Write ("<FORM name=logonForm action=\"RenameReport.csp?" +

    "ReportID=" + CurrentReportID  + "&FolderID=" +CurrentFolderID+"  \"  method=POST>");


Response.Write ("<P><B>Change Report Name</B></P>This form " +

        "will allow you to change the name of the report." +

        "Enter the new name below and then click " +

        "<B>Update</B>.</P>");

Response.Write ("Report Name<BR>");


//The text box with the current report name as the value.

Response.Write ("<input type=text size=70 name=\"ReportName\" value=\""+

                CurrentReportName + " \">");


// The 'Update' button.

Response.Write ("<P><INPUT name=sa type=submit value=\"Update\">");


%>

</BODY>

</HTML>




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