Download to .csv

Hi Gurus,
Is there any possible way where i can ask the CRM on Demand to download the .csv output on a particular system or on a location of our own choice.
Regards,
Ravi R

Hello,
This can be done using webservices. We can develop a batch, which will get the .csv file from a particulare location and then store in OnDemand Object (Account, contact,...)
Hope this helps.
Regards,
Som

Similar Messages

  • How to download a csv/excel file stored in a server using OA Framwork

    Hi All,
    We have a requirement where we have to generate a CSV file using PL/SQL block and the user shoul download that csv file to his client machine whenever it requirs to him. We have generated csv file and save the same in a particular location in the server. As the CSV file size may be around 10 to 15 MB we feel the storing and retrieving of the csv file in a BLOB object is a performance hit. Now we want to dowload the file from the csv file path without storing the csv file into database BLOB object.
    Is this possible using OA framwork? if so please guide me how to do this.
    Thanks in advance.
    Regards,
    Sathesh.

    If u know following details you can use below method to download any file ( XLS/any) its generic method I have used in one of my project-
    1. File Name with Extension
    2. File path at which it has been placed
    3. Page Context (you must know i assume)
    public void DownloadFileFromServer(OAPageContext pgeContext, String file_name_with_path,
    String file_name_with_ext)
    System.out.println("Filename path "+file_name_with_path + "File Name:" + file_name_with_ext);
    HttpServletResponse responseVar = (HttpServletResponse)pageContext.getRenderingContext().getServletResponse();
    if (((file_name_with_path == null) || ("".equals(file_name_with_path))))
    System.out.println("File path is invalid.");
    File fileToDwnld = null;
    try
    fileToDwnld = new File(file_name_with_path);
    catch (Exception e)
    System.out.println("Invalid File Path or file does not exist.");
    if (!fileToDwnld.exists())
    System.out.println("File does not exist.");
    if (!fileToDwnld.canRead())
    System.out.println("Not Able to read the file.");
    String MADfileType = getMADMimeType(file_name_with_ext);
    System.out.println("File Type - " + MADfileType);
    responseVar.setContentType(MADfileType);
    responseVar.setContentLength((int)fileToDwnld.length());
    System.out.println("File Size is " + fileToDwnld.length());
    responseVar.setHeader("Content-Disposition", "attachment; filename=\"" + file_name_with_ext + "\"");
    InputStream inStr = null;
    ServletOutputStream outStr = null;
    try
    outStr = responseVar.getOutputStream();
    inStr = new BufferedInputStream(new FileInputStream(fileToDwnld));
    int ch;
    while ((ch = inStr.read()) != -1)
    outStr.write(ch);
    catch (IOException e)
    e.printStackTrace();
    finally
    try
    outStr.flush();
    outStr.close();
    if (inStr != null)
    inStr.close();
    catch (Exception e)
    e.printStackTrace();
    Edited by: aprak on Oct 18, 2011 1:08 AM
    Edited by: aprak on Oct 18, 2011 1:09 AM

  • How to get fixed field length when download a CSV  file ?

    hi all ,
        I had downloaded a CSV file from an ALV list which created by myself. the current layout of the CSV file is :
    aaa;bbbbbbbbbb;cc;                
                                                         for example . but what i want is :
    aaa         ;bbbbbbbbbbb            ;cc     ; 
    it means these three fields are all with fixed length don't ommitting spaces when you preview the CSV file. how should i do this ?
    best regards
    Kevin

    i got the solution.

  • Download to CSV problem in APEX report

    Greetings,
    I have a report that retrieves a lot of rows from the database, I have set the Mx Row Count to 25000. When the user tries to click on the download to csv link, it just works for a while and times out.
    The other problem in this is that the report itself is taking a long time to run.
    Any suggestions on improving the performance and solve the above mentioned problem will be greatly appreciated.
    Thanks
    Vatsa

    select b.KB_SUITE_NAME SUITE, a.KB_TEST_CASE_NAME TESTCASE, b.kb_test_phase PHASE, a.KB_TEST_CASE_DESCRIPTION, a.KB_TEST_CASE_AUTHOR AUTHOR,
    get_feature_from_ddts(b.KB_SUITE_FEATURE) FEATURE,
    c.REQ_NAME TAG, e.REQ_DESC
    from KB_TEST_CASE a, KB_SUITE b, KB_TC_REQ c, KB_TC_SUITE d, KB_REQUIREMENTS e
    where a.KB_TEST_CASE_ID = d.KB_TEST_CASE_ID and
    a.KB_TEST_CASE_ID = c.KB_TEST_CASE_ID and
    d.KB_SUITE_ID = b.KB_SUITE_ID and
    c.req_name = e.req_name and
    b.proj_id = :p3_proj
    It's a very simple query.. the same query runs in less than 2 seconds on SQL Navigator.. but when I run it from APEX it takes like 5 minutes.

  • Downloading a .csv file as excel sheet

    hi,
    does anyone know how to ensure that when downloading a csv file, it will be opened with excel only. The browser is downloading it as a text file and not excel. how can this be prevented.
    please let me know if you have any ideas since i've been pondering over it for far too long and need help...
    thanks
    jeena

    Yes, you need to set the content type to "application/vnd.ms-excel". Of course there is no guarantee that your clients will interpret that to mean "Open with Excel", or that they will even have Excel installed on their system, but there's not much you can do about that.

  • Query - Download as CSV file

    Hi,
    By using Query (SQ01), we are able to download data in Excel format, Text format, etc. But... is there an option that I can download in CSV format.
    Thanks.....
    Rgds,
    Kian

    Hi Kian,
    you could save the Excel file in CSV format, couldn't you?
    Regards
    Bernd

  • When downloading a .csv file in Safari, it adds .xls, making the file filename.cvs.xls

    When downloading a .csv file in Safari, it adds .xls, making the file filename.cvs.xls
    If I rename the file, it opens just fine, if I don't it opens all in one column.
    I had found a fix on my old macbook, but just got a new MBP and it's happening again.
    Can't remember or find where the fix is.
    Thanks!

    Safari: Downloaded file's filename may have an additional extension
    http://support.apple.com/kb/TA24293
    That's from June 11, 2007!
    Working from my defective memory, this happened to me, but stopped if I unchecked 'Open safe files after downloading' in Safari Preferences/General.
    At least I think that's how I stopped it - it hasn't happened since!

  • Letting users download a CSV file

    I need to add a link to some html code generated by a servlet that will allow users to download a csv file. The problem is that the only other link I have seen function like that was in a static html page and it simply used a href tag to identify the csv file and the user was automatically asked whether to open it or save it to their PC. When I use such a link in the servlet, the servlet displays the contents of the file in a browser window instead of giving the user the option to save it to their PC. Can someone please help me?

    Are you generating the CSV file with a servlet? If so, try this:
    response.setContentType("text/x-csv");
    response.setHeader("Content-disposition", "inline;filename=MyOutputFile.csv");

  • Download to CSV - times Out

    Error Message : No Response from Application Web Server
    I get the time out message as stated above when Download the CSV File from APEX application. The Report has 48000 Records in it. the reports does not have any Joins in it. It is as Simple as Select * from table_name.
    Is there any Restrictions on number of data that can be downloaded to the CSV report ?

    select b.KB_SUITE_NAME SUITE, a.KB_TEST_CASE_NAME TESTCASE, b.kb_test_phase PHASE, a.KB_TEST_CASE_DESCRIPTION, a.KB_TEST_CASE_AUTHOR AUTHOR,
    get_feature_from_ddts(b.KB_SUITE_FEATURE) FEATURE,
    c.REQ_NAME TAG, e.REQ_DESC
    from KB_TEST_CASE a, KB_SUITE b, KB_TC_REQ c, KB_TC_SUITE d, KB_REQUIREMENTS e
    where a.KB_TEST_CASE_ID = d.KB_TEST_CASE_ID and
    a.KB_TEST_CASE_ID = c.KB_TEST_CASE_ID and
    d.KB_SUITE_ID = b.KB_SUITE_ID and
    c.req_name = e.req_name and
    b.proj_id = :p3_proj
    It's a very simple query.. the same query runs in less than 2 seconds on SQL Navigator.. but when I run it from APEX it takes like 5 minutes.

  • Download to CSV div id="report_  in file

    When I have a report with a download to csv option, occasionally I get div tags starting on the first record and after the last record.
    I normally end up deleting and recreating the report region but is there any way of identifying when these will occur and preventing them from happening.

    Hi Keith
    In the report attributes, under Layout and Pagination, set the Enable Partial Page Refresh to No.
    Cheers
    Ben

  • Download to CSV file using FLEX

    Hi,
    I have download to CSV working fine, but i need the filename along with extension "CSV" when filereference object opens in browser,
    though i included CSV in the filename flex is ignoring it..
    Can anybody let me know how i can accomplish what i am looking for ?
    Thank You...Anu
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import sample.DataGridDataExporter;
    import flash.net.FileReference;
    import flash.net.URLRequest;
    import flash.net.URLVariables;
    import flash.net.URLRequestMethod;
    import mx.controls.Alert;
    private static const CSV_DOWNLOAD_END_POINT:String = "http://q0571478:9081/CsvFile/servlet/GetCSV";
    private var downloadFileRef:FileReference = null;
    private function exportCSV ():void
    var csvData:String = DataGridDataExporter.exportCSV (dg);
    console.text = csvData;
    if (csvData.length > 0)
    downloadCSV (csvData);
    private function downloadCSV (csvData:String):void
    if (!downloadFileRef)
    downloadFileRef = new FileReference();
    var request:URLRequest = new URLRequest();
    var fileName:String;
    fileName = "ccdownload.csv";
    request.url = CSV_DOWNLOAD_END_POINT;
    request.method = URLRequestMethod.POST;
    request.data = new URLVariables ("csvdata=" + csvData);
    downloadFileRef.download(request, fileName);
    ]]>
    </mx:Script>
    <mx:XMLList id="employees">
    <employee>
    <name>Christina Coenraets</name>
    <phone>555-219-2270</phone>
    <email>[email protected]</email>
    <active>true</active>
    </employee>
    <employee>
    <name>Joanne Wall</name>
    <phone>555-219-2012</phone>
    <email>[email protected]</email>
    <active>true</active>
    </employee>
    <employee>
    <name>Maurice Smith</name>
    <phone>555-219-2012</phone>
    <email>[email protected]</email>
    <active>false</active>
    </employee>
    <employee>
    <name>Mary Jones</name>
    <phone>555-219-2000</phone>
    <email>[email protected]</email>
    <active>true</active>
    </employee>
    </mx:XMLList>
    <mx:Panel title="DataGrid Control Example" height="100%" width="100%"
    paddingTop="10" paddingLeft="10" paddingRight="10">
    <mx:Label width="100%" color="blue"
    text="Select a row in the DataGrid control."/>
    <mx:AdvancedDataGrid id="dg" width="100%" height="100%" rowCount="5" dataProvider="{employees}">
    <mx:groupedColumns>
      <mx:AdvancedDataGridColumn dataField="name" headerText="Name"/>
      <mx:AdvancedDataGridColumn dataField="phone" headerText="Phone"/>
      <mx:AdvancedDataGridColumn dataField="email" headerText="Email"/>
    </mx:groupedColumns>
    </mx:AdvancedDataGrid>
    <mx:Button label="Export CSV" click="exportCSV ()"/>
    <mx:TextArea id="console" width="100%" height="100%" />
    </mx:Panel>
    </mx:Application>

    this opensource component has a good sample about copying datagrid data, is not CSV but is Excel compatible (it should be easy to change to CSV)...
    http://flexed.wordpress.com/2007/08/15/customgrid-v12/
    if you need help uploading the file to the server you could take a look in the Flex Documentation for fileupload or FileReference and you should get some examples
    HTH
    Gus

  • Download to csv file

    Hi,
    Working with Download to csv file feature I realized that for one of my reports that contains an icon (with a link) in one of the columns, is not getting any value for this column in the csv file.
    This behaviour is logical due to the fact that we have an image, not a string.
    But, is there a way I can edit or force the Download to assign a string value for every icon I have in my report, so when I click in Download, the icon will be represented as a string in the new csv file?
    Thanks
    Ivo

    i'd bet the easiest way to approach this would be to select both your icon and your "string value" columns out of the database and to then use column conditions to determine which columns should be rendered in which output format. so say you had a report that just showed images in one col and a description in the next. i'd write your report to select something like...
    select '<img src="'||m.image_path||'">' my_image, m.image_name name, m.image_description
    from my_image_table m
    ...and then i'd a put condition of type "PL/SQL Expression" like...
    not htmldb_application.g_excel_format
    ...on your my_image column. i'd also put a "PL/SQL Expression" condition on your Name column like...
    htmldb_application.g_excel_format
    ...we talked about this a bit in...
    Excel Report
    ...but basically htmldb_application.g_excel_format is just a function that returns a boolean telling you whether or not the HTML DB engine is in the mode of show your page in csv format. anyhow, give it a shot and let us know if you need further assistance.
    regards,
    raj

  • Hide / Show Column in Download to CSV

    Hi,
    I have an IR where I have to show a column in report, but hide it while downloading to CSV.
    I get this by having a condition on this column -
    NVL(:REQUEST,'EMPTY') NOT IN('CSV','XLS','PDF','XML','RTF')  I also have a column where I have to hide it in the report, but show it while downloading to CSV.
    I am able to hide it, but this column doesn't show up while downloading.
    I am using this coundition on this column
    NVL(:REQUEST,'EMPTY') IN('CSV','XLS','PDF','XML','RTF') APEX - 4.0.2
    Thanks.

    Please Update on this..I have a same query as above..Thanks

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

  • Dashboards - Download to CSV or Excel?

    Is it possible to download to csv or Excel from a dashboard?
    Thanks!

    I found the answer. The "Properties" button for the report(s) on the dashboard has a "Report Links..." option. This is where to change the setting.

