Interactive Report - Download as csv

Hi,
I am using apex 4.0.2.00.07 on IE8 with theme Traditional Blue. I have a problem with the inbuild download functionality of an interactive report. One field is of type varchar2 and I allow line breaks in the underlying edit screen.
I simply do not find a way to handle this formatting in the export to csv. The data is always completely shredded. An example:
Input form:
Name (text field):
Bob
Address (text area):
Street(<linebreak>)
City
IReport SQL: select NAME, ADDRESS from USERS
In the IR form it will show as
Name || Address
Bob || Street City
An export to csv will make this to
Name,"Address"
Bob,"Street
City"
I have tried all settings of the report attribute 'Display Type' for field Address, but it will always be the same in the IR and always the same in the export. How do I ensure that the whole content of a table field is displayed as one value in the csv, with no regards to potentially present field formatting, e.g. in my case:
Name,"Address"
Bob,"Street City"
And if we are already at it: I have seen that some plugins for an export to excel exist. Would that recognise the formatted text and place it in one cell or would I face the same issue here, i.e. the field value being split over several cells?
Thanks a lot,
Martin

Well, found some answers after some more trial and error.
1.) Country settings messed up my csv format. After changing the default column separator in the report attributes, things now look as expected.
2.) One can rather easily suppress the format signs by using the sql replace functionality, e.g.
SELECT REPLACE (my_column, CHR(10),' ') FROM my_table
And it is actually quite a difference if you use text area or rich text fields when it comes to the usage of the breaks.
Cheers,
Martin

