Interactive Report Sub-total and total

Hi friends,
I have an employee interactive report with group by job name and also showing the salary sub-total for each and every job(group by).
I have an requirement like to highlight the sub-total for each and every job with a background color so that the user can identify the sub-total with the color, and also whether it is possible to display an overall total @ last in the report with a label named "Total Salary" in which it calculates the overall salary is also to be highlightened with the background color.
Also is it possible to display a text "Sub-total" besides each and every salary sub-total  of job(group by). Currently if we display a sum for the salary then im getting the total's but with out a text named total.
Since i can see the highlighted feature in interactive report but im not sure how to apply it for the sub-total and total column.
I have reproduced the example in apex.oracle.com
http://apex.oracle.com/pls/apex/f?p=4550:1:0:::::
In the application 9494 named "test" in page1.
Thanks in advance.
Brgds,
Mini

Hi, Mini,
style=background-color:red;
But that Total region color dint change.The code for style should be in "Form HTML Element Attributes". However, this changes the background color only for the Total value not for the whole row.
If you want to change for the whole row, you need to change the template that is selected for the region.
I changed the region template in your application to "Borderless Region" and made the changes to the "Borderless Region" template, it now shows the background color for Total Value.
<table class="t20Region t20Borderless #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" border="0" cellpadding="0" cellspacing="0" summary="" #REGION_ATTRIBUTES#>
<thead><tr><th class="t20RegionHeader" id="#REGION_STATIC_ID#_header">#TITLE#</th></tr></thead>
<tbody id="#REGION_STATIC_ID#_body">
<tr><td class="t20ButtonHolder">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</td></tr>
<tr><td class="t20RegionBody" style="background-color:orange">#BODY#</td></tr>
</tbody>
</table>The below does the trick. :)
<tr><td class="t20RegionBody" style="background-color:orange">#BODY#</td></tr>Note: I made the changes to "Borderless Template", but you can copy the template to your own and apply this change.
Regards,
Natarajan

