Solved

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

Posted on 2014-03-25
4
815 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
[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
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 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