Hello All,
I have a report with four groups and three subreports. It is a hierarchical report where Group 4 is subordinate to Group 3. Group 3 is subordinate to Group 2. Group 2 is subordinate to Group1.
Like:
1. Colonel
2. Major
3. Captain
4. Lieutenant
The subreports display the details of changes/modifications to each group. For example, if a Captain was reassigned, the subreport will display the reassignment details.
I want to suppress the headers in each group above if there is no data/detail in the subreport.
For example, if a Lieutenant was reassigned, I want the Captain, Major and Colonel headers to be displayed. If a Captain was reassigned, I only want the Major and Colonel headers to be displayed.
I’ve created a formula and placed it in each subreport.
In the main report, I’m using the following code in the Section Export to suppress the each header.
This works, but only for the one group. I need to Boolean multiple shared numbervars in order for this to work.
Is this possible, or am I going about this completely wrong?
Any/all suggestions would be greatly appreciated!!!
Thanks,
- tl
I have a report with four groups and three subreports. It is a hierarchical report where Group 4 is subordinate to Group 3. Group 3 is subordinate to Group 2. Group 2 is subordinate to Group1.
Like:
1. Colonel
2. Major
3. Captain
4. Lieutenant
The subreports display the details of changes/modifications to each group. For example, if a Captain was reassigned, the subreport will display the reassignment details.
I want to suppress the headers in each group above if there is no data/detail in the subreport.
For example, if a Lieutenant was reassigned, I want the Captain, Major and Colonel headers to be displayed. If a Captain was reassigned, I only want the Major and Colonel headers to be displayed.
I’ve created a formula and placed it in each subreport.
Code:
whileprintingrecords;
shared numbervar lieutenant_id := count({table.lieutenant_id });
In the main report, I’m using the following code in the Section Export to suppress the each header.
Code:
whileprintingrecords;
shared numbervar lieutenant_id = 0;
This works, but only for the one group. I need to Boolean multiple shared numbervars in order for this to work.
Is this possible, or am I going about this completely wrong?
Any/all suggestions would be greatly appreciated!!!
Thanks,
- tl