[Webinar] Streamline your web hosting managementRegister Today

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

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

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
zafridi
Asked:
zafridi
1 Solution
 
mlmccCommented:
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
 
Kurt ReinhardtSr. Business Intelligence Consultant/ArchitectCommented:
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
 
zafridiAuthor Commented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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