GetUserDetails.csp

<%@ Language=JavaScript%>

<!-- #include file="RetrieveIStore.csp" -->

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


<%

function Main()

{

    var IStore;

    IStore = RetrieveIStore();

    if (IStore == null)

    {

        Response.Redirect ("Start.csp");

        return;

    }

    var Result;

    Result = IStore.Query("Select SI_NAME, SI_ID From CI_INFOOBJECTS Where SI_PROGID='CrystalEnterprise.Report' And SI_INSTANCE=0");

    if (Result.Count == 0)

    {

        Response.Write ("No reports could be found to schedule.");

        return;

    }

    Response.Write ("This example will schedule the report, " + Result.Item(1).Title);

    Response.Write ("<BR>It will also include your email address so that the instance can be found later.");

    Response.Write ("<form name='GetUserDetails' action='ScheduleWithValues.csp?ReportID="+Result.Item(1).ID+"' Method=post>");    

    Response.Write ("Enter your email address:");

    Response.Write ("<input type=text name='Email'>");

    Response.Write ("<input type=submit value='Schedule'></form>");

    

}


Main();


        

%>






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