I have the following code to run a CR 8.0 report.
<!--- Javascript to execute the availability list report --->
<!--
var parReportForm = ""
function displayAvailListReport(rn,USER_NAME)
{
//alert(AVAIL_LIST_REV_NO);
var parRepForm = document.parReportForm;
var reportCall = "";
var reportCall = reportCall +
//rn + "?password0=cipreport&user0=cipreport&init=actx&prompt0=" +
rn + "?user0=cipreport&password0=cipreport&prompt0=" +
// parRepForm.dept.options[parRepForm.dept.options.selectedIndex].value +
<CFOUTPUT>USER_NAME</CFOUTPUT> +
"&promptOnRefresh#=0";
reportWindow=window.open(reportCall, "subWindow", "scrollbars=yes, resizable=yes"
;
// window.location = reportCall;
// alert(reportCall)
};
//-->
If I refresh the report it asks for the USER_NAME again. How can I keep it from asking again when a user refreshes the report.
Thanks,
Sherry
<!--- Javascript to execute the availability list report --->
<!--
var parReportForm = ""
function displayAvailListReport(rn,USER_NAME)
{
//alert(AVAIL_LIST_REV_NO);
var parRepForm = document.parReportForm;
var reportCall = "";
var reportCall = reportCall +
//rn + "?password0=cipreport&user0=cipreport&init=actx&prompt0=" +
rn + "?user0=cipreport&password0=cipreport&prompt0=" +
// parRepForm.dept.options[parRepForm.dept.options.selectedIndex].value +
<CFOUTPUT>USER_NAME</CFOUTPUT> +
"&promptOnRefresh#=0";
reportWindow=window.open(reportCall, "subWindow", "scrollbars=yes, resizable=yes"

// window.location = reportCall;
// alert(reportCall)
};
//-->
If I refresh the report it asks for the USER_NAME again. How can I keep it from asking again when a user refreshes the report.
Thanks,
Sherry