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

getting parameters into crystal reports

Status
Not open for further replies.

IainK

Programmer
Jul 27, 2001
26
NO
Hello there!

I am trying to create a template in crystal reports (v. 7) which I can use to display relevant data from the database. I have a dhtml forms webpage where a user can specify the parameters of the report they wish to see (ie, company, reports type, date).

Ideally after selecting the paramters, the user could click submit and it would take them to the Crystal Reports page which will have uploaded the relevant info.

Essentially what I need to know is - how can I identify and use the paramters chosen in a normal dhtml webpage - in crystal reports, so the relevant data will be shown.

Cheers,
- Iain

PS Please tell me if I can clarify this in any way (I am somewhat new to this!)
 
Upgrading to either CR8 or CR8.5 will make this much easier as you simply pass the parameters to the report on the URL:


Not sure how you do this in CR7 - you will probably have to do some ugly work with the automation server via ASP.

Cheers, Alan Eldridge
Melbourne, Australia
 
Cheers - I'm looking into version 8.

In the mean time - do you have any ideas on what I would need to do with regards to asp on the automation server?

- Iain
 
There's a full example zip file at:


The filename is: simpxmps.zip

You take the parameters off of the ASP page, and either pass them to the report, or replace the entire WHERE clause of the report. Brian J. Alves
Email: brian.alves@worldnet.att.net
VB / ASP / Crystal / SQLServer
 
for future reference...

to access a report depending on the paramters put into a dhtml form, the form properties were altered so 'submit' pointed to a page called 'getpage.asp'. this cleaned up the info a redirected the browser to the correct cystal reports page.

'getpage.asp' looks like this:

***

<%
Dim table2

table2 = Request.Querystring(&quot;table&quot;)

%>

<HTML>

<head>
<META HTTP-EQUIV=&quot;Refresh&quot; CONTENT=&quot;1; URL= <% = table2%>&quot;>


</head>

<BODY>


<A> Redirecting to <% = table2%></A>
<p>
</BODY>

</HTML>

***

Hope this helps anyone with a similar problem!

Cheers,

- Iain K

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top