-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b359bca
commit 01a68f9
Showing
49 changed files
with
588 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...ort-designer-for-winforms/provide-interactivity/create-drill-through-reports.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: Create Drill-Through Reports | ||
--- | ||
# Create Drill-Through Reports | ||
|
||
Follow this tutorial to create a _drill-through report_ (a user can click a Category entry to invoke a detail report with Products). This report type keeps the original report compact while still allowing access to more detailed information. | ||
|
||
The tutorial involves two main steps: | ||
|
||
- Add a master-detail relationship between "Categories" and "Products" reports within one project. | ||
- Use detail report parameters to filter records based on the selected category. | ||
|
||
![Drill-Through report](../../../../images/drill-through-result.png) | ||
|
||
## Add a Master-Detail Relationship between Reports | ||
|
||
Define a master-detail relationship between _Category_ and _Product_ reports within a single project: | ||
|
||
- Select the XRControl's element (**Table Cell** in this example) in the main report. | ||
- Set its **Action** property to **NavigateToReportAction**. | ||
- Assign the **ReportSource** property to a detail report instance. | ||
|
||
![Specify the Navigate to Report action](../../../../images/specify-navigate-to-report-action.png) | ||
|
||
If you switch to **Preview**, you can click on a _Category_ value in the table. The **Preview** window navigates to the detail report that contains all _Product_ entries. The next step explains how to filter this list. | ||
|
||
![Drill-Through report preview](../../../../images/detail-report-navigation.png) | ||
|
||
A Breadcrumb control automatically appears below the Document Viewer toolbar and allows you to navigate back to the original report. | ||
|
||
![Breadcrumb navigation](../../../../images/breadcrumb-control-navigation.png) | ||
|
||
## Specify Parameter Binding to Display Required Data | ||
|
||
You can specify parameters during detail report navigation. Use the **Parameter Bindings** property to limit displayed records (such as products) to a selected category. | ||
|
||
To invoke the **Parameter Binding Collection Editor**, click the ellipsis button in the **Parameter Bindings** property. Within this editor, click the **Sync** button to automatically obtain detail report parameters and set **Binding** to the data field or parameter of the original report. | ||
|
||
![Parameter Binding Collection Editor](../../../../images/parameter-binding-editor.png) | ||
|
||
Set **Binding** to the _CategoryID_ field. | ||
|
||
![Specify Parameter Binding](../../../../images/specify-binding.png) | ||
|
||
Set the following filter string in the detail report to display product records for the selected category. | ||
|
||
![Set filter string](../../../../images/set-filter-string.png) | ||
|
||
## Result | ||
|
||
Switch to **Preview** and click on a category entry in the master report. The **Preview** navigates to the detail report that displays only products related to the selected category. | ||
|
||
![Drill-Through report](../../../../images/drill-through-result.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.