Supress Group Header in Report when Subreport is blank

well the title says it all.
I want to supress the main report group header when the subreport (is in details) is blank.
I'm stuck on this:
I'v created a shared variable in both report and subreport and it gives me the number I want but not where I wanted to appear. If I put the variable on the group footer it shows me the correct value but if I put it in the group header it shows me the previous group footer result.
This is what I got:
Group Header
Client 1
Shared Variable=0
Details
Contract 01
Contract 02
Group Footer
Shared Variable=2
Group Header
Client 2
Shared Variable=2
Details
Group Footer
Shared Variable=0
This is what I want:
Group Header
Client 1
Shared Variable=2
Details
Contract 01
Contract 02
Group Footer
Shared Variable=2
Group Header
Client 2
Shared Variable=0
Details
Group Footer
Shared Variable=0
Can I do that?
Edited by: Pedro Pinto on Jul 29, 2008 2:47 PM

I'm going to try my best. This is what I get:
Main Report
Group Header
Client 01   --    0->shared variable
Details
Subreport 1
Group Footer
2->Shared Variable
In subreport for client 01:
Detailsa
Contract 01
Contract 02
Detailsb
Total of contracts = 2->Shared Variable
Main Report
Group Header (supress this section)
Client 02   --    2->shared variable
Details
Subreport 1
Group Footer
0->Shared Variable
In subreport for client 02:
Detailsa
Detailsb
Total of contracts = 0->Shared Variable
For Client 03 it doesn't show anything but if Client 04 if it has contracts it only shows the contracts but not the name of the client.
I've already did supress when is blank but in the details.

