Solved

Crystal off multiple BEx Queries:   How to consolidate multiple prompts into one for same field?

Posted on 2014-03-25
4
780 Views
Last Modified: 2014-03-28
I have 3 BEx queries feeding one Crystal Report.  Each of the BEx query has two prompt (variable) for time periods and City.   I want Crystal to only prompt once for time period and City, and when user enters values… I want those values to feed all 3 BEx prompts.  

How can I go about achieving this?   Do I need to create prompts at Crystal level…. Or is there a workaround that can be used so that user sees only ( one prompt for time period and one for City) instead of 3 prompts for ‘time period’ and 3 prompts for ‘City’.
Please note that each BEx query is coming from a separate DSO.  
Tool: Crystal Reports 2011

Thank you
0
Comment
Question by:zafridi
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39956024
The first thing to try is to make sure the prompts are identical in all queries.  So if one of them prompts for the city with "Enter City:", make sure the other 2 also prompt with that.  Note capitalization and punctuation matter.

If that doesn't work then you may have to build the queries in Crystal.
DO you expect the report to have subreports?
If not then you could make the report a subreport and have Crystal prompt for the parameter values and then pass them to the BEX queries through the subreport linking.

Can you build the report as a main report using one of the queries and subreports for the other 2 queries?
If so the main report would prompt for the parameters and again pass them through the subreport links to the other queries.

mlmcc
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 39957403
FYI, having a report based on multiple queries is a bad idea from a performance perspective.  Each query must be fully executed independently of each other other Crystal Reports functionality occurs, such as linking and filtering.  So, if you're relying on a join from one query to another to implicitly filter data you'll find that the filtering will occur on the client on the database server.

Best practices, in most cases, is to never use more than one "external" data source in your report.  I would categorize SQL Commands, Stored Procedures, Universe Queries and BEX Queries as "external" data sources, because Crystal Reports relies on them to provide and execute their queries instead of building its own SQL based on them (like it does when you build basic reports with tables and views and record selection criteria).
0
 

Author Closing Comment

by:zafridi
ID: 39961633
Thanks.   I have found that having same text description in multiple prompts only asks the user to enter values once.  Value entered is passed to all the prompts with exact same text description.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

9 Experts available now in Live!

Get 1:1 Help Now