Similar Messages

  • Interactive Report Need total of aggregate (sums) where break format used

    I have an interactive report that uses break formatting. When I do an aggregate (sum) for the Quantity Column I get the sums for each campaign_id (used for the break format column). This is great. However, at the bottom of the report I need a grand total for all campaign ids (a sum of the sums) in a new row at the bottom of the report. Is this possible?
    I can't paste a screenshot here to show but her is a simple one column example - I can't make the columns stay lined up but I think you can see what I need.
    {code
    Campaign Hand Addressed (break format column)
    Quantity
    100
    200
    Sum:300
    Campaign Travel Check
    Quantity
    100
    500
    Sum:600
    Sum:900 This is row I need to add
    Oracle 11GR2
    APEX 3.2.1

    This works when I run it in SQL Developer. Now I enter this for my report query in APEX and I get the "not a GROUP BY expression.
    {code
    SELECT *
    FROM t3_mail_piece t
    WHERE t.week_id = 11
    GROUP BY ROLLUP(t.campaign_id, t.market_id)
    ORDER BY t.campaign_id
    , SUM(t.quantity);
    What is different?

  • Report Sub Total

    Hello all,
    I need your help again:
    I have a report as listed below. I have a 'After' total flag set on DESCRIPTION column. For some unknown reason
    Actual Total per EACH DESCRIPTION calculated correctly, whereas Budget carries over the total of the first row???
    Any ideas why? Thank you all in advance. Sonya
    REPORT_DEPT DESCRIPTION Actual Budget
    ENGINEERING 6040-Agency Approval $100 $200
    6040-Agency Approval $100 $200
              6050-Air Travel $50 $700
    6050-Air Travel Total $50 $200
    6060-Car Travel $20 $300
    6060-Car Travel Total $20 $200

    please check fx of budgets column and set aggregate to sum.
    (or) check with enabling report based total below after.

  • Interactive Report grand totals

    Dear,
    how can i show show report grand/final totals at the end of interactive report while using control breakup option.
    Regards,
    Muhammad Usman

    Tony Miller
    Thanks for the reply.
    Through Actions-->Format--->Aggregate, we can display the totals in the end of report. But my question/Problem is about control break.
    after using control brake option total of all the breakups are not displayed in the end of report. How can i get the final/grand/total of all the breakups at the end of report.
    Hope u understand my query
    Regards,
    Muhammad Usman

  • Interactive Report Column Headings and Row Height

    I am using the div style="width:350px;" method to control the width of columns in various interactive reports. That works fine except for the following:
    1. When creating filters, the <div...> stuff shows up along with the actual column heading, thus confusing some end users
    2. Even when I uncheck the "Use same text for single row view" checkbox and then provide a simple single row view label, the <div> stuff still shows up on the single row view
    Does anyone have a better solution?
    Also, does anyone know of a way to limit the row height within an interactive report row? I have some columns of data that contain a large amount of HTML data and I'd like to be able to limit the number of rows that show on the report.
    Is Oracle planning to provide some better control over the Interactive Report columns in another version? The Interactive Report is such a huge improvement in usability in APEX - it would be great to take it to another level by providing some better control over column width and row height.
    Edited by: DaleB on Jun 18, 2009 8:54 AM
    Edited by: DaleB on Jun 18, 2009 8:54 AM

    Dale,
    Unfortunately we don't have much we can use to do what you would like. I would have said it's impossible until version 4 but you could actually do something similar to what Roel has done. His trick is in the edit button. He changed the edit button to use an "onload" call to a JavaScript process. You could do the same but call a process that goes across the rows and styles each column. Now because you don't have a way to identify the column (can't use the order because the end user could change it) you'll have to write the code to look at the top row first and then style the appropriate column. As far as I can tell, this would be quite difficult and inefficient. Having said that if you need it that bad and would like some help with it, put up an example application on apex.oracle.com and provide the workspace/username/password and I'll take a look.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Interactive report with checkbox and editable field

    Hi,
    For a project I'm working on I need to create a interactive report in Apex 3.2 with the ability to select lines and to modify one of the columns in the report.
    To do this, I started off by adding these two fields to the selection query of my IR:
    apex_item.checkbox(1, product_number) cb
    and
    apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER
    cb is the checkbox files, and QTY_TO_ORDER is the editable field.
    That worked like a charm and I got my two fields in the report.
    To process the values, I added this page process, wich for now should only store the "product number" and "QTY_TO_ORDER" fields in a table.
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(i));
    END LOOP;
    commit;
    end;
    However, this doesn’t work the way I want it to work. When I check the checkboxes of two rows, it will store two rows with the right product numbers, but it will take the top two QTY_TO_ORDER field of the table regardless of which ones are checked. I was able to solve this problem, by adding a rownum to the query and using the rownum as the value for the checkbox. Since I still need the product_number and qty_to order fields I made them both text fields.
    I changed my page process to:
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    insert into mytmptable values (APEX_APPLICATION.G_F02(APEX_APPLICATION.G_F01(i)),
    APEX_APPLICATION.G_F03(APEX_APPLICATION.G_F01(i)));
    END LOOP;
    commit;
    end;
    This seemed to solve the problem, and I now got the right values in the table, unless I used sorting in the report... As soon as I sorted the report in a way different than by rownum, I got the wrong values in the table. The reason for this is of course that my insert just selects the nTh row from the table, and my rownums aren't dynamic.
    I've found a lot of examples on the internet using '#ROWNUM#' in the selection, which should dynamically generate a rownum in the report. This seems to work in normal report, but in a interactive reports, the literal values '#ROWNUM#' shows up.
    Is there any way to solve this issue?

    Hi,
    Try with 3 fields:
    apex_item.checkbox(1, product_number) cb,
    apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER,
    apex_item.hidden(3, product_number) prod_no
    The hidden field should be display as a hidden column.
    Then your process can be:
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    FOR j in 1..APEX_APPLICATION.G_F03.count LOOP
    IF APEX_APPLICATION.G_F01(i) = APEX_APPLICATION.G_F03(j)) THEN
    insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(j));
    exit;
    END IF;
    END LOOP;
    END LOOP;

  • Apex 3.1. Interactive Report. Questions and Problems.

    Hello!
    First of all I'd like to say Interactive Report is a really really brilliant feature, it covers exactly that points which we were missing in previous releases of Apex. Only this single feature makes Apex 3.1 release most significant for us since may be HTML DB 1.6. So much much thanks!
    So I have some questions about Interactive Report (IR):
    1) About "Save Report" feature. It is possible there to save own version of report layout or overwright the default settings. There is also possibility to completelly disable this function. So the question is it possible to disable only the ability to overwright the default report but give the ability to save own reports. It would be reasonable since too smart or too dum users can break the default layout of report and break the work for other users which don't use this function at all. At the same time the possibility to save own reports
    is absolutelly perfect
    2) Search. I'm from Germany and we have some national non-english symbols. The IR can't perform seach correctly if we use words with such symbols. Example word "Bestätigt" is interpreted by IR as "Bestätigt". At the same time the words are correctly displayed in reports and in interface. We have correct NLS_LANG, we have imported the lang_de.sql , and our own self-made search on simple reports works ok. What's to do?
    3) Charts in IR. Is there some data volume limits for Chart in IR ? sometimes we get the message "Loading XML...100%" during chart rendering and then happens nothing. In log file of Apache there is no any error messages...
    Thanks in advance,
    Alex

    Hi Alex,
    Glad to hear you're putting interactive reports to use, we put in a lot of time trying to get them right (at least for their first release).
    1) The "Save As Default Report Settings" option is only available for Developers, so you can only see it if you already see the developer toolbar at the bottom of the page. Standard end-users can't see this, so they can't save over your default report settings.
    2) That's right, the character set of the DAD needs to be AL32UTF8.
    3) A maximum of 1000 chart points will be returned, but you should not get this error. Can you describe the columns you are charting and the chart settings?
    - Marco
    Message was edited by:
    MAdelfio

  • Conditional Report Sub-Totals

    Any ideas on how to conditionally show/hide report subtotals on a report?
    I have created a report were the first two columns are the same value . . . they are a value representing a level in a hierarchy. One of the columns has a link associated with it and the other does not. The idea is to provide a link for user to drill down to the next level of the hierarchy unit the report is displaying the final level.
    If I set the breaks to 'First and Second' columns the subtotals appear twice. If I set it to 'First' the report is not grouped when the second column is the first display column.
    Thanks,
    David

    WORK AROUND
    I made the link conditional by adding the following code to the Report SQL
    SELECT CASE WHEN hierarchy_lvl &lt;add conditions&gt;
    THEN
         '&lt;li&gt;&lt;a href="f?p=&APP_ID.:2:&APP_SESSION.:DRILL:::ELEMENT1,:'||hierarchy_field ||',N,9"&gt;'||?grp1_desc? ||'&lt;/a&gt;&lt;/li&gt;'
         ELSE
         hierarchy_field
    END group_one
    This eliminated the need to hide and show columns based on the values that was being displayed . . . and thereby simplified the grouping/break requirements.
    David

  • APEX_ITEM on Interactive Report losing all the data.

    Hi!
    I'm having some troubles with some apex_items on interactive report.
    The problem happens when i save the interactive report with apex_items and a validation in some of the items fail then i lose all the data entered.
    I made i test application to you guys see the problem and try to solve it.
    URL: http://apex.oracle.com/pls/apex/
    The scheme is Sn4k8
    User: guest
    Password: 123654g
    To see the application: http://apex.oracle.com/pls/apex/f?p=20135:1:
    The application is Interactive Report Example / Page number 1
    A example to test is type on the fields values and then type a start date bigger then the end date this is cause a validation error and you will see all your data entered lost.
    I tryed to find something on the web but i could not find nothing if you guys know something to help post it.
    Regards,
    Ismael Filipe
    Edited by: Sn4k8 on 25/03/2010 12:26

    I think there is a solution with java or pl/sql.
    Try to use the example application and type values in the fields and then type "d" at some date. This will cause a exception and will redirect to a apex erro page, if you click at "ok link", you will come back to the interactive report page and you will see that all your data remains intact.
    I think there is a solution...
    Regard,
    Ismael Filipe

  • Interactive Report's Column Definition - Single Row View Label Bug?

    Hello,
    I have an Interactive report that I've added a Blue background to certain column headings (done by giving Column Heading a background color), this works fine except for the Single Row view - it displays the &lt;....&gt; code I used to get the background color and the column heading. I've tried to change the Single Row View Label by unchecking the 'Use Same Text for Single Row View' on the Column Definition and giving a different label, it just ignores whatever I put in and shows the Column Heading with the &lt; .... &gt; code. Is this a Bug or am I doing something wrong?
    Thanks,
    Anna

    Hi Anna,
    I believe that it is a bug.
    If the 'Use Same Text for Single Row View' checkbox is unticked and some text is entered in the 'Single Row View Label' field it gets ignored completely when viewed in the single row view and the existing value in 'Column Heading' is used.
    I wanted to do something similar to you, colouring some of the Interactive Report column headers, and it works fine in the IR report itself but shows the code (span style:color etc) in the single row query. I am using Apex 3.1.1 and the Sand Theme.
    I created a simple application on apex.oracle.com using the red theme and in single row view it still ignores the 'Single Row View Label' but interestingly shows the Column Heading text without the code. This indicates that there could be a work-around by altering the theme.
    Regards,
    Chris

  • Report with checkbox and collection

    Hi all
    I need to manage an interactive report to filtering and selecting rows by checkboxes and then use a collection to manage the selected records.
    I used a first collection to create the source record set by a On-Load Before-Header Process:
    DECLARE
    v_id NUMBER;
    var1 Varchar2(8);
    var2 Varchar2(10);
    var3 VARCHAR2(50);
    var4 VARCHAR2(10);
    var5 VARCHAR2(100);
    var6 VARCHAR2(5);
    cursor c_Populate is
    SELECT
    dep.chassis_code AS chassis_code,
    dep.model_code AS model_code,
    m.model_description AS model_description,
    dep.acc_doc_number AS acc_doc_number,
    dest.description AS destination_descr,
    (trunc(sysdate) - dep.entry_date) Anzianita
    FROM deposit_chassis dep, warehouses w, warehouse_map map, models m, site s,
    destinations dest, T_SUB_DESTIN_DEALERS sdd
    WHERE
    dep.status = 5 AND
    w.ware_code = map.ware_code AND
    dep.DEALER_CODE = sdd.DELIVERY_POINT AND
    dep.DESTINATION_CODE = sdd.DESTINATION_CODE AND
    map.map_code = dep.map_code AND
    m.model_code = dep.model_code AND
    DEP.UNLOADING_SITE = S.SITE_CODE AND
    DEP.destination_code = dest.destination_code And
    dep.unloading_site = 'S0000074' and w.site_code = 'S0000074';
    i NUMBER;
    BEGIN
    APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(p_collection_name => 'MY_COLLECTION');
    OPEN c_Populate;
    LOOP
    FETCH c_Populate into var1, var2, var3, var4, var5, var6;
    EXIT WHEN c_Populate%NOTFOUND;
    APEX_COLLECTION.ADD_MEMBER(
    p_collection_name => 'MY_COLLECTION',
    p_c001 => var1,
    p_c002 => var2,
    p_c003 => var3,
    p_c004 => var4,
    p_c005 => var5,
    p_c006 => var6);
    END LOOP;
    CLOSE c_Populate;
    END;
    Then I created a region for a SQL report:
    SELECT
    APEX_ITEM.CHECKBOX(1,c001) Chk,
    apex_item.text(2, c001) Telaio,
    apex_item.text(3, c002) ModelCode,
    apex_item.text(4, c003) Model,
    apex_item.text(5, c004) Doc_Number,
    apex_item.text(6, c005) Destination,
    apex_item.text(7, c006) Age
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'MY_COLLECTION';
    Then, with a submit button and the relative process (below), I need to load a new collection for further elaboration.
    How can I obtain the single values for each field of my selected row (see MY_COLLECTION) ?
    APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(p_collection_name => 'COL_AVAILABLE_CHASSIS');
    FOR i IN 1..APEX_APPLICATION.G_F01.Count
    LOOP
    APEX_COLLECTION.ADD_MEMBER(
    p_collection_name => 'COL_AVAILABLE_CHASSIS',
    p_c001 => I need the Telaio
    p_c002 => I need the ModelCode
    p_c003 => I need the Model
    p_c004 => I need the Doc_Number
    p_c005 => I need the Destination
    p_c006 => I need the Age
    END LOOP;
    Thanks in advance,
    Massimo

    Dear Jari
    I've looked at your sample.
    Yes it seems ok for my apps
    So, i've done the following update to my code:
    Souce Report
    SELECT
         APEX_ITEM.CHECKBOX(3,c001) Chk,
         APEX_ITEM.TEXT(4,c001) Telaio,
         APEX_ITEM.TEXT(5,c002) ModelCode,
         APEX_ITEM.TEXT(6,c003) Model,
         APEX_ITEM.TEXT(7,c004) Doc_Number,
         APEX_ITEM.TEXT(8,c005) Destination,
         APEX_ITEM.TEXT(9,c006) Anzianita
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'MY_COLLECTION'
    The Submit Process
    DECLARE
      l_row NUMBER := 1;
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_F03.COUNT
      LOOP
        FOR j IN l_row..APEX_APPLICATION.G_F04.COUNT
        LOOP
          IF APEX_APPLICATION.G_F04(j) = APEX_APPLICATION.G_F03(i) THEN
              -- ONLY FOR TEST PURPOSE --
            htp.p('Telaio: '||APEX_APPLICATION.G_F03(i));
            htp.p('Campo: ' ||APEX_APPLICATION.G_F04(j));
            htp.p('Campo: ' ||APEX_APPLICATION.G_F05(j));
            htp.p('Campo: ' ||APEX_APPLICATION.G_F06(j));
            htp.p('Campo: ' ||APEX_APPLICATION.G_F07(j));
            htp.p('Campo: ' ||APEX_APPLICATION.G_F08(j));
            htp.p('Campo: ' ||APEX_APPLICATION.G_F09(j));
            l_row := j + 1;
            EXIT;
          END IF;
        END LOOP;
      END LOOP;
      COMMIT;
    END;
    Is it correct to manage G_F0x like my code ?
    Thanks,
    Massimo

  • Is There A Graceful Refresh of an Interactive Report?

    Hello,
    I have created an Interactive Report and then modified it to get the update functionality for one column, thereby following the
    the clever solution of Roel Hartman:
    http://roelhartman.blogspot.com/2009/11/updateable-interactive-report-websheets.html
    Now all is working quite nicely, only there is one flaw. When I edit an entry and save it, the Interactive Report is refreshed and reset to the first page.
    Therefore, updating a number of rows can become very tedious when you have to navigate back to the resp. page after each edit action.
    I have tried several methods for refreshing the IR [for instance: gReport.search('SEARCH'); gReport.pull(); gReport.reset();] but not found a smart solution for a "graceful refresh" up to now.
    I'm using "window.location.reload();" now in my "save" function, which lets me stay on the current page of the IR on saving.
    Does anyone know of a better solution for this problem?
    Kind regards
    Roland
    PS: I'm using APEX 4.1 and Firefox 9
    Edited by: rbaier on 18.01.2012 04:48

    Hello Tobias,
    yes I have tried using a Dynamic Action. After refreshing, the IR once again displayed the first page.
    Regards
    Roland

  • How to show an icon in an interactive report against rows using a criteria

    Hi,
    I have an interactive report with customer and revenue details (let's say based on Table_A data)... I want to highlight the customers (via ICON beside the names) that has some collections related issues...I've stored these customers in Table_B... Please advice...
    Thanks in advance...

    Modify the IR region's SQL query for the emp name column by adding the HTML code for the image.
    For example
    SELECT <column 1>
          ,<column2 >
        ,DECODE(    (SELECT count(1) from table_b B where B.empno = A.empno)
                           ,0
                           ,emp_name
                           ,'<img alt="special icon" src="i/myicon.png">'||emp_name
                       ) AS EMP_NAME
    FROM <table a> A
    Note: In the code above, I have used a decode statement and an inner SQL to fetch the value from the other table. Modify it as per you case
    You also need to change the emp_name column in the report settings to be shown as "standard report column" (instead of display as ..)

  • APEX Interactive Report - CSV Export Limitations?

    Hello,
    I have an interactive report generated for some users.
    The issue I'm having right now is that the results that the users need is over 100k and the export to csv option caps out at 65,535 rows. Is this a limitation on APEX Interactive Report's side and is there anyway to get around it so we can send 100k records (or more) to the users without them splitting the report many ways?
    Thanks in advance.
    Ivan

    Ivan,
    I'm afraid that I can't answer your question. The APEX insiders will have to field that one.
    As one that dislikes voluminous reports, have tried swaying your users that you now have this great interface to drill to the data you need versus downloading gobs of data and filling up their hard drives. Ask if there is something else your application can do that they would do with all that data in Excel.
    Jeff

  • Interactive Reports - Filter Criteria Using Other Operators

    Currently using version 3.1.2.
    Is there any way to specify the operators that are used for filter criteria on an interactive report?
    Trying to specify the following criteria...
    LASTNAME like 'B%'
    OR
    LASTNAME like 'A%'
    The interactive report uses an "AND" in this case instead of an "OR".
    Any ideas?
    Thanks,
    Kris

    Any comments would be very much appreciated.
    Many thanks

Maybe you are looking for