Report Total lable when "repeat heading on break"

Hi,
I have a report where I'm breaking on the first column, and returning the totals.
When I have "Default Break Formatting", since I am returning totals based on the first column, it says report total under the first column.
However, If I have "Repeat heading on break", the first column won't show as one of the columns in the report, but it will show above the box. Because that first column is not gone, I realized that the lable "report total" is gone too, since there is no space to put it. It is still returning the totals correctly, but there is no lable that says "total" or anything like that.
I wouldn't mind having that label on the second column, or someplace else. Can I do this?
Thanks!

Lila,
If you want to take advantage of the features that HTML DB reports offer, such as column heading sorting, then writing your own PL/SQL region would not be an option. I was only confirming your observation that repeating headings only works for the first break column and suggesting an alternative approach. So you'll have to decide which is more important in your case, getting the formatting you're looking for or using those advanced reports features.
As for the previous posting regarding new and older versions of HTML DB, HTML DB 1.5 was our first production release, shipped with the Oracle 10G database, and this version as well as HTML DB 1.5.1 offers the same kind of report heading sorting and the same type of column breaks.
Regards,
Marc

Similar Messages

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    <script type="text/javascript">
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '<b>TOTAL</b>')
    rs[rs.length - 1].style.display = "none";
    </script>Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

  • 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.

  • IR Report - Repeating Header Isuue

    IR Reports - Apex 3.2
    Question: Is there way to keep the main Table Column Header the same as Repeat Heading. I spent a lot time coloring the Column Header cell <blue> and they do not pass down to the Repeating Headers.... I tried numerous ways. Thanks in-advance.
    <style type="text/css">
    .apexir_WORKSHEET_DATA th{background:#8A7E3F}
    text-decoration:none;
    cursor:pointer;
    #apexir_WORKSHEET .apexir_REPEAT_HEADING {background:#8A7E3F }
    #apexir_EAC_CMDB_PLT {color:"#00FF00";text-decoration:none;
    cursor:pointer;}
    </style>

    Hi,
    Sorry, I now see what you are trying to do - I updated my styles to use #apexir_ENAME {color:#0000FF;text-decoration:none;cursor:pointer;} and then set the groupings. Only the first "Ename" heading is styled using this. That is because this is the only one that is given an ID of "apexir_ENAME" - the other group headings are just plain DIVs without IDs.
    The only way I've managed to get a style onto all of these is to add in a SPAN tag into the heading itself and style it that way. Whilst that does work, of course, it does mean that the SPAN definition is now part of the heading text so appears when you use "Select Columns" etc.
    I can't think of an easy way around this as I assume that the IDs are important to the IR functionality and should be unique on the page.
    Andy

  • How to show the break totals and NOT the report totals in an SQL report

    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?
    PaulP

    PaulP wrote:
    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?Instead of using the APEX break feature, try doing all of this in the query using <tt>GROUPING SETS</tt> or <tt>ROLLUP</tt> to get the break rows, and <tt>GROUPING_ID</tt> in the <tt>HAVING</tt> clause to suppress the unwanted rows.
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?Don't really understand what's meant here?

  • Move "Report Total" text in Classic Report

    I am using APEX 4.0.2 and I would like to move the position of the report total text (Display This Text When Printing Report Sums) in the Break Formatting section of the Report Attributes tab.  By default, it appears in the first column.  It there a way to move the text display to column 2 or 3?
    Thanks you for your time and attention.

    Okay,
    Well this is actually an CSS thing, but in this case, since the break formatting section is just another table row, you might as well use some jQuery to prepend an extra table cell to the break row.
    You can use the following code in a "page load" dynamic action:
      $('.apex_report_break').parent().prepend('<td></td>')
    This will add one empty table cell to the break formatting section row. If you want more than one table cell indent, you can use the colspan attribute to make the prepended column wider:
         $('.apex_report_break').parent().prepend('<td colspan="2"></td>')
    The advantage of using jQuery in this case is that your text will always be indented the correct distance, regardless of the content and width of the underlying table columns.
    Regards,
    Vincent Deelen

  • How to remove report total

    Hi,
    I have created an SQL report for class students term wise examination. I have made the report break on terms column. In the term field values displayed as "First Term", "2nd Term" and so on. Every thing is very excellent, grouping by term field, showing sub totals of total marks, marks obtained for each subject. But there appears a report total at the end of the report showing total of all sub totals which in my case not necessary as it is meaningless grand total of all marks in all terms. how can it be removed.
    Apex 3.0
    Database 11G
    Sajjad

    Hello,
    When you give print of report, you would the print dialog box.
    In that the is a block for Cover pages, in the just remove the coverpage and uncheck the ALV statistics.
    Clear SAP cover page & OperSys cover page and unchcek ALV statistics check box.
    Hope this helps you.
    Regards,
    Sachinkumar Mehta

  • Hide zero report total

    Hello guys,
    it's possible to hide every zero "0" in the report total row?
    I'm using apex 4.0.1
    Thnx in advice

    Raul,
    if I understand correctly then problem is when in reports attribute you choose to have a sum column, and then at the end of report you get additional row with "report total". In that case you get 0 if all values in column are nulls.
    What you could do is following:
    In reports region definition set STATIC ID for that region, for example MYTABLE
    a) If you have a report with Pagination
    Under Section Header and Footer, you add in Footer following:
    <script>
    $('#MYTABLE tr').eq($('#MYTABLE tr').length -3).attr('id','LastRow');
    $('#LastRow td').filter(function() {return $(this).text() == '0';}).css('font-size','0%');
    </script>
    b) If you have a report without pagination then you add under footer following:
    <script>
    $('#MYTABLE tr:last').filter(function() {return $(this).text() == '0';}).css("font-size","0%");
    </script>
    You can check for example on http://apex.oracle.com/pls/apex/f?p=60428:3
    Just some quick explaination:
    In case when there is no pagination (b), I just search for last row in table and do an exact search for value 0, and then hide this value.
    In case with pagination (a), the last row is actually row where you see pagination info, and thats why you have to move up.
    In this case I search for "the real last row" and I set an id for that row. Then I just search for 0 (exact) in that row and hide it.
    Regards,
    Aljaz

  • Customize the title 'Report Total'

    Hi,
    I want to change the title 'Report Total' after checksum the column in the Report Attributes to another title, how can'i do this?
    for any help thanks

    Hi UserXY,
    go to your report attributes, section break formatting. There you can set "Display this text when printing report sums" to whatever you want to see.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Report Total String

    Hello,
    can i change the rpoert total string in the new release?
    H. Kutzer

    Hubert,
    To change the report total string, you need to go to the report attributes page, scroll down to Break-Formatting (Gruppenwechselformat) and specify your string in the item titled “Display this text when printing report sums” (Diesen Text beim Drucken von Berichtssummen anzeigen).
    Regards,
    Marc

  • Report Total but no Sub total.

    Hi,
    I have a report ( PL/SQL Function returning SQL Query).
    The query is complicated.
    If value of item :p1 is not null then it returns select col_a , col_b ... from table_a
    but if value of item :p1 is null then it returns select col_a , sum( col_b) , sum(col_c).... from table_a group by col_a
    I went to report attributes and checked SUM for all the fields ( Except the first field )
    Its showing Sub total for each row and grand total..
    Is there a way I can show only grand total and not the sub total.

    1. Yes I'm using "Use generic column Name"
    2. No I'm not using column alias for sum
    3. Further my report uses two lines for Header , for which I am using custom report region.
    Re: Two level row header
    Below is the exact query i'm using for report
    DECLARE
    vc_query VARCHAR2(9000);
    BEGIN
    if :P19_PROJECT_OWNER <> 0 and :P19_PROJECT_OWNER is not null then
    vc_query := 'select * from
    ( select current_status , count , high , medium , low , red , green , yellow , priority_list , ">30 Days" from project_summary where user_id = ' || :P19_PROJECT_OWNER
    || 'union
    select current_status , 0 , 0 , 0 , 0 , 0, 0 , 0, 0, 0 from sr_current_status where current_status not in ( select distinct current_status from project_summary where user_id = ' || :P19_PROJECT_OWNER || ')) where current_status not like ''Closed%''';
    else
    vc_query :='select current_status , sum(count) , sum(high) , sum(medium) , sum(low) , sum(red) , sum(green) , sum(yellow) , sum(priority_list) , sum(">30 Days") from project_summary where current_status not like ''Closed%'' group by current_status';
    end if;
    return vc_query;     
    end;
    Edited by: Shijesh Kumar on Jan 29, 2009 12:19 PM

  • Lack of variability in report total in analysis

    First off, sorry if this is a repetitious post.
    But, when creating new applications and building analysis into them at startup, I have found that Oracle adds a row at the bottom titled "report total". The problem is that all this does is add the total of the column. In one case I had a series of averages in my column and would preferred to have a total average at the bottom or no information at all, not a sum of all the averages. I was wondering if there is a way to customize this or even turn it off?

    If none of the columns on the Reports Attributes page have a checkbox in the Sum column the 'report total' line does not appear.

  • Repeating Header question

    XMLP 5.5 Standalone
    Learning the ropes with XMLP, the provided samples are a very good, illustrative starting point. One thing I wonder:
    In the rtf_templates/advanced/RepeatHeader example, I found you can use
    <?for-each@section:G_CUSTOMER?>
    to do the magic, where G_CUSTOMER points to an existing group in the loaded XML data.
    I tried to apply a repeating header to another example, rtf_templates/sales_reports/retail_sales.rtf
    Here the xml-data is not grouped (simply starts with ROW and then the details). I however (soft)-grouped the data within the report by Year, resulting in:
    <?for-each-group:ROW;./YEAR?><?sort:YEAR;'descending';data-type='number'?>
    But I couldn't make out the syntax to use this group in the for-each@section command. Is this possible at all, or can you only address 'real groups' which have to be present in the XML data file?
    Thanks for your help
    Tino

    Hi Tino
    Nice question, this is possible with a current caveat. You can not use a sort option on the group in your template.
    So you would have :
    <?for-each-group@section:ROW;./YEAR?>
    we found the sorting issue while testing your question. IT will be addressed in the next release. But you can live without the sorting in the template then you can do what you asked.
    Regards, Tim

  • Repeating Header Rows - Not repeating beyond page 2

    Hello,
    I'm at my wit's end and I have yet to see a response to questions related to repeating headers (though I've seen it in a few forums).
    I have a flowed form with an initial header table and then 4 subforms, each made up of tables with a header group of two rows and then a user-modified number of data rows. Each of the subforms has it's own 2 line header, which includes a static "topic" row (with "add/delete row" button) and then a second header row with the column titles (9 columns across). As I said, these two header rows are grouped together.
    Each of the 4 subforms can (and does) flow on to multiple pages once filled in by the users. At first, my issue was getting the two rows (grouped) that make up my header to repeat on subsequent pages for each subform. No go - apparently grouped header rows can't make up an overflow leader (I can only choose one of the two), and when I check the box to make the GROUP appear on subsequent pages under pagination, it will only appear on page 1 and 2 for that particular subform...so I've given up on that. Now I just want the second header row (with the column titles) to appear on every page that each subform overflows on to, but I can still only get it to appear TWICE. Anytime a subform moves onto a third page, requiring a third instance of the header, it doesn't work.
    I came across one solution involving the "repeat header for each row", but that came with a host of new bugs, including a bug where every time I open, edit data in a particular subform and save the file, a NEW header group row is added to that subform (after 12 opens, there is literally 12 header rows at the top of each of my 4 subforms if I edit data in all 4)...though it solves the other issue and the header rows DO appear properly on subsequent pages beyond page 2!!!!
    Any solutions? I've run into this on three separate occasions over the past year when building forms and every time, I've hit this wall, given up the search for a solution and sacrificed aesthetics and functionality in my forms that I shouldn't really have to.
    Ck.

    Here is a sample I did for you..
    https://acrobat.com/#d=BSeyeLhbaeyqXfwX*wrwzA
    The difference with this file, is I created a table and then in the top row I merged all cells. Then created a table with two rows inside this merged cell.
    In the Header row properties I checked, repeat header in Subsequent pages.
    Let me know if you have any issues..
    Thanks
    Srini

  • Help on displaying Repeat Header Rows

    Hi All,
    I have a table where i need to repeat each header per page But i there's one value that i need to display on the first page only.:
    given the following repeat each header per page:
    page 1 header
    product1
    product2
    product3
    page 2 header
    product2
    product3
    page 3 header
    product2
    product3
    i set the table to repeat header per row. But it keeps appearing the product 1 for 2nd page and 3rd page.
    thanks in advance,
    Paolyn

    Hi Kavipriya thanks for your reply:
    My xml structure are the following:
    <List of Productitems>
    <List of Productlines>
    <ProductId>
    <ProductGroup>
    <ProductPlan>
    <modelid>
    <modelname>
    <modeltype>
    <List of productlines>
    <List of ProductItems>
    I regroup my xml by ProductId, ProductGroup,productPlan and i need to display model id ='0001' per page of the report as header information. Plus i need to display modelname='Sample1' on the first page only of the report as header which contains model id='0001' also.
    Thanks in advance,
    Paolyn

Maybe you are looking for