Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Report using Javascript

Status
Not open for further replies.

szeiss

Programmer
Apr 5, 2000
137
0
0
US
I have the following code that calls a CR8 report containing 5 subreports.&nbsp;&nbsp;Each time it runs it wants the user/pwd for each sub.&nbsp;&nbsp;Does anyone have a solution?<br><br>&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot; TYPE=&quot;text/javascript&quot;&gt;<br>&lt;!--<br> var parReportForm = &quot;&quot;<br> function displayProjectSummary(rn)<br> {<br> var parRepForm = document.parReportForm;<br> var reportCall = &quot;&quot;;<br> var reportCall = reportCall +<br>// rn + &quot;?password0=cipreport&user0=cipreport&init=actx&prompt0=&quot; +<br> rn + &quot;?password0=cipreport&password1=cipreport&password2=cipreport&password3=cipreport&password4=cipreport&password5=cipreport&user0=cipreport&user1=cipreport&user2=cipreport&user3=cipreport&user4=cipreport&user5=cipreport&prompt0=&quot; +<br> parRepForm.dept.options[parRepForm.dept.options.selectedIndex].value +<br> &quot;&promptOnRefresh#=0&quot;;<br> reportWindow=window.open(reportCall, &quot;subWindow&quot;, &quot;scrollbars=yes, resizable=yes&quot;);<br>// window.location = reportCall;<br> alert(reportCall)<br> };<br> <br>//--&gt;<br>&lt;/SCRIPT&gt;<br><br>Thanks,<br>Sherry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top