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

Similar Messages

  • Interactive Reporting & Imported CSV File

    I have a query that joins an IR result set w/ a CSV file that I've imported into IR. I would like to import a more current version of that CSV file (I can use the same file name each time) without having to update the query, is that possible? I tried importing a CSV file with the same name as a file that was already imported and all IR did was add a 2 to the end of the filename.
    I looked in the Dashboard Studio Optimize Utility and it shows DataModel6 as being the parent of this query; however, I do not see DataModel6 when I'm in the IR Studio.
    Thanks.
    Terri T.

    I did a presentation @ Hyperion Solutions 2005 on this topic.
    I can send you part of the PPT if you drop me a note off line
    Wayne Van Sluys
    TopDown Consulting
    [email protected]

  • Download CSV-File from Interactive Report

    Dear all,
    I want to download a CSV-File from a Interactive report.
    The content of the Rows in Excel:
    Erste,"B","C","D","E","F","G","H","I","J","K","L","M","N","O","P"
    IBC ->,"-","1","2","3","4","5","6","7","8","9","10","11","12","13","14" [...]
    How can I solve this problem?
    Thanks for help.

    Your CSV-File use "comma" as separator. But Excel think, that CSV-File separator is "semicolon".
    Try to set "CSV Separator"=";" in section "Report Attributes" - "Download".

  • BEA 9.2 Portal issue: downloaded CSV file contains embedded html code

    We have J2EE application using BEA 9.2 Portal framework, and one of the page has feature to generate report( in pop up window) in CSV file format. As per the history from previous developer, BEA 8.1 didn't have this issue but, after mirgration to 9.2, they started having file download error( incomplete contents ..). To overcome this issue they commented out setting content length to HttpServletResponse as attached below, but this, now, causes html page source code of the parent page( where submit button is clicked to generate csv file report) being rendered along with actual report in the downloaded CSV file. Has anyone have this sort of issue? If so, can you please share your thoughts? or any thoughts in general?
    BEA 9.2 with Portal framework, JDK 15, JSP, Beehive NetUI, Sun Microsystem Solaris server
    Here is the source code that avoids setting content length and reasoning behind it..
    private static void setResponseHeadersForCSVFile(HttpServletResponse response, String filename, int contentLength)
    String mimeType = mimeTypes.getContentType(filename);
    response.reset();
    response.setContentType(mimeType);
    // DON'T explicitly set the content length, since the length of the String or StringBuffer that contains
    // the contents of the CSV file will be character encoded when it is actually written to the output stream, based
    // upon the character encoding of this JVM App Server's settings. So let the JVM App Server framework apply the character
    // encoding AND set the final and truly correct content length header at the time the contents of the String or StringBuffer are truly
    // streamed back to the user.
    //response.setContentLength(contentLength);
    response.addHeader("Content-Disposition", "attachment; filename=\"" + filename + "\"; size=" + contentLength);
    }

    1) Yes, the old content.tld is available as part of a web library module as a taglib.tld file. The module is: wlp-services-web-lib.war, which can be found in your bea/weblogic92/portal/lib/modules directory.
    2) The new API is accessible from the ContentManagerFactory class. This provides access to INodeManager, ITypeManager, ISearchManager, etc. The new API is contained within the com.bea.content.federated package. The 8.1.x API in the com.bea.content.manager package including RepositoryManager, NodeOps, SearchOps, etc. has been deprecated with 9.2.
    3) Yes, via the new I*Manager implementations. The entitlement support is for application-scoped visitor roles. Make sure you're using the ISearchManager when performing search operations. This will ensure secure results are returned.

  • Download csv file with strange file name.

    hi, guys:
    We installed Oracle APEX 4.2, and APEX listener 2.0 and Oracle 11g standard edition for our application. But sometimes when user tried to download csv file from an interactive report, the file name was a very strange one, sometimes even no .csv extension. could anyone give me a hint to find documentation about it?
    Thanks.
    Sam

    lxiscas wrote:
    a little more information about it:
    I found the file name is "&P16_DIP_START_DATE NOA", which we expect to generate a file named as " some date NOA.csv", but APEX does not recognize the value of variable. For example, if teh value of P16_DIP_START_DATE is 11/15/2012, we expect the file name as "11/15/2012 NOA.csv", but APEX will give us very strange file name replaceing every "/" with / I appreciate anyone who could help me on this issue. But We did not encounter this [roblem on APEX 4.1, OC4J and Oracle 11g R2 enterprise.
    Thanks.
    I just used to_char to output date without "/" and soleved it. The other way is to set application property-->security-->browser security with basic level. This only applies to APEX 4.2. I am lucky for that I am using Apex 4.2.
    Sam
    Edited by: lxiscas on Jan 14, 2013 10:08 AM
    Edited by: lxiscas on Jan 14, 2013 10:10 AM
    Edited by: lxiscas on Jan 14, 2013 10:20 AM
    Edited by: lxiscas on Jan 14, 2013 1:36 PM
    Edited by: lxiscas on Jan 21, 2013 6:50 AM
    Edited by: lxiscas on Jan 21, 2013 6:52 AM
    I can has editing?Suspect you are trying to explain that "/"s are being rendered as <tt>&amp;#x2F</tt>? If you want to include character entities in forum posts then you have to type the ampersand ("&amp;") as an entity itself, thus: <tt>&amp;amp;#x2F</tt>.Windows or *NIX filenames can't contain "/"s anyway, so you can't use them regardless of how APEX is rendering them. Using a <tt>YYYYMMDD</tt> format is also recommended as it follows date order when using character comparison semantics.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Apex 3.0: export a report as .csv file without any Enclosed By character?

    In Apex "Report Attributes page/Report Export" is possible to define the Enclosed By field.
    The default Enclosed By by characters are a double quotation marks (" ").
    Is there a way to export the report as .csv file without any Enclosed By character?
    Example line format:
    a) using default Enclosed By
    "value1";"value2";"value3"
    b) using ('') as Enclosed By
    'value1';'value2';'value3'
    c) using blank space as Enclosed By
    value1 ; value2 ; value
    d) without any Enclosed By character
    value1;value2;value3
    What can we do in Apex to export a report as .csv file with the line format example d)?
    Thanks for your help.

    Hi,
    There is no Out of the box feature in Apex to achieve this functionality. But what you can do is write a page process to generate the CSV that you want.
    For this what I will do is on the first page where you press the Button it will call a PL/SQL page process which actually generates the csv. You can keep the existing report only for display purposes. Find the below process which generate the csv that you require.
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="filename.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.prn('columnHeader1,ColumnHeader2,ColumnHeader3'||chr(13));
    -- Loop through all rows
    for x in (
    Select column1,column2,column3 from table;
    loop
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(x."column1"||','||x."column2"||','||x."column3"||chr(13));
    end loop;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true; --You can leave out this line if you still want to display the existing HTML report.
    end;
    This will show a download box, so you can download the csv file. The page process should be called before header and the condition should be the button press.

  • Downloading csv file does not ask for where to store file

    Firefox is set to "Always ask me where to save files".
    I have a WebService from which to download a download.csv file via a POST request (must be a POST request and not a GET request due to data issues).
    I'm using jquery.fileDownload.js in the Website to achieve this. When pressing the download button, the screen 'Opening download.csv' opens with the option 'Save File' preset. After pressing OK, an explorer window should occur to be able to choose the file location. But it is NOT shown. Instead nothing more happens.
    What could be the problem?
    P.S.: in other browsers it works fine.

    Hello gnittala,
    thanks for your response.
    1. MIME type is set correctly.
    2. When using this config, the file is downloaded correctly.
    Now I found out, what was the problem:
    the jquery.fileDownload.js plugin was deleting the internally used iframe too early, so that the explorer window could not be displayed. Keeping the iframe longer (at least until explorer window is shown, or easier reuse it in next download call) solves the problem.
    Astridr

  • FLOW_EXCEL_OUTPUT_R error in the downloaded csv file

    Hello,
    I'm trying to use the functionality of the FLOW_EXCEL_OUTPUT_R as follows:
    href="f?p=&APP_ID.:14:&SESSION.:FLOW_EXCEL_OUTPUT_R&P_REGION_ID._en"
    Where the computation for P_REGION_ID is:
    SELECT region_id  FROM apex_application_page_regions
    WHERE        application_id = :app_id
    AND page_id = :app_page_id
    AND region_name = 'CSV export'
    In the downloaded CSV file i get the following:
    - the first row: +<||div id="report_33994800669487811_catch">+
    - the last 2 row: +<||pre>report error:+
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error<||/pre>
    (|| - sign is so I can show the tags in the post)
    The rest of the data is downloaded ok.
    But still how can i get rid of these errors?
    Thanks,
    Adela

    It seems that the problem was caused by the "_en" termination (FLOW_EXCEL_OUTPUT_R&P_REGION_ID.*_en*).
    But is there any way to get rid of the <||div id="report_33994800669487811_catch"> <||/div> tags from the begining, respective the end of the CSV file ?
    Thanks,
    Adela

  • When Export ssrs Report to CSV file runtime filters not working

    The Runtime Filters not working when Export SSRS Report to CSV format

    Hi PatilPriti,
    As for my understanding, the filter worked fine when you preview the report,
    but it did not work when you export the report to CSV format. I tried to export the report to CSV file on my side, and the data was shown as expected. I guess the issue is due to the parameter or filter. please try to export to Excel format to test again
    and make sure you created the filter correctly. Please refer to the following
    blog about how to add a filter in SSRS:
    http://arcanecode.com/2010/07/12/adding-filter-parameters-to-sql-server-2008-reporting-services-reports/
    If the problem is not resolved, i would appreciate it if you could give us
    detailed description of your problem.
    It’s better to provide the table structure and some sample data, it will help us move more quickly toward a solution.
    Thanks, 
    Wendy Fu

  • Problem in getting .csv file as output

    Hi All,
    I am using ws_download function module to get .csv file as output . i am getting space between output values.But i want to get comma instead of space.
    i am working on 4.6b version but in this version there no write filed separator field in gui_download function module.
    Please suggest me  the follow up
    Regards
    Sudhakar.

    use field-symbol and do sth like this
    data str type string.
    loop at itab.
    do.
    assign component sy-index of table itab to <F>.
    concatenate str  <f> ';' into str.
    enddo.
    endloop.
    hope taht helps
    Andreas

  • I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Oracle APEX 4.0  -  Interactive Report - Table Column Filter Issue

    Environment: Oracle APEX 4.0  -  Interactive Report - Table Column header Filter Issue
    We have developed an interactive report using Oracle APEX 4.0, which contains a record count of around 3,000 Rows. All the rows values are unique in nature. When we try to filter the same with the help of column header filter option available in the interactive report,We get only 1000 records.
    Could some one help us, why this behaviour under APEX Table Column Header Filter as if it does not display beyond 1000 distinct values.
    Is there a way or workaround on how to get all the records in the column header filter?
    Thanks in advance.
    Krish

    Hi
    Thanks for the advice and this issue has been moved to the below URL
    Oracle APEX 4.0 - Interactive Report - Table Column Filter Issue Posted: No
    Krish

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

  • 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

  • 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

Maybe you are looking for

  • Context Operators

    Hi, What are context operators and where should we use?   Thanks in Advance

  • Change PO value

    Hi gurus, We are in SRM 5.0,ECC6.0. I have created a custom field in the shopping cart which will be populated with a reference purchase order number.I have also implemented the check_badi to validate the custom field. We have a requirement now where

  • Limit on number of XML files used ?

    Hi, Am user of 4.5 workgroup since 2 years and am recently also testing our models on engage2008.  We make datadashboards with sometimes large datasets (25 column, 10000rows in excel), sometimes using XML sometimes all contained. Is there a limit on

  • How to deliver MM02 to user with only Bin Location editable.

    My user wishes to have access to change only the Bin Location field in MM02. How can we achieve this? or in other words how can we deliver MM02 to user with only the Bin Location field editable. My basis guy sees a possibility if we can some how prov

  • Will the Web Page Composer meet the blogging need?

    Hi all (especially SAP-people) My question is rather simple: Will the Web Page Composer meet the blogging need? As I can understand blogging features should come with the Web Page Composer unrestricted shipment from Ultimo September/Primo October. Is