Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Crystal Reports XIR2 - Dynamic Data Connections and Sub Reports

Posted on 2009-07-08
3
Medium Priority
?
872 Views
Last Modified: 2013-11-15
Hello Experts,

I am currently running Crystal Reports, and using the Business Objects XI R2 Business View Manager to allow Dynamic Data Connections to our reports (prompting the user for Dev, Test, Prod).

This has all been working fine and dandy, but I have come across my first report which requires Sub Reports and I'm not sure how to get this correct.

Here are the steps I take:

1) Create a "Table" (I actually create a new Command and put the SQL statement and parameters in there) in my Business Foundation. I have one table for each report.
2) Create Business Element for new report.
3) Add Business Element to the Business View
4) Point report to Business View and new Element.

Now that I have a report with a sub report, I'm not sure what to do... I attempted doing the steps above for my sub report, but the report now prompts for the parameters from MAIN and the SUB, so I don't think this is a great way to do this.

Has anyone figured out a way to do this? We are very new at the whole Foundation/Element/View thing, so thanks in advance for your advice and patience. :-)

Lin
0
Comment
Question by:LinInDenver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 2000 total points
ID: 24810321
You can link the subreport parameters to the main report parameters when you link the suubreport to the main report.

Also if you ink the subreport to the main report on the right fields you may not need the subreport parameters especially if they are the same as the main report.

mlmcc
0
 
LVL 14

Accepted Solution

by:
LinInDenver earned 0 total points
ID: 24815021
Thanks for responding, mlmcc!

I ended up linking the Dynamic Data Connection Parameter from my Business View to what looks like "itself" in my SubReport Links. This seemed to resolve the issue, and pass the data connection through to the sub report without prompting for it again.

My Dynamic Data Connection is called IDEAL_DYNAMIC_ODBC Parameter. I ended up linking this parameter to ?IDEAL_DYNAMIC_ODBC Parameter instead of the ?Pm-?IDEAL_DYNAMIC_ODBC Parameter that shows up as an option.

This caused the report to stop prompting for multiple parameters, and the sub reports are now returning information from the Dynamic Data Connection selected in the main.

I have attached a document showing my sub report links for anyone else who ends up with this problem down the road.
resolution---parameters.pdf
0
 
LVL 14

Author Comment

by:LinInDenver
ID: 24815052
thanks!
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

688 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