Maybe you are looking for

  • Distinct and Group By not as expected

    Hi, I have this sql.... SELECT dbPatID, dbAddDate, dbStaffLastName, RefTypeWord FROM EPSReferralKPIs WHERE (dbAddDate >= '2013-01-01' OR '2013-01-01' = '') AND (dbAddDate <= '2013-12-31' OR '2013-12-31' = '') AND (dbStaffLastName IN ('Swanepoel','Pat

  • Payment proposal picking up... different payment methods...

    Hi Experts we are testing in development phase, Payment proposal is picking up different payment methods even we entered only one payment method in the parameters. This should not be selected like this as per the business... process. Please let me kn

  • How to use SCM in JDev 10.1.2

    Hi, I try finding manual or an article which talk about using SCM with JDev step by step. But I can't find anything. So, I want you tell me some information about it (step by step) Thank you very much! Tuan.

  • Comparison chart (Studio vs Express)

    Hi, I'm using Logic Express v7 yet, but consider upgrading to either Studio or Express v8. I remember there was a nice feature comparison chart for Pro v7 vs Express v7. I couldn't find this for the new versions. Did anyone else? Thanks, koepernikus

  • How do I import my stuff from an old mac without a firewire port?

    my old imac, a purple 1996 model, contains all of my itunes songs, all of my digital pictures, and reports/papers from college. i'd like to transfer these to my new iBook, but the old iMac doesn't have a firewire port. what can i do? thanks, anybody.