Similar Messages

  • Interactive Report Download to CSV limit is 65535 in APEX 3.2

    Hello ,
    I have an IR report in APEX 3.2 that returns around 75,000 rows . I have set the maximum row count in the report attributes under Pagination to 200,000 rows.
    Despite this when I download the report to CSV, only 65535 rows are downloaded .
    Is this a known bug with APEX 3.2 ? can someone please share the link if this bug is documented.
    If not, Is there some other attribute I need to change to increase the download limit ?
    Thanks,
    Dippy
    Edited by: Dippy on Jan 7, 2011 1:59 PM

    Hi Tony,
    Thanks for the reply . I have adjusted maximum row count to 100,000, even then I can download only 65535 .
    I have around 12-15 Interactive Reports(each with different Query) and I do not want to write a custom download procedure for each report and also the application is in production.
    I just want to understand(confirm) if it is a existing bug (3.2) , if there is any patch that will solve this or if there is a setting somewhere that I have missed.
    Can you please check with some other query on your 3.2 installation ?
    I ran a test on
    select rownum
    from all_objects where rownum < = 80000Norma report I was able to download all the rows but IR stopped at 65535
    Thanks,
    Dippy
    Edited by: Dippy on Jan 10, 2011 11:33 AM

  • Interactive Report Download to csv problem

    Hi,
    I have 2 applications. Both in the same workspace, same APEX version. Within those applications I have Interactive Reports.
    When I use the download to CSV (IR) in the first application I get all the available data in my CSV. It ignores the filters that are applied!
    The second application does not have this problem. If I have an IR with 10000 rows and I apply a filter to select only a 100 rows and I download, I get my 100 rows in csv.
    It's suppose to work as I describe for the second application. I want to download the rows with the filter applied. What could cause this??

    I had an similar issue.  Found out submitting the CSV action was nulling out my filter as viewed in session state.  the page item I was using needed to have the SOURCE changed from "Always replace..." to "Only when NULL..."  This fixed the Download issue.

  • Interactive Report Download and Session State Protection

    I have created an Interactive Report in an APEX application that I have enabled
    session state protection for. The issue I am having is with the "Download"
    functionality of the interactive report to a .csv file.
    The URL created by selecting Download from the drop down (javascript:gReport.controls.download();)
    is built or constructed without a checksum thus causing the error below.
    Error
    No checksum was provided to show processing for a page that
    requires a checksum when one or more request, clear cache, or argument
    values are passed as parameters.
    The anchor tag containing the URL (/f?p=app_id:page:session_id:CSV:) is contained within
    &lt;div id="apexir_CONTROL_PANEL_DROP" class="drop_panel
    clearfix" style=""&gt;
    Running the following: Application Express 3.1.0.00.32 on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Is there a way to add a checksum to this? OR does anyone have any ideas on how to work around this?
    Edited by: Bryce Tuohy on Feb 26, 2009 10:08 AM

    WORKAROUND:
    1.) Create hidden ITEM on page (I named it P23_PREPARED_CSV_DOWNLOAD_URL).
    Enter the following for the ITEM
    as the SOURCE_TYPE : PL/SQL Function Body
    as the SOURCE: return apex_util.prepare_url('f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.:CSV:')
    2.) Create BUTTON that executes javascript to open POPUP window with this url.
    a.) Create Button and enter
    &lt;a href="javascript:popupURL('&P23_PREPARED_CSV_DOWNLOAD_URL.')"&gt;Download and Save to CSV file&lt;/a&gt;as the "Text Label/Alt"
    Originally had custom code for javascript POPUP and this is not needed .... just use the APEX javascript function.
    Edited by: Bryce Tuohy on Mar 5, 2009 10:47 AM

  • Interactive Report Download CSV file Issue (output includes separator BR)

    Hi,
    I have a Interactive Report and displaying the column values (multiple values in same ROW) as mentioned below.
    SQL Query
      select deptno,
           function1(empno) empno
      from emp
    IR Output
    Dept       Employee No
    10         AAA,BBB,CCC, ...    // -  Row 1
    20         XXX,YYY,ZZZ, ...    // -  Row 2 Now I want to display each employee in a new Line, so modified the SQL Query
    Modified SQL Query
      select deptno,
           REPLACE(function1(empno),',','<br>') empno
      from emp
    New IR Output
    Dept       Employee No
    10         AAA
               BBB
               CCC
               ...    // -  Row 1
    20         XXX
               YYY
               ZZZ
                ...    // -  Row 2 SO, Interactive Report Out put looks fine and that's the way we want.
    But the problem is when I download the Report in CSV or in PDF using the Action Menu -> Download..
    I am getting break line B R in the output, and also I have two different output in CSV for two different column. [Logic is same for both the columns.]
    CSV output1
    Employee No
      AAA<br>BBB<br>CCC
      XXX<br>YYY<br>ZZZI have other columns also with multiple values...for that column, I am getting the following CSV output
    CSV output2
    City List
      1111<br>
      2222<br>
      3333<br>So, in CSV for one column, I am getting all the values in same line with the seperator B R (Output1)
    for other column, I am getting values in new line with the separator B R. (Output2)
    Is there a way to FIX this CSV or PDF output for Interactive Report.
    I DON'T WANT THE SEPARATOR BR in CSV and also the values should always be in New Line.
    I want to have the following Output in CSV
    Employee No
      AAA
      BBB
      CCCThanks,
    Deepak
    Edited by: Deepak_J on Feb 24, 2010 11:45 AM
    Edited by: Deepak_J on Feb 24, 2010 11:46 AM
    Edited by: Deepak_J on Feb 24, 2010 11:48 AM

    Thanks.. Jari.. for the quick response.
    I updated my SQL query with Chr(10) and added the code in Page HTML header.
    Now the CSV & PDF output are fine..getting each individual value in seperate line (no BR tag)
    BUT in the Interactive Report Output, I am now getting first 2 values in 1 line, then next value in next line, and so on..
    IR Output
    Employee
      AAA BBB
      CCCCCCC
      DDDDDI have few more issues with CSV & PDF output
    1. In PDF is there a way to increase the column width, as for some of the columns, the values are getting truncated.
    2. For some of the columns in IR Report, I have user BR tag in Column Heading and this also come in CSV output (column heading with BR tag), is there a way to fix this. In PDF Column headings are fine (no BR tag)
    and by the way..what exactly this does.
    <style type="text/css">
    .apexir_WORKSHEET_DATA td{white-space:pre;word-wrap: break-word}
    </style>Thanks,
    Deepak
    Edited by: Deepak_J on Feb 24, 2010 12:20 PM
    Edited by: Deepak_J on Feb 24, 2010 12:21 PM

  • Interactive Reports Download In Colour format in html and csv

    Hi All I want to download interactive report in colour format(as it is format) in html and csv using apex 4.0.2
    Regards
    Robert

    http://en.wikipedia.org/wiki/Comma-separated_values
    A comma-separated values (CSV) file stores tabular data (numbers and text) in plain-text form. As a result, such a file is easily human-readable (e.g., in a text editor).re: colours of html output
    interestingly, there are settings in print attributes, but they have no bearing on the output... obviously nothing to do with the html output. Probably best bet is BI Publisher, where you can define your own report templates.

  • Strip Tags From Interactive Report Download.

    Hi,
    Is it possible to strip html tags from a column during a CSV download on a interactive report?
    Basically i have a report where one of the columns is as follows
    453<font color="red"> | </font>0
    but in the download i want to strip out the tags so in the csv the column would show
    453 | 0
    Any ideas how i can do this using the standard csv download from the drop down menu?
    Thanks Andy

    Just wondering if any one had any thoughts on how I may be able to do this

  • Interactive Report - Download as xls giving empty report

    Hi,
    I have an interactive report where i have enabled all the available download formats from report attributes. Now, when I go to Actions -> Download  and select format as .csv, html, email, then it works fine. But when I select download format as XLS/PDF then the downloaded file is an empty file (size 0 Bytes). This issue is coming with/without applying filters.
    Any idea how to resolve it?
    PS: I am using APEX version 4.2

    Do you have a print in place?  Fop/BI Publisher are required to create other report type downloads (csv comes standard with APEX)..
    The APEX Listener will replace FOP in producing PDF output..
    Marc Sewtz: PDF Printing with Oracle Application Express 4.2.2
    Thank you,
    Tony Miller
    SmartDog Services
    Austin, Texas

  • IR Saved Report  - Download to CSV downloads Primary Report

    Hi there
    I'm using Apex 4.1, I login to my Apex application NOT using the developer interface (the developer buttons are not visable at the base of the page) as an end user would see.
    If I run an IR report and then create a filter on the Primary report the report runs OK. I then click Actions -> Download and then Download the report output to a CSV file (correctly filtered) to a Excel spreadsheet. I then Save this report giving the report a Name and Description. I then logoff from the Apex application. So far so good.
    I then login back on to my Apex Application. When I choose and run the Saved Report (described above - not the Primary report) the saved report runs correctly (applying the correct filter condition), HOWEVER when I then click on Actions - Download I seem to get the Primary report downloaded as a CSV file into my Excel spreadsheet - the filter condition that is applied to the saved rerport is ignored for the Downloaded CSV file. The File Downloaded is a new CSV file generated in Apex as reported in my Firefox 'Downloads' list.
    Does anyone know if this is a Bug or have I not set up the IR correctly.
    Thanks in Advance
    Edited by: boketi on Aug 13, 2012 3:18 PM

    boketi wrote:
    Hi Mehabub,
    Many thanks for the quick response.
    Did you test this in version 4.1 of Apex? I logged on to Oracle's 4.2 Early Adopter Beta Site and did the same and the IR works fine! Maybe it's a strange problem in 4.1 although I doubt it as with such a problem there would be a lot more noise on this forum. Could this be related to the 'theme' that I'm using? As the theme I'm using was origionally developed for Apex 3.2 and I don't think IR reports were around in 3.2?There is a good chance that it has to do with the theme or the upgrade from Apex 3.2. Interactive reports existed in 3.2 also user defined reports. But a lot of changes were made to the IR logic since 3.2 (introduction of multple standard reports, etc.).
    I just tested your case in my Apex 4.1.1 version in an application that was also upgraded from 3.2. And the data was stored correctly into a csv file.
    But it is useing one of the standard themes that was also updated.
    Did you set the compatibility mode of your application to 4.1?
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#AEAPI2329
    begin
       apex_util.set_compatibility_mode(<application id>, '4.1');
       commit;
    end; Just because the environment is Apex 4.1 does not mean you application runs in 4.1. mode.

  • Interactive Report Download - filenames always in lower case

    I've written an interactive report in Apex v4.0.2 and have set the CSV download option to use a filename of "One_Two_Three" (note the capitalization).
    However when the CSV file is generated, the filename is "one_two_three" - all in lower case. I've tried using substitution variables in the filename and this doesn't make any difference.
    Is there a way to stop conversion to lowercase ? Is it possible to intercept or override something to allow even greater control the filename ?
    thanks
    Andy

    Well, found some answers after some more trial and error.
    1.) Country settings messed up my csv format. After changing the default column separator in the report attributes, things now look as expected.
    2.) One can rather easily suppress the format signs by using the sql replace functionality, e.g.
    SELECT REPLACE (my_column, CHR(10),' ') FROM my_table
    And it is actually quite a difference if you use text area or rich text fields when it comes to the usage of the breaks.
    Cheers,
    Martin

  • Interactive Report download not matching displayed data

    Hi
    I have an interactive report with a simple where clause in:
    select * from table etc
    where a.entry_date > :P2_DATE
    P2_DATE is a select list with redirect, with 2 options. Selecting the first option (the default) should return ~200 rows, the second should return ~800 rows. This functionality works correctly in the interactive report display, however the download to csv option only ever exports the ~200 rows - as if the IR download is fixed to the original query results. I'm using version 3.1.2.00.02.
    Is this a known bug?
    Thanks
    -Marc

    Hi
    Have you tried changing it to a Select List with Submit?
    Typically, this sort of behaviour means that the value selected from the list is not being stored in the session, so the report does not know that value - only the preivious value.
    Also, how are you setting the default? I tend to do this using a page computation (conditional on the item being null)
    Andy

  • Interactive Report Download Options

    I am running APEX 3.2 on Fedora. I was going thru some of the interactive report tutorial samples available online. It seems that under the Report Attribute there are only 2 of the 4 download options available namely csv and pdf formats. From the tutorial instructions I had expected to see CSV, XLS, PDF, RTF formats? Please note I do have admin rights to the workspace and the only two checkbox options presented are CSV and PDF.
    How can I enable support for excel (xls)? - wanted to add the other checkbox option for XLS
    Also is there an download limit to the number of rows when downloading either csv or xls formats?
    Thanks
    bob

    To download PDF/Excel, RTF style files you need to install a print server. For limited PDF's you can use Cocoon/FOP with a Tomcat server. For more advanced PDF's, Excel and RTF files you need to install BI Publisher. It is NOT free..
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    Thank you,
    Tony Miller
    Webster, TX

  • Remove HTML from Interactive report download

    I have interactive reports where the column link on a specific column has to be dynamic, that means, it cannot be hard coded in the column link attributes. The following is an example of one such report query:
    case when d.object_type_description ='Business Service' then
    '< href="f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    when d.object_type_description = 'Real Time Event' then
    '< href="f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    else
       null
    end as "OBJECT NAME"As you see in the above example, the link on the "Object Name" column could either redirect to page 183 or to page 162 based on the "Object Type Description" column.
    The column attribute of the "Object Name" column has "Display Type" set to "Standard Report Column". That works perfectly fine in the UI of the report. However, if I download the IR data (in any format) from the Actions -> Download menu, the object name column values are downloaded with the HTML characters as:
    < href="f?p=15548:183:6072319179284::::P183_OBJECT_ID:255245470513999672860510787772603748464">JP010000</>where JP010000 is the object name.
    Is there a way I can strip the HTML from the column values in the downloaded files?
    I am using Apex 4.1.

    Rohit,
    You can define the link in the query, make it hidden, use the value as column link URL. So, your query will look like the following:
    d.object_name,
    case when d.object_type_description ='Business Service' then
        'f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id
    when d.object_type_description = 'Real Time Event' then
        'f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id
    else
       null
    end linkChange the display type of LINK column to Hidden. In column link, enter #OBJECT_NAME# as Link Text. Select URL as Target. Enter #LINK# as URL value. In APEX 4.2, you can do this in easier way by defining HTML Column Expression.
    Regards,
    Christina
    Edited by: cbcho on Sep 27, 2012 11:35 AM

  • Interactive Report Downloads only showing Column Headings

    I have an Interactive Report that is selecting more than 100 columns. I set the defulat to only show a few of the columns (the rest are dedaulted to not show). When I try the download option (pdf, rtf etc.) , it only shows the column headers (no data). The download works when you originally create the Report region with the SQL statement. It seems to break as soon as you do the 'Save Report' - 'As default Report Settings'. Anybody seen this before? It is a bug?

    Hi,
    You are almost right place. You need click icon before 100th column name, order to go screen where you can edit column attributes.
    In that screen right top is buttons (Cancle, Apply, < and >)
    Regards,
    Jari
    Edited by: jarola on Jul 21, 2011 5:43 PM
    It might documentation guides you to right screen
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref978
    >
    To access Column Attributes:
    1. On the Workspace home page, click the Application Builder icon.
    2. Select the application.
    3. Select a page. The Page Definition appears.
    4. Under Regions, click Interactive Report next to the name of the report region you want to edit.
    The Interactive Report Attributes page appears with the Column Attributes section at the top of the page.
    5. To access the Column Attributes page, click the Edit icon next to the appropriate column Alias.
    >
    Edited by: jarola on Jul 21, 2011 5:44 PM

  • Interactive Report Download Link Question

    I have an interactive report where I have outer joined to a table that contain blobs that I want the user to be able to click a link to download. I have a custom procedure that works with the download link. However I can't figure out how to get the download link to only appear for the records that actually have a file (since it is outer joined, only some of the records have a blob file associated with them).
    Click this link to see a screenshot of the report example.
    The existing column with the download link was created as a column link, where I specify the url (to my custom download proc). The problem as you can see is that it puts the download link in that column for every row, whether there really is a file to download or not. I'd rather only have a download link where there is a file to download for that record (see the My File column).
    Thanks in advance for any help on this.

    HOT TIP
    If you are passing parameters into your download procedure in the URL then the users will be able to hack the URL and download information they shouldn't be able to. More worrying, if you have granted execute to public (which I think you have to) on the Procedure then information can be downloaded without the user being authenticated.
    The solution is to have a page in the application with an On Load - Before Header process that calls the procedure, with some hidden items as parameters for the procedure. You can then evoke the procedure by branching to the page in the usual way and setting the page items in the URL. This will also allow you to add the additional Apex security features such as Session State Protection (Page requires a Checksum). Remember to revoke the execute privileges from Public.
    Change the report link to:
    SELECT some_columns,
      NVL2(my_file,'Download',null) link
    FROM your_table Then use the 'column link' region to create the link in the usual way and set the Link Text to #LINK#. If you have set the target page to require a Checksum this will then be added without having to code it into your sql.
    I hope that makes some sense?
    Shunt

Maybe you are looking for

  • Bug in java.awt.geom.Line2D?

    The method, public static double ptLineDistSq(double X1,                                   double Y1,                                   double X2,                                   double Y2,                                   double PX,              

  • Should I repair permissions before or after updating to Mac OS X 10.7.2?

    Hi, Should I repair permissions before or after updating to Mac OS X 10.7.2? or should I fix permissions before and after the update?

  • Purchased Items can't be recovered.

    My laptop crashed and had to be re-formated, so I lost all my purchases on Itunes. However, when I reload itunes I can see in my purchase history all the records I previously downloaded, but I can't seem to get them recovered! Any ideas on how this c

  • ITunes on macbook pro - resetting music file path when not on my network

    Hi there! I suspect I know the answer to this already, but I hope I'm wrong! :-D I have my macbook a while now, but I've only recently started using iTunes properly. I have a home network, which consists of my macbook pro, a dell laptop running XP, a

  • Restrict specific tables from SE16/SE11

    Dear Experts, We have a requirement of lock from view of some specific tables in SE16/SE11. Please provide the solution. Regards Shishir