SAP Crystal Reports 2011, Win User's Guide Page 491

  • Download
  • Add to my manuals
  • Print
  • Page
    / 718
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 490
22.1.2 How subreport linking works
When you link a subreport to a primary report, the program creates the link by using a parameter field.
When a subreport link field is selected, the program creates:
A parameter field in the subreport which is then used to retrieve values passed to it by the primary
report.
A record selection formula for the subreport using the parameter field.
The selection formula limits the subreport to those records in which the link field is equal to the
parameter field value.
When the report is run, the program finds the first primary field record it needs and passes the value
in the link field to the parameter field in the subreport. The program then creates the subreport with
record selection based on the parameter field value. Here is an example:
You create a report that shows customer data and a subreport that shows order data and then you
link the two reports using the Customer ID field.
When you run the report, the program finds the first customer record it needs and passes the
Customer ID value from that record to the subreport parameter field.
The program runs the Orders subreport. Since the subreport selection formula selects only those
records in which the Customer ID value is equal to the parameter field value, and since that parameter
field value is equal to the Customer ID in the first record in the primary report, the subreport contains
only those records that have the same customer ID. Namely, those records that are orders for the
first customer.
When the subreport is finished, the program locates the second record it needs in the primary report,
prints the customer data, and then passes this customer's ID number to the parameter field.
The program then runs a subreport including only those order records for the second customer.
The process continues until the report is finished.
All of this parameter field manipulation takes place behind the scenes. You simply pick the fields
that will link the primary report with the subreport and the program does the rest. The values are
passed without the parameter field prompting you for a value.
Note:
If you have a linked subreport and you click the Print Preview button on the Standard toolbar (from
the Subreport Design tab), the program runs the subreport on its own, without waiting to receive a
parameter field value from the primary report and without evaluating the tab text formula. In this case,
the program displays the Enter Parameter Values dialog box and prompts you for a value.
The value entered in the box is the value the program uses to run the subreport.
2012-03-14491
Subreports
Page view 490
1 2 ... 486 487 488 489 490 491 492 493 494 495 496 ... 717 718

Comments to this Manuals

Edwinfet 29 Feb 2024 | 09:13:09

What are the upsides of contracting skilled web optimization organizations? Expert search marketing companies utilize teams of experts focused on elevating your site's content for browsing engines. This encompasses researchingsearch phrases, adjusting on site characteristics, and managing off-domain enhancements. Moreover, these firms monitor adjustment in from Google parameters and refresh the text on your website as needed. This saves both you your time and your workers from unwanted a

KarenSkaky 17 Apr 2024 | 12:11:41

Securing the security of your home is essential in today's unsettled times. Among the best ways to safeguard your belongings and peace of mind is by committing in a trustworthy safe. Regardless of whether you're securing money, important documents, or precious heirlooms, a safe gives a protected repository solution. Regarding selecting the right safe for your house, there are several elements to consider. Above all, assess your safety requirements. Determine what items you plan to store in

Helenlal 18 Apr 2024 | 10:19:10

Arranging an open-air wedding in Phenix and anxious about the unpredictable weather? Don't let Mother Nature rain on your parade – truly! At [Event Rentals Phoenix], we provide stunning wedding tent rentals that will ensure your distinctive day goes off without an hitch. Our wedding tent rentals are created to supply both charm and functionality. Say "I do" under tha elegant canopy of one of our tents, surrounded by your loved ones and tha breathtaking scenery of Pheonix. With one assortmen

Helenlal 29 Apr 2024 | 07:23:21

In both personal and professional situations, encountering issues is unavoidable. However, mastering productive trouble-shooting techniques is key for triumphing over hurdles and accomplishing success. In this piece, we delve into the strategies and methods for efficiently addressing dilemmas. From analytical thinking to creative brainstorming, we look into various approaches that can help individuals tackle challenges with certainty and accuracy. Effective challenge solving begins wit

Chrisnug 29 Apr 2024 | 16:39:54

Hello, im noob :)