Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 875
  • Last Modified:

Crystal Reports XIR2 - Dynamic Data Connections and Sub Reports

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
LinInDenver
Asked:
LinInDenver
  • 2
2 Solutions
 
mlmccCommented:
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
 
LinInDenverAuthor Commented:
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
 
LinInDenverAuthor Commented:
thanks!
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now