Solved

How to Pass Parameters from a JSP to a Crystal Report Template

Posted on 2004-09-28
5
1,187 Views
Last Modified: 2008-01-09
I am new to Crystal Reports and Crystal Enterprise.  I need to pass parameters from a Portlet JSP to a Crystal Report template.  The JSP will launch a report template via a URL connection.  The user will provide the Crystal Server address and path to the report template in the portlet UI form/fields.  The report template is stored on a Crystal Enterprise V10 server and the database is DB2.  The CE may/may not be running on a Portal Server.   I have the following questions:

1) How do I create the report template using Crystal Reports V10 that accepts the parameters from JSP without prompting for them?

2) How do I pass the parameters from the JSP to the report template?

If you can provide step by step instructions, that would be very helpful.

Thanks!

Jaisanj
0
Comment
Question by:jaisanj
5 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 150 total points
ID: 12172525
1.  Not sure this is possible.  The prompting is controlled by whether valid values are passed.  From a VB application (and I assume from your JSP app) you can enable or disable parameter prompting but I don't believe there is an option within Crystal.

2.  The only sample applications and reports I can find are for Crystal Enterprise or use RAS.  Are you planning to use either?

mlmcc
0
 
LVL 42

Assisted Solution

by:frodoman
frodoman earned 150 total points
ID: 12172705
Here's a white paper about using parameters: http://support.businessobjects.com/communityCS/TechnicalPapers/ceras9_java_parameter_fields.pdf.asp

This is CE9 not 10, but the same concepts hold true.  Check these sample applications: http://support.businessobjects.com/communityCS/FilesAndUpdates/ce9_ras9_jsp_samples.exe.asp


Unfortunately there isn't a lot of JSP knowledge here in the Crystal forum so probably the best we can do is point you to some links...

frodoman
0
 

Author Comment

by:jaisanj
ID: 12172756
Thanks for your comments.  We are planning to use the Crystal Enterprise to deploy the reports.

Jaisanj
0
 
LVL 1

Assisted Solution

by:DarkTraveller
DarkTraveller earned 200 total points
ID: 12252411

Hi there.
We had similar issues.  We use .JSP's on our RAS server.
On the sending .JSP side we use :  session.setAttribute("reportName",sReportName);
                       or
                                                : <A HREF='viewerNew.jsp?report="+sGetFileName+"' target='_blank'>"+sGetFileName+"</A>

On the receiving .JSP we use      :  String sReportName = (String)session.getAttribute("reportName");
                       or
                                                : String sReportName = request.getParameter("report");

==> index.jsp is the .jsp that displays the listing of available reports to the user.
==> viewerNew.jsp is the .jsp that creates and displays the CrystalReportViewer object.

I hope that this is of some use to you.
-D.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now