Download Interactive Reports to Spreadsheet - Aggregation rows?

Is there any way to use the Interactive Report download formats (either XLS or CSV) so that the spreadsheet includes the aggregation rows (SUM, AVERAGE) for each control break displayed on the screen.
I am on 3.1.0.00.32 (soon we will be at 4.1).
When we create a customized report using the interactive tools, it only downloads the data, and not the sum rows.

bhenderson wrote:
Is there any way to use the Interactive Report download formats (either XLS or CSV) so that the spreadsheet includes the aggregation rows (SUM, AVERAGE) for each control break displayed on the screen.
I am on 3.1.0.00.32 (soon we will be at 4.1).
When we create a customized report using the interactive tools, it only downloads the data, and not the sum rows.A workaround would be to use SQL to provide the aggregation rows. The ROLLUP, CUBE and GROUPING SETS (my favourite) group functions are especially build for such a task.
Here is an example in the docs: http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#i2091446

Similar Messages

  • Link column from an interactive report to insert a row in a tabular form

    Hi, I need your help, i'm new on APEX and i really need to make a "link column" from an "interactive report" to insert a row into a "tabular form".
    I mean that when you click the "link column" instantly create a new row in the Tabular form with the information of the linked row on the interactive report. Its something like that.
    I really appreciate your help.
    Ricardo Capuz

    Hi Ricardo,
    You can use the following code as per your requirement (this is just an example),
    (In this case IR report is in Page#1 and Tabular form is in Page#2),
    On Page#1, Create a hidden item (i.e 'P1_ID')
    IR Report query as like the below,
    select empno,
    ename,
    job,
    mgr,
    hiredate,
    sal,
    comm,
    deptno,
    empno "copy"
    from empUse the below JS code in Page HTML Header section,
    function f_insert_row(pSub)
        $s('P1_ID',pSub);
        doSubmit('ADD');
    Edit  Report Attribute -> copy column -> Under Column Link
    Link Text: Select your column name (i.e. #EMPNO#)
    Target: URL
    URL: javascript:f_insert_row(#EMPNO#);
    Then create a process to insert like below,
    BEGIN
    insert into emp_test (select * from emp where empno=:P1_ID);
    END;Process condition as * Request=Expression1* in Expression1 as 'ADD'.
    At last, create a branch to Page#2, Check 'include process success message' and with the same condition as * Request=Expression1* in Expression1 as 'ADD'.
    Thanks,
    Lakshmi

  • Selecting columns when downloading interactive reports

    Hello,
    We have a requirement set by Oracle's Corporate Security Architecture Review Board to prevent some columns from displaying when downloading interactive reports to csv format. They should display on the report but not on the csv output.
    I vaguely recall that this was possible when interactive reports were first released but I can't find a way to do it in ApEx 4.1? When I go to Print Attributes > Report Columns, I can see the list of columns and they are all set to Show in report = Yes but there is no way to set it to No. It seems that all the columns selected to display on the Interactive Report are automatically included in the Download.
    Our applications are hosted on apex.oraclecorp.com, I can provide further details if required.
    Thank you for advising if there is a way of excluding columns when downloading.
    Kind regards,
    Isabelle Fallon

    I don't have an answer (other than intercepting the download and writing my own custom handler...ugh!). I just wanted to chime in and say that, I, too, think this is an issue. You should be able to specify, at the column level, what is and isn't available for download. This is provide for Hide, Sort, Filter etc...why not for download???
    This causes more problems when considered in light of another APEX (in my opinion) Bug. When you mark a column as Hidden, it isn't "hidden", i.e. display=none. Rather, it is not sent at all to the page. There are case all of the time wherein one does not wish to display the column but, nonetheless, it is needed to perform some other processing, e.g. conditional logic, pass to linked pages, etc. In these cases, you have to use jQuery (or JavaScript) to hide them. Stinks. Moreover, even though they truly+ are hidden after this change, they are included in the download.
    -Joe

  • Urgent!!  Download Interactive report in HTML as it is

    I have an interactive report where i have highlighted rows and colums based on some conditions.But when i download the same report in html, all the highlighted format are gone.I mean all the colours are gone.I want the same format in html too.so how is this possible.

    Hi,
    this is not so easy. Read it yourself:
    http://www.apexninjas.com/blog/f?p=100:1:0::::P1_ARTICLE:1920
    http://www.talkapex.com/2009/04/custom-download-for-apex-interactive.html
    Best regards,
    Tobias

  • Download Interactive Report data does not match on-screen data

    Hi,
    I have a page which has a process which runs a query and returns a random % of rows from a table, and saves this into a collection.
    Then, based on the random rows, I want to select data from another table, where the rows match certain columns in the collection.
    I have created a query to select the data I want, and have it displayed in an Interactive Report region.
    The data on the screen is fine, but when I go to 'Dowload' the data to csv or excel from the Interactive report, the data is different.
    I have also created a normal report region with the same query, and when I download it from here, it works fine, so I know it has nothing to do with the query.
    Any ideas?
    Amanda.
    The process details are:
    Process Point: On Load - Before Regions
    Run Process: Once per page visit
    Then in the Interactive report query is something like:
    Select ..
    from
    DATA_TABLE c
    select
    c001 User_Id,
    c002 Account_No,
    c003 Transaction_Date
    from htmldb_collections where collection_name='PX_COLLECTION'
    *) d*
    where
    c.user_id = d.user_id AND
    c.account_no = d.account_no AND
    c.transaction_date = d.transaction_date

    Hi,
    This is because of web caching. You should invalidate the page caching in the access tab of page properties or you just change the page url with a dummy paramater like this
    http://domain/portal/page?_pageid=6,1,6_11&_dad=<dad>&_schema=<schema>&1=1
    Here &1=1 is a dummy parameter
    This will invalidate the cache and the page will be refreshed.
    Thanks,
    Sharmila

  • Downloading Interactive Reports

    Anyone know the best way to do the interactive report download.
    The *.CSV file is putting blank spaces for every character that is blank as in the row has a max char limit of 100, so thats alot of wasted space and messing around with rows to get rid of empty characters.
    Yet my tables set to varchar. Basically i want to be able to export this into a word doc without too much of a haste and screwing around.

    I don't have an answer (other than intercepting the download and writing my own custom handler...ugh!). I just wanted to chime in and say that, I, too, think this is an issue. You should be able to specify, at the column level, what is and isn't available for download. This is provide for Hide, Sort, Filter etc...why not for download???
    This causes more problems when considered in light of another APEX (in my opinion) Bug. When you mark a column as Hidden, it isn't "hidden", i.e. display=none. Rather, it is not sent at all to the page. There are case all of the time wherein one does not wish to display the column but, nonetheless, it is needed to perform some other processing, e.g. conditional logic, pass to linked pages, etc. In these cases, you have to use jQuery (or JavaScript) to hide them. Stinks. Moreover, even though they truly+ are hidden after this change, they are included in the download.
    -Joe

  • Possible to exclude interactive report column from single row display?

    hi -- I have an interactive report that I've added a column to (in addition to the table columns that are selected).
    The added column is a link to a form for editing a single row. This column/link is in addition to the default link
    that goes to a single row view. So, a row of the report has 1) the single row view link, 2) the Edit link,
    3) the columns in the table.
    The edit link column is named "Edit" (so Edit appears above the "pencil" link icon). Problem is that when the
    user goes to the single row view, the Edit column is displayed. (I've set the label in the view to a blank space,
    and the value is null (displayed as "-" in the single row view)... but it's generally ugly, and adds that nonsensical
    line to the single row view.
    Is there any way to never display that column in the single row view, but always display it in the report?
    I've considered putting the edit link on the first column of the table... but I don't like that the link will move
    if the user changes the column order. It seems it should always be at the left of the row, like the single row view
    link.
    Thanks,
    Carol

    Please disregard this thread. I see a flaw in the design of what I was attempting to do! Creating the link for Editing as a column means the user could inadvertently not display it, or move it, or... any number of problematic scenarios.
    Thanks,
    Carol

  • 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 default has alternating row colors, how to remove this?

    Is it possible to remove the alternating row colors from the interactive report.
    In a standard report I can select the report template, but in a interactive report not.
    Regards,
    Rob

    To customize a single page, add this rule to the CSS Inline page attribute:
    .apexir_WORKSHEET_DATA tr.odd td {
      background: rgb(242, 242, 242) !important;
    To apply to a complete application, either add
    .apexir_WORKSHEET_DATA tr.odd td {
      background: rgb(242, 242, 242) !important;
    to the Cascading Style Sheet Inline attribute on each page template, or create a CSS file containing
    .apexir_WORKSHEET_DATA tr.odd td {
      background: rgb(242, 242, 242);
    upload it to your workspace, and reference it after the theme link in each page template Header:
    <link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_4/css/theme_4_0.css" type="text/css" />
    <link rel="stylesheet" href="#WORKSPACE_IMAGES#theme_4_0_no_alt_row.css" type="text/css" />

  • Interactive report - default number of rows

    I am using APEX 3.1.1 and can not find a way to change the default of 15 for the "number of rows" returned when initially displaying an interactive query. Have I missed something?
    It is certainly easy enough using "Layout and Pagination - Number of Rows" for a non-interactive report region.
    thanks Peter

    Hi Peter,
    In the report definition, there is a section headed Default Report Settings. This shows the instruction:
    To create default report settings, run the report as a developer, modify the settings (like hiding columns, adding filters, etc.), select Save Report from the Actions Menu and then save As Default Report Settings.
    The default row count is one of those settings - make sure you Run the report before saving.
    Andy

  • Download Interactive Report fails with ORA-06502

    I am using:-
    Apex version 4.2.1.00.08
    Oracle DB 11.2
    Apex Listener
    I.E. 8
    I have created an interactive report and when I download the report to CSV I get ORA-06502.  My report contains over 100 columns some of which are blobs so I am hitting the old 32k limit.  Does anyone have a work round for this problem. The ability to download data is a key feature of my application and this really is a show stopper form me.
    Regards...

    The queries are not executed in parallel but in serial. So the total execution time configured will be for all the Select statements in the report combined.
    As for your second question, since the execution is not parallel hence BO will not initiate any error message until the total execution time exceeds the defined limit. This could be during the execution of first select statement or the second.
    Try executing the queries directly in database one by one and see how much time they are taking.
    - Noman Jaffery

  • Downloading interactive report to CSV

    Hi There,
    We are on apex 3.1.2.00.02. I have two questions...
    1. The interactive reports have a - (dash) in the columns with null. So when we download to excel the dash is still there... the user wants null. I can not find where it's been defined to put this dash in the report. Can someone help me figure out how to make this truly null?
    2. When we download the report in a csv format, it automatically opens in Excel (which we want); the tab name in Excel is something like... .csv]daily_bank_definition(1) If we try to rename the tab we get an Excel error about invalid naming format even if the new name is "valid". Is there a way to have the tabname set to what you want? Has anyone else seen this issue and have you been able to get around it?
    Thanks in advance for your help.
    Kristina

    Hi Kristina,
    To remove the dash from null columns you need to go into the Report Attributes and under Pagination you will see 'Show Null Values as '. Just remove the - from there.
    In order to change the tab name to what you want you will have to save the csv file first and remove the [1] from the name. You should then be able to change it.
    Regards
    Paul

  • Download SAP Report in Spreadsheet Format with automatic Save As selection

    Hi All,
    I'm using an Excel sheet that links up to SAP to grab some data off of QE03. Due to the nature of my data, I have to save the data into Excel/Spreadsheet format (aka this button )
    BUT, when you click that button it stops the script for a "Save As" screen, since it isn't a part of SAP. Since I have a macro immediately after the save that cuts the data, I need this to be fully automated and uninterrupted.
    Here is the script I have in excel:
    Dim SapGuiAuto
    Dim Apps
    Dim Connection
    Dim session
    Dim WScript
    Sub Master()
            With Sheets("Graphs")
            Call SAP
            Call QE03
            End With
    End Sub
    Sub SAP()
    If Not IsObject(Apps) Then
       Set SapGuiAuto = GetObject("SAPGUI")
       Set Apps = SapGuiAuto.GetScriptingEngine
    End If
    If Not IsObject(Connection) Then
       Set Connection = Apps.Children(0)
    End If
    If Not IsObject(session) Then
       Set session = Connection.Children(0)
    End If
    If IsObject(WScript) Then
       WScript.ConnectObject session, "on"
       WScript.ConnectObject Application, "on"
    End If
    End Sub
    Sub QE03()
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/tbar[0]/okcd").Text = "/nqe03"
    session.findById("wnd[0]").sendVKey 0
    session.findById("wnd[0]").sendVKey 4
    session.findById("wnd[1]/usr/tabsG_SELONETABSTRIP/tabpTAB005/ssubSUBSCR_PRESEL:SAPLSDH4:0220/sub:SAPLSDH4:0220/ctxtG_SELFLD_TAB-LOW[1,24]").Text = "123456"
    session.findById("wnd[1]/usr/tabsG_SELONETABSTRIP/tabpTAB005/ssubSUBSCR_PRESEL:SAPLSDH4:0220/sub:SAPLSDH4:0220/ctxtG_SELFLD_TAB-LOW[1,24]").SetFocus
    session.findById("wnd[1]/usr/tabsG_SELONETABSTRIP/tabpTAB005/ssubSUBSCR_PRESEL:SAPLSDH4:0220/sub:SAPLSDH4:0220/ctxtG_SELFLD_TAB-LOW[1,24]").caretPosition = 8
    session.findById("wnd[1]").sendVKey 0
    session.findById("wnd[1]/usr/lbl[1,1]").SetFocus
    session.findById("wnd[1]/usr/lbl[1,1]").caretPosition = 8
    session.findById("wnd[1]").sendVKey 2
    session.findById("wnd[1]/usr/lbl[1,3]").SetFocus
    session.findById("wnd[1]/usr/lbl[1,3]").caretPosition = 7
    session.findById("wnd[1]").sendVKey 2
    session.findById("wnd[0]/usr/ctxtQAQEE-VORNR").Text = "1234"
    session.findById("wnd[0]/usr/ctxtQAQEE-VORNR").SetFocus
    session.findById("wnd[0]/usr/ctxtQAQEE-VORNR").caretPosition = 4
    session.findById("wnd[0]").sendVKey 0
    session.findById("wnd[0]/mbar/menu[1]/menu[0]/menu[0]").Select
    session.findById("wnd[0]/tbar[1]/btn[40]").press
    session.findById("wnd[1]/tbar[0]/btn[8]").press
    session.findById("wnd[1]/tbar[0]/btn[37]").press
    End Sub
    I get stuck right at the last line, "session.findById("wnd[1]/tbar[0]/btn[37]").press" which opens the Save As dialog box. I've seen some similar topics around here, but I am honestly not too savvy at scripting and this is an Excel specific model, so does anyone have any advice?

    Hi,
    Why are you trying to use  that button?
    It's much easier to use simple its called "Local file" u can grab it by shortcut CTRL+SHIFT+f9...
    Another option is to use SAP functions:: put "%PC" to command field then enter, and you will get the window with option to save data in excel.
    Please find below some examples to download data to excel:
    'For STANDARD T-CODES like MB52
    'export to excel button
    Session.FindById("wnd[0]/tbar[1]/btn[45]").Press
    Session.FindById("wnd[1]/usr/subSUBSCREEN_STEPLOOP:SAPLSPO5:0150/sub:SAPLSPO5:0150/radSPOPLI-SELFLAG[1,0]").Select
    Session.FindById("wnd[1]/tbar[0]/btn[0]").Press
    Uname = CreateObject("WScript.Network").UserName
    Session.FindById("wnd[1]/usr/ctxtDY_PATH").Text = "C:\Users\" & uname & "\Desktop\"
    Session.FindById("wnd[1]/usr/ctxtDY_FILENAME").Text = "TEMP.xls"
    'rewrite
    Session.FindById("wnd[1]/tbar[0]/btn[11]").Press
    OPTION WITH "%PC"
    'save to TEMP
    session.findById("wnd[0]/tbar[0]/okcd").Text = "%pc"
    session.findById("wnd[0]").sendVKey 0
    session.findById("wnd[1]/usr/subSUBSCREEN_STEPLOOP:SAPLSPO5:0150/sub:SAPLSPO5:0150/radSPOPLI-SELFLAG[1,0]").Select
    session.findById("wnd[1]/tbar[0]/btn[0]").press
    session.findById("wnd[1]/usr/ctxtDY_PATH").Text = "C:\Users\" & Uname & "\Desktop\"
    session.findById("wnd[1]/usr/ctxtDY_FILENAME").Text = "TEMP.xls"
    session.findById("wnd[1]/tbar[0]/btn[11]").press
    Best,

  • Interactive Report Filter - Display Distinct Rows

    Is there a way to display only distinct rows once the filters are applied? Currently in my report, if the user selects only a subset of the columns available, then the rows appear to be duplicates.

    I have the same problem. I have been testing the "Group by" in the latest version of APEX, but it does not meet our needs. The current "Group by" only allows 3 columns. I need to report many columns. The preferred solution would be a "Distinct/Unique Option".
    Andre

  • Interactive report with big b rows /b depending on condition

    Hi,
    I have a table with a column priority and depending on the value the IR should show rows in a big format. In my case when the value of priority is "high".
    id,action,priority
    1,'create tree',middle
    *2,'update row',high*
    3...
    for one column its not a problem:
    &gt; decode(priority,'High','&lt;b&gt;priority&lt;/b&gt;',priority) as priority
    How to do that for the whole row??
    Thanks ahead,
    Tobias

    Hi Denes,
    I looked through your examples but I have the problem that the row values in the IR output are not identificable.
    Created html output:
    &lt;table id="5857911645506917" class="apexir_WORKSHEET_DATA" cellspacing="0" cellpadding="0" border="0" summary="">
    &lt;tbody>
    &lt;tr>
    &lt;/tr>
    &lt;tr class="rule_6267929587470925">
    &lt;/tr>
    &lt;tr>
    &lt;/tr>
    &lt;tr>
    &lt;td>
    &lt;/td>
    &lt;td align="center">3425>&lt;/td>
    &lt;td align="center">02.10.2008 12:05>&lt;/td>
    &lt;td align="left">Printer>&lt;/td>
    &lt;td align="left">High>&lt;/td>
    &lt;td align="center">
    &lt;/td>
    &lt;/tr>
    ...Tobias

Maybe you are looking for

  • Firefox keeps crashing every few minutes. Code: bp-626b02c2-59bb-423d-8ad3-57ac32130220.

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/950862]]</blockquote> I was on Imgur and it kept doing it then a message on my screen popped up from Windows saying something had happened that caused my PC to restart...I j

  • Error while GR against a Purchase Order

    Hi; I need to post stock into QI status after GR for this,In material master Purchasing view i have post to inspection stock activated and the QM view does not exist.and while doing GR against a purchase order using MIGO i am getting a message "stock

  • Duplicates in Tags

    After using the new face recognition features in PSE8 I now have several family members that are duplicates in my tags.  I had them in there with previous versions of elements and now the new elements has re-created some of them.  Only some of them t

  • E7 useless connectivity

    Since my N900 broke, and I sent it to the Nokia Care Centre for repair, they kindly "upgraded" me to a E7. Hunk of junk. Not an upgrade - from a device with an operating system on it which you can easily configure, to something that just doesn't work

  • Problem BW  : DTP lost source system mapping  and new one created?

    I had a little question concerning the BI content activation, when you have to activate objects and there are two source systems, one of them already with a flow working. Do you have to check both source systems in your screen of source system select