Similar Messages

  • SQL code to display Group Header in Reports

    Please provide the sample sql module to use group headers in reports.
    Even after reading the Extensibility guide, I am not able to write code with proper syntax.
    I think all the below 3 parameters has to be used to show group header in Reports.
    "oracle.sysman.eml.ip.render.elem.TableRender.columnGroupHeader"n
    "oracle.sysman.eml.ip.render.elem.TableRender.columnGroupStart Col"n
    "oracle.sysman.eml.ip.render.elem.TableRender.columnGroupEndCol"n.
    I am not sure whether in a single call to mgmt_ip_param_value_record function in Reports, all 3 parameters has to be called.
    Please help.

    You will have to create a new mgmt_ip_param_value_record for each one of those.
    I assume it will look something like this:
    l_param_values(1) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupHeader1',
    'My New Group');
    l_param_values(2) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupStartCol1',
    'start column');
    l_param_values(3) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupEndCol1',
    'end column');
    Where "start column" and "end column" would be names of columns already in your table.

  • Exporting a report with group in crystal report

    Hi all,
    I am new to crystal reports XI.
    I have designed a report in which I have created 2 groups.
    The structure of report is shown below.
    MAIN REPORT:
    Status           1st     2nd 3rd
    A               10      20   30
    B               40      50   60
    When I double click on groups(either A or B) another subreport gets opened.
    The structure of the sub report is
    DETAILED REPORT:
    A            10        20     30
    Name:XYZ
    Age:XY
    Place:XYZ.
    My query is when i export the report in PDF format only the main report is getting exported.
    I have to run this report through BOXI and have to send the mail to users in PDF format.
    But when i export the report in PDF format i am not able to see the detailed report.
    Please give me suggestions how can i resolve this problem.
    Thanks in advance...

    In the report design description I undestand that when you double click on the group header it opens the subreport. I think this might be on demand subreport or you might have used suppress condition for the subreport section using "drilldowngrouplevel". If you are suppressing conditionally and showing the report when you double click on it these feature will work only in crystal report but not in PDF. So it is better to remove conditional suppress and show the complete data so that when you export it to PDF it will show all the data.
    Regards,
    Raghavendra

  • Could not able to show a scalar value in Page Header/Group Header of the re

    Hi,
    I could not able to show a scalar value in Page Header/Group Header of the report which is returned from Sub-report. But I am able to display it in both Group Footer and Page Footer.
    I used shared variable in formula filed of both main and sub report and both are placed in the main and sub-report.
    Please do needful.
    Thanks & Regards,
    Mani G.S.

    You can only show Shared variables in main report in a location after the subreport has executed.
    If you want to show values in page header or group header you must place subreport in a section above these. This is unlikely to be possible so you will have to live with displaying results in Group/page footer.
    Alternatively you can execute subreport twice, once where subreport is hidden in a section above page/group header and pass summary figure you require and then again where you currently have subreport so you can see details as required.
    Ian

  • Repeat Group Header on Each Page in Subreport won't reflect when generate by JRC

    Hi All,
    I have a report that contain several Subreports. Inside the Subreport, there are Group Header section. I have checked the option of "Repeat Group Header on Each Page". It works fine when I preview in Crystal Report. But when I using JRC to generate the report result. The group header only display on the first page of the group details.
    More, Crystal 10 Common Monthly Hot Fix (English) already installed.
    Any idea?
    Thanks a lot for your help!
    Donald

    Hi,
    Doesthe JRC engine uses CR10 jars or XI\R2 jars? Can you possibly try it with latest set of Eclipse jars? You can download it from Diamond.
    Thanks
    Aasavari

  • How to print Group Header on page break in a subreport - CR XI

    Post Author: rickcf
    CA Forum: General
    I have a subreport that has 3 groups with only one group that has a heading.  When the report prints and a subreport group is split between two pages (on a page break) I would like the group heading to also print again at the top of the page- even with the word "continued..." also.  Right now only the main report page header prints.  How can I do this since there is no page header in a subreport?
    Thanks
    Rick

    Post Author: rickcf
    CA Forum: General
    Is there any way to test during detail processing time to see if a page break is occuring?  If so I could print out a fake header on the detail line, suppressing it only if the page breaks.  That is the only thing I can come up with to solve the issue.
    I am surprised the is not an option to reprint the group header on a page break.  That seems like a needed option and that is the standard in Foxpro reporting - there is a checkbox option to cover this scenario.
    A coworker did find a workaround to add a psudo page header to a subreport so if I can add that and put my group info in there it will also work.  I have not looked at the code yet though.
    I have another issue I am working on so this one might take a while to get back to.
    Rick

  • Using SubReport to show Details of field grouped in Main Report

    Hi Experts
    I am creating a Crystal Report from BEx Query . In Report i have Created a group on Cost center field.
    & some other fields are in detail section. Suppose if i execute report then groups are A, B, C, D ......
    Now further requirement  is  when i click on one group for example 'A' then i should get detail of that group in
    different subreport.
    Is it possible?
    Regards
    Ajay

    Hi Ajay,
    Follow this Steps,
    1,Create a Group with 'Cost center'.
    2,Delete the 'group name'(A,B,C...) form 'group header'. Now you will get a group with no headings.. which means GH #1 section should be blank for now.
    3, Insert the OnDemand subreport in to the Group header.(The same place which we have Group header name before)
    4,Set "Subreport link as "Cost center". (Right click on subreport>Change subreport links>double click on 'Cost center' in report feilds-->OK)
    5,Now the important thing,  Change the "On-Demand Subreport Caption " as group name.
    (Right click on subreport>Format subreport>Subreport Tab>Click in 'X-2' button of  "On-Demand Subreport Caption ">Formula editor will popup, then right like
    GroupName ({Cost center}) // Or double click on the Group #1 Name in the Report Fields tree in Field tree-->Save And Close)
    6, Change the font,Font Color an d uncheck the underline.
    This will work for you,
    Regards,
    Salah.
    Edited by: salahudheen muhammed on Sep 23, 2009 11:53 AM

  • First group heading below displays below column headings using Template 23 Classic Report using Repeat Headings on Break

    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    When I look a the code in firebug I can seen that the all tables but the first, the break row is being included as the last row of the previous table so I can see how this would not work for the break since.
    I have tow questions.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Example of issue can be seen at apex.oracle.com at  Home
    Thanks,
    Brad

    Roadling wrote:
    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    The Standard report template definition in theme 23 contains thead and tbody elements:
    Before Column Heading
    <thead>
    Column Heading Template
    <th #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>
    After Column Heading
    </thead>
    <tbody>
    After Rows
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    <tbody class="uReportPagination">
    #PAGINATION#
    </tbody>
    </table>
    <div class="uReportDownloadLinks">#EXTERNAL_LINK##CSV_LINK#</div>
    This is intentional, following best practice for marking up HTML tables. What is not intended is the problem that arises when this template is used with the Repeat Headings on Break break formatting option. The repeated headings result in the table consisting of tag soup containing multiple incorrectly constructed tbody and thead elements, which is invalid.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Create a copy of the Standard report template as Standard (break formatting) for use with break reports, remove the thead and tbody tags from the template definitions, and change the break reports to use the new template. (Or, if you primarily have break reports using the Standard template, keep the tags in the copy and remove them from the original to minimize the number of reports you have to edit.)
    Personally I'd create a custom row report template for complex break reports in order to be able to have complete control over the structure and presentation.

  • Running total in group header doesn't display when it's at page bottom

    Post Author: Charles Denight
    CA Forum: Formula
    Hi, Using v.9 of Crystal Reports I've created some running totals using a cross-tab workaround to get the running totals into the group headers, but when the group header falls at the bottom of the page then the running total doesn't show up.Would appreciate knowing why and how to fix this.

    Replacing an item that is malfunctioning because of a manufacturing error is the bare minimum I would expect from customer service for any electronics item.
    The thing Apple does extremely well is their flat fee policy for repairs on their computers.
    I managed to break my MacBook pretty seriously (logic board needed to be replaced) and I'm sure it cost them more to repair the unit than the $328 they charged me.
    I probably would have been angry if it was something minor, but I'm guessing that most repairs to screens/motherboards/etc cost more than their flat fees.

  • How to supress the header if there is no detail record in the report

    Hi,
    I am trying to create a report using the TEXT_IO utility in oracle forms. The header part is created in one program unit and detail part is created in another program unit. How can I supress the header if there is no detail part? I came to know that I can use HOST command . How can I use this? Can any one help me in resolving this?
    My report should apppear in the format specified below.
    case number : 1
    Name Address1 Address2 State ZIp
    XXXXX XXXXXXX XXXXXXXx XXXXX XXXxx
    case number: 2
    Name Address1 Address2 State Zip
    YYYYY YYYYYY YYYYYYY YYYYY YYYY
    Edited by: 837462 on Feb 16, 2011 6:12 PM

    Hi
    i think it's a better idea to paste ur code here...
    but logically... i supposed u have 2 function header_function & detail_function e.g. both functions returns either 1 or 0 if there is data then it returns and the contrary if returns 0
    In the calling these functions i e.g. WHEN-BUTTON-PRESSED u need to validate as follow
    DECLARE
    v_header_output  varchar(2);
    v_detail_output  varchar(2);
    BEGIN
    v_header_output :=  header_function ( PARAMETERS ... , ,);
    v_detail_output :=  header_function ( PARAMETERS ... , ,);
    IF  v_detail_output = 0 THEN
    v_header_output := 0;   -- or u can do some works that change the return of the   header_function  to null or 0
    END IF;
    END;Hope it works...
    Regards,
    Abdetu...

  • How to change Group Header Font in Crystal report Left Most Group Tree?

    Hi Dears!
    I am using crystal report 10 with C# 2005. I have an issue that i want to change the font of Group Header Text that is visible when we click on Toggle Group Tree button and a tree pane is visible towards the left side of report viewer.Means all the Group Tree Items that are visible when we click  Toggle Group Tree button on Crystal report Viewer.
    I have goggled a lot but unable to find any hint. Any idea or help would be highly appreciated .
    Thanks in advance.

    look for information on drilldowngrouplevel function. this is available in versions 9 and higher.
    i cant test it in mine to give you the syntax, but you would need to create another section and conditionally surpress the section on the drilldowngrouplevel function. hope this helps

  • Group Header is not repeating when exported to pdf in 2008 r2

    Hi
    i have a typical scenario here , when i am trying to repeat my group header it is working fine in report viewer but when i exported to pdf it is not repeating. yea it is working fine in excel.
    could some one help me in this as i tried various ways but couldn't able to figure it out 
    PS: i am using 2008r2
    if this is the issue in 2008r2 , did it got fixed in any new version please suggest.
    thanks
    sharath 

    Hi sharath,
    Based on my understanding, the group header doesn’t repeat when you export report to PDF file.
    In Reporting Service, the RepeatOnNewPage property has effect on static row members only and where KeepWithGroup is not None. If value for KeepWithGroup is None, the group header will not appear in a new page. As we tested in our environment, we set FixedData
    as True, KeepWithGroup as After and RepeatOnNewPage as True, the group header repeat in second page when export to PDF file. Please refer to screenshot below:
    So in your scenario, please check if you have set KeepWithGroup as After. Then export to PDF again to check if group header can repeat in multiple pages. If issue persists, please provide some detail information about your report design. If possible, please
    provide some screenshots about your results before and after perform PDF render.
    Reference:
    Display Headers and Footers with a Group (Report Builder and SSRS)
    If you have  any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • No column heading in second page in alv report when save in excel file

    Hi Expert,
    How can i remove the column header from Alv report when program execute in background and save in excel file right now
    its comming column header in each page. Client dont want header column in excel from second page. is this possible?
    with regards
    chandan_viji

    Hi Ravi,
    thanks for reply i have solved this problm throug line count and NEW-PAGE LINE COUNT 10000 bcoz client want output in excel file only one page header.
    with regards
    chandan_viji

  • Orphaned Group Headers in Variable length Subreports.

    I have a report is composed of a number of subreports that each have 3 nested groupings.  I am trying to figure out how to keep the subreports from printing GH1 on a page when GH3 will not fit on that same page of the main report.  I have read the knowledgebase articles and forum posts about preventing widowed headers when your results are in the details.  Unfortunately, for the purposes of our reports, these do not apply because we have to put our "details" data in GH3 and supress the actual Details section.  As a further complication, I cannot uncheck "Repeat Group Header On Each Page" or check "Keep Group Together" for GH1 within the subreport because it is appropriate for these headers to repeat most of the time and each subreport is of variable length and keeping the group together could leave too much white space between subreports when the each GH1 has to start on a new page.  For similar reasons, I cannot use "Keep Object Together" on the subreport.
    Any help is appreciated.

    Post Author: hamish_sco
    CA Forum: General
    In Design View, right-click on the group header area on the left of the screen (in CR10 it is grey and has a list of page sections - RH, PH, D etc)Choose 'Change Group' optionOptions tab - Tick the 'Keep Group Together' option.When I did this I also had all the 'Keep Together' options in the Section Expert unchecked.  This may or may not make a difference.CheersHamish

  • How do I create a summary sheet of Group values without using a subreport?

    Hello,
    I have a report (CR 2011 over MySQL) that churns through a lot of data. It presents information in the Details section and the Group Footer section. I want to include a summary sheet as the first page that only shows the Group Footer data. The only way I've figured out how to accomplish this is by putting the same report as a subreport into the Report Header and then suppressing the details section. I don't like this approach because the same data-intensive report is actually running twice now.
    I can't just use the "Hide" feature in the Details Section because when I run the report (from the .NET viewer) none of the details print. To print the details I would have to double-click on each Group Footer which launches a new tab with the details for that particular group only.
    I know how to create shared variables so not sure if that can play a part.
    Thanks in advance for tips in keeping this to one report with a summary page!
    Mark

    Hi Mark,
    What kind of summary functions do you use on the Group Footer? As long as they're basic summaries (no print time functions etc), you could just move them to the Group Header. The Group header can then serve as your 'Summary sheet'.
    If these are printime functions that you're dealing with, then there isn't another way other than using a Subreport to show the Summary sheet. The Subreport itself does not need to be against the same dataset though.
    To speed it up, you could perhaps, create a Stored proc that does all the Summarization and use those columns on the report.
    -Abhilash

Maybe you are looking for