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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters to CR using javascript in a web page

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,
Can anyone please tell,how parameters are passed to a CR using javascript on a webpage?
I have been trying to call a CR by concatenating and passing the parameters(that are trapped using hidden fields in the web page)at run time in the form of a string and doing a submit() using javascript.It is not working.

Thanks,
Dan
 
dnavamsri: You'll need to include a SetCurrentValue call in your code to each parameter you wish to change in value. There is an example of ASP code on the Crystal Decisions website (aspxmps8.exe) which you could modify to your needs David C. Monks
david.monks@chase-international.com
Accredited Crystal Decisions Enterprise Partner
 
<script language=&quot;javascript>
function getReport (a) { a.action= &quot;mcc_results3.rpt?prompt0=&quot;+form1.var1.value+&quot;&prompt1=&quot;+form1.var2.value; }
</script>

<form name=&quot;form1&quot; onSubmit=&quot;getReport(this)&quot;>
<!--form inputs-->
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top