on 11-02-2015 3:19 PM
I am using SAP Crystal Report 2011 version 14.0.3.613 RTM.
I have a report with multiple groups along with the column header and detail.
I would like to use 1 report to have 3 versions of the report where each version of the report has 1 or more groups suppressed and the other groups are not suppressed.
This report is being viewed in an ASP.Net page with VB.net as the code-behind.
Is there a way to tell the report from the code-behind what groups to suppress and what groups not to suppress?
Sincerely,
Keith Jackson
Yes and no. What you would need to do is create a parameter that will indicate which groups to suppress or show. You'll also set the group values based on the parameter so that if the group is being suppressed it will evaluate to some constant value or if it's being shown it will use whatever field or formula you need to group on. You would then set the parameter in the code-behind in order to display the report.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dell,
There is a radio button on the ASP.Net page for the user to select which version of the report.
Here are some examples of the 3 different versions of the report:
Version 1 - Only show Part break group. Suppress Overall Group summary.
Workcenter Shift Part No. Lapse Time Uptime
------------------------------------------------------------------------------------------------------
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
----------------------------------------------
110 175 <--- Part Break Summary
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
----------------------------------------------
65 215 <--- Part Break Summary
Version 2 - Show Part break group and show Overall Group summary. No groups suppressed.
Workcenter Shift Part No. Lapse Time Uptime
------------------------------------------------------------------------------------------------------
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
----------------------------------------------
110 175 <--- Part Break Summary
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
----------------------------------------------
65 215 <--- Part Break Summary
Blanking 1 - Shift 1 <--- Overall summary
Total Lapse Time Total Uptime
B777666 110 175
B445544 65 215
Version 3 - Suppress Part break group. Only Show Overall Group summary.
Workcenter Shift Part No. Lapse Time Uptime
------------------------------------------------------------------------------------------------------
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B777666 22 35
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 1 B445544 13 43
Blanking 1 - Shift 1 <--- Overall summary
Total Lapse Time Total Uptime
B777666 110 175
B445544 65 215
Sincerely,
Keith Jackson
So, if I understand correctly, you will be suppressing specific sections of the report, not changing the groups around. Is that correct?
If you set up a parameter (I'll call it {?ShowSections}) that will take the values 1, 2, and 3, here's what you'll do in the report:
NOTE: You'll be working in the suppression formulas. DO NOT check the "Suppress" check box for any of these sections.
- Go to the Section Expert.
- For the Part group footer, use this formula: {?ShowSections} = 3
- For the section where the overall summary is located, use this formula: {?ShowSections} = 1
This should get you what you're looking for.
-Dell
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.