Working CSV formatted data in Numbers

I am trying to read a CSV file in Numbers 09.  Is there a quick way to reformat the file to Numbers format?

What is the problem ?
As it was explained hjerte many times,
if your system uses the period as decimal separator, the file name must end with ".csv" and the values must be separated by commas
if your system uses the comma as decimal separator, the file name must end with ".csv" and the values must be separated by semi-colons
There is an annoying problem: from time to time, users receive files whose name ends with ".xls" which are in fact csv ones,
others receive files whose name ends with ".csv" which are in fact html tables or other formats.
When you get a wrong behavior, drag and drop the document's icon on the application TextEdit.
Doing that, you will quickly know which is the structure of your document.
If it's really a csv one with the 'wrong' separator, the best scheme is to change temporarily your system setting so that it matches the separators used.
If it use commas, set the system to country/region : USA
If it use semi-colons, set the system to country/region :France.
Numbers will run according to this setting so it will open the doc correctly.
Save as is.
Reset the system to your standard setting and open the new file in Numbers.
This time it will be OK. Maybe you will have some problems with numbers using thousand separators or with dates.
In other cases,you may send the file(s) to my mailbox.
I will look at its internal structure. With a bit of luck, I have a script ready to decipher it.
In other cases, I will do my best to write a new script.
If you must send a file, click my blue name to get my address.
Yvan KOENIG (VALLAURIS, France) 6 mai 2011 16:34:20

Similar Messages

  • Reading and Wrting CSV format data

    I am trying to read in a file in CSV form and to store the data separately in a set of arrays, and by using the ordinary System.out output, print out to screen a summary report of the form. Can anybody please assist me in this please...any help would be very much appreciated.

    don't understand your question.
    Just read the file, using StringTokenizer to create tokens, .... print out what you want

  • Property loader in .csv Format : Error with list of Numbers

    Hi,
    I need to change property files from the .xls format to the .csv format so that I won't need to install Ms Office on the Test Station PC.
    Everything works is .csv format except for variales containing lists of numbers.  Here is an example.
    This variable contains the channel list to send to a Digital Multimeter.  A string containing all channel numbers seperated by comas (The DMM model is Agilent  34070A). 
    I create a variable named ChannelList of type string containing : "101,102,103,104,105"
    When exporting to property file (Using Tools-Import/Export properties), TestStand will write the following line is .csv format :
    ChannelList,"101,102,103,104,105"
    When trying to import this property value with a property loader I get the following error :
    Runtime Error Occured
    Error evaluating expression:Runstate.Sequence.locals.ChannelList = (""101")
    Unexpected Token: 101
    What puzzles me is that teststand is not even capable of reading its own exported property within a newly created file.
    Any ideas?
    TestStand 2013
    Thanks in advance
    Nien

    Nien,
    This is a known issue and we are looking into this issue in future version of TestStand.
    There are couple of approaches for fixing the problem:
    1. Use a different character for comma in the property loader file. After importing the data, replace the character with comma using TestStand expression in the sequence file.
    2. Use Tab Delimited Text format instead of CSV format.
    3. We can see that, property loader is using expression to update the value of the property (The exact expression is specified in the error message you have posted). In a text editor, update the csv file to have the value as
    ChannelList,101""+Chr(44)+""102""+Chr(44)+""103""+Chr(44)+""104""+Chr(44)+""105
    This will create the expression such that, the value of ChannelList property will become 101,102,103,104,105
    Note: This is just a workaround and you should use this approach with caution.
    Thanks,
    Shashidhar

  • Date column interprets as timestamp in .csv format.

    Hi,
    There is another issue when downloading report in .csv format. The date column interprets as timestamp. How can I avoid it in RPD Level? Please give your suggestions.
    Thanks,
    Anitha.B

    user12945439 wrote:
    MMM.. to_timestamp_tz converts TO a timestamp. I have a timestamp.
    First is:
    cast(mycol as varchar2(30))
    this convert my number to a varchar2(2).
    SQL> select cast(mycol as varchar2(30)) T from mytable where rownum<5;
    T
    1117820144396
    1117820147442
    1117824374358
    1117824388908
    Now this is the timestamp with TZ... another cast seems not working. To_date seems not working too.
    SThose numbers could possibly represent timestamps, being the number of milliseconds since some arbitrary date (Jan 1, 1970 perhaps?) as they are in the range to be that but I don't see any way there could be a time zone attached without adding extra digits.

  • Search report - error-no data found when printing to csv format

    Hi all,
    I have a search report,
    I have 4 select list and two text field and two date field to search for the result.
    I have even put the computation for the select list items in
    on load - before header ie setting the items to default value.
    Still when i try to print it in the csv format , and try to open the excel, it is saying "no data found" error
    Please, Could any one give me a solution to solve this bug?
    Note: Ordinary report is getting printted in the csv format.
    Thanks in advance
    bye
    Srikavi

    Hi Denes and Scott,
    sorry, only when i select the values for all the 4 select list
    csv is working. default values are not restored in the session.
    How to restore the values in the session state after pressing the search button.
    i have set the default values for the select list and the query is working fine
    but when i see the session from the toolbar the default values are not present.
    but when i see the debug from the toolbar the values are set properly.
    @Denes
    In your example the session is showing the values of the select list and check box
    The same way i did, but in "session" values are not seen so again no data found is seen when printing csv .
    Bye
    Srikavi

  • Output report data to excel file format or csv format

    Is there any way to save softcopy of report output to excel file format or csv format.

    Hi,
    Regarding csv file format, i have no issues. The file is generating without any issues in using oracle reports without using any PL/SQL code.
    My requirement is to design oracle reports to generate excel (.xls) file with multiple worksheets. Each sheets are having many data and graphs(chart).
    Using oracle reports alone, how to achieve this.
    In oracle reports 10g 1.2.0 version, I tried by creating .rdf file but, it is generating single worksheet only.
    In oracle reports 10g 1.2.0 ver, I tried by creating .jsp file. For this first i am creating excel template about how my ouput column headings all that going to be with one sample hard coded data and save the excel file as web page.
    Eg employee.html.
    Next open the html file in oracle reports builder and double click the websource now, you will see the jsp tags, html and xml tags. Now include the contentType="application/vnd.ms-excel " and charset also.
    Next, include the <rw:foreach id="G_EMPNO_1" src="G_EMPNO">
    here insert the fieldl for each column by removing the hard coded values.
    close the tag
    </rw:foreach>
    Save the file as .jsp and deploy it in oc4 enabled folder (say, devsuite_home/reports/j2ee/reports_ids/web
    Start the oc4J server
    Run it in the browser http://server:port/reports/emp.jsp?useride=uid/pwd@db
    It is invoking the Microsoft excel with 3 sheets default and my emp table output in the first page.
    We can save this output file as .xls file by clicking file -> save as.
    1) The question is, it is working fine with Microsoft excel 97-2003 version. But for excel 2007, i am not able to create single html file like how 2003 save web page option.
    2) I found this in oracle getting started demo
    http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/index.html
    Which is more useful. This is what i am looking for.
    I done that in excel 2003 as per demo. But excel 2007 with reports 10g issues.
    Is there any demo for 10g with excel 2007
    3) For most of excel issues working fine with excel 2003 and 10g. But excel 2007 with 10g reports are issues.
    I want the excel output from oracle reports with multiple worksheet similar to the above demo.
    Thank you.

  • Excel date to Numbers text format troubles

    I've been sent an Excel .xls document which I'm opening in Numbers '09 (2.1).
    The spreadsheet has a date column which I need to be in text format as dd/mm/yyyy. I expected the original Excel document to have the dates already in text format but Numbers says the fields are 'Custom' and shows the dates in US format: 11/04/2011, even although my Mac is set to UK format. No matter, I can set the cells to text format, however that results in the date being shown as 04/11/00002011.
    Where did those extra zeros in the year come from!?
    How can I reformat the dates to the dd/mm/yyyy format as text?
    I've tried a couple of formula to create a new column
    =Year(A1)
    for example and I think I could recreate the date  like that, but the cell must be text format.
    DG

    Here is the script required to peek dates from Numbers then poke them in Numbers.
    --{code}
    Apply this script to a Numbers table containing :
    B2 : 1943/12/31 23:59
    B3 : 1789/07/14
    B4 : 2010/01/01 00:12
    B5 : = NOW()
    set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
              repeat with r from 2 to 5
                        set thenumbersdate to value of cell r of column 2
                        set value of cell r of column 3 to thenumbersdate as text
                        set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
                        tell cell r of column 4
                                  set format to text
                                  set value to thenumbersdate as text
                        end tell
                        tell cell r of column 5
                                  set format to text
                                  set value to short date string of thenumbersdate
                        end tell
              end repeat
    end tell
    --=====
    set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
    set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
    Handlers by Nigel GARVEY
    http://macscripter.net/viewtopic.php?id=36449
    (* Convert an ISO-format date string to an AppleScript date. *)
    on isotToDate(isot)
              set n to (text 1 thru 8 of isot) as integer
              set ASDate to (current date)
              tell ASDate to set {day, year, its month, day} to {1, n div 10000, n mod 10000 div 100, n mod 100}
              if ((count isot) > 8) then
                        set n to (text 10 thru 15 of isot) as integer
                        set ASDate's time to n div 10000 * hours + n mod 10000 div 100 * minutes + n mod 100
              end if
              return ASDate
    end isotToDate
    --=====
    (* Transpose an AppleScript date/time from the given time zone to GMT. *)
    on TZtoGMT(TZDate, TZ)
      -- The difference between TZDate when it's local and the GMT date we want is usually
      -- the same as the difference between the local date when TZDate is GMT and TZDate itself …
              set GMTDate to TZDate - (GMTtoTZ(TZDate, TZ) - TZDate)
      -- … but not around the time the clocks go forward. If the GMT obtained doesn't reciprocate to TZDate,
      -- shift to a nearby local date where the above DOES work, get a new GMT, unshift it by the same amount.
              set testDate to GMTtoTZ(GMTDate, TZ)
              if (testDate is not TZDate) then
                        if (GMTDate > testDate) then -- "Clocks forward" is towards GMT.
                                  set shift to GMTDate - testDate
                        else -- "Clocks forward" is away from GMT.
                                  set shift to -days
                        end if
                        set nearbyDate to TZDate + shift
                        set GMTDate to nearbyDate - (GMTtoTZ(nearbyDate, TZ) - nearbyDate) - shift
              end if
              return GMTDate
    end TZtoGMT
    --=====
    (* Transpose an AppleScript date/time from GMT to the given time zone. *)
    on GMTtoTZ(GMTDate, TZ)
      -- Subtract date "Thursday 1 January 1970 00:00:00" from the GMT date. Result in seconds, as text.
              copy GMTDate to date19700101
              tell date19700101 to set {year, its month, day, time} to {1970, 1, 1, 0}
              set eraTime to (GMTDate - date19700101)
              if (eraTime > 99999999) then
                        set eraTime to (eraTime div 100000000 as text) & text 2 thru 9 of (100000000 + eraTime mod 100000000 as integer as text)
              else if (eraTime < -99999999) then
                        set eraTime to (eraTime div 100000000 as text) & text 3 thru 10 of (-100000000 + eraTime mod 100000000 as integer as text)
              else
                        set eraTime to eraTime as text
              end if
              return isotToDate(do shell script ("TZ='" & TZ & "' /bin/date -r " & eraTime & " +%Y%m%dT%H%M%S"))
    end GMTtoTZ
    --=====
    --{code}
    Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 14:14:26
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Error when transferring table data to a CSV format file.

    Hi
    I am getting an error when I am passing the parameter value for the file name from the selection screen. If i hard code the path and name it works fine. can any one help me please. here is my code:
    PARAMETERS: OUTFILE LIKE dxfile-filename
                           DEFAULT 'C:\Apositivepay.txt',
          RUNDATE LIKE PAYR-LAUFD,
          Bank LIKE T012K-HBKID.     "List of Possible Banks
    type-pools:TRUXS.
    DATA: BEGIN OF OUTPUT_REC OCCURS 0,  "Output file for USBANK
          ACCT(12),           "bank account no
          Payee2(40) type c,         "payee 2
          END OF OUTPUT_REC.
    data:  itab1 type TRUXS_T_TEXT_DATA.
      CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
        EXPORTING
             I_FIELD_SEPERATOR          = ','
         TABLES
             I_TAB_SAP_DATA             = OUTPUT_REC
         CHANGING
             I_TAB_CONVERTED_DATA       =  itab1
         EXCEPTIONS
              CONVERSION_FAILED          = 1
              OTHERS                     = 2.
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
            filename = OUTFILE  "This doesn't work
            filename = 'C:\Apositivepay.txt' "This works
         TABLES
              DATA_TAB            = itab1
         EXCEPTIONS
              FILE_OPEN_ERROR     = 1
              FILE_WRITE_ERROR    = 2
              INVALID_FILESIZE    = 3
              INVALID_TABLE_WIDTH = 4
              INVALID_TYPE        = 5
              NO_BATCH            = 6
              UNKNOWN_ERROR       = 7
              OTHERS              = 8.
    Message was edited by: Anwarul Kabir

    hi,
    use this code and save that file in CSV format it will work
    OPEN DATASET P_IFILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF SY-SUBRC NE 0.
        MESSAGE E000 WITH 'Problem in opening Application Server file'.
      ELSE.
        DO.
          READ DATASET P_IFILE INTO IT_UPLOAD.
          IF SY-SUBRC NE 0.
            EXIT.
          ELSE.
            APPEND IT_UPLOAD.
            CLEAR IT_UPLOAD.
          ENDIF.
        ENDDO.
        CLOSE DATASET P_IFILE.
      ENDIF.
      IF IT_UPLOAD[] IS INITIAL.
        MESSAGE E000 WITH 'NO data in the file/upload problem'.
      ENDIF.
      LOOP AT IT_UPLOAD.
        SPLIT IT_UPLOAD AT ','
                         INTO
                         IT_FDATA-MATNR
                         IT_FDATA-WERKS.
                        IT_FDATA-SLGORT.
        APPEND IT_FDATA.
        CLEAR  IT_FDATA.
      ENDLOOP.
       IT_TOTAL1[] = IT_FDATA[].

  • Data ONTAP PowerShell Toolkit - Collect SYSSTAT type of information in CSV format

    As part of performance monitoring and analysis collecting performance data is crucial. Even though historical data could be collected with other monitoring tools we are often using SYSSTAT command to collect such data during short period of time of specific activity to analyze performance of NetApp array. Raw output of SYSSTAT command is useful but in some cases it needs to be presented in more visual form such graphs and charts. Producing Comma-Separated-Values file from SYSSTAT command output is long and painful process.
    Working with customer on performance analysis made me to develop PowerShell script which can capture such data in CSV format, so that data can be processed much faster and presented to customer in nice graphical format.
    Script Get-NaSysStat.ps1 uses Get-NaPerfCounter and Get-NaPerfData commandlets to extract performance data of NetApp array and store them into CSV file. Script uses next parameters:
      NaIP       : IP address or Name of the Filer
      NaUS      : Filer User Name. Default Value - root
      NaPW     : Filer User's Password. Default Value - password.
      Output     : Display/<File Name or Path>. Default Value - Display
      Interval     : Interval in minutes between samples. Default Value - 5 min.
      Iterations  : Number of sample iterations.
                   Default Value - 0, for no limit.
                   Execution can be ended by pressing Ctrl-C
    Example of calling script and screen output:
    PS C:\@work\Scripts> .\Get-NaSysStat.ps1 -NaIP 10.58.97.11 -NaUS root -NaPW <password> -Output Perf.csv -Interval 1
    Name                                 Value
    Time                                  4/7/2011 4:37:03 PM
    system_model                    FAS6070
    ontap_version                     NetApp Release 8.0.1RC2 7-Mode: Thu Oct 21 01:27:45 PDT 2010
    serial_no                            ***
    system_id                          ***
    hostname                           Array-01
    nfs_ops                              0.00
    cifs_ops                             0.00
    http_ops                             0.00
    fcp_ops                              8.50
    iscsi_ops                           0.00
    read_ops                           0.00
    sys_read_latency               0.00
    write_ops                           8.50
    sys_write_latency               0.32
    total_ops                            8.50
    sys_avg_latency                 0.32
    net_data_recv                     2.20
    net_data_sent                    9.25
    disk_data_read                  169.61
    disk_data_written               584.21
    cpu_busy                          2.12
    avg_processor_busy          1.49
    total_processor_busy         5.98
    num_processors                4
    Screen output is valuable part but parameter -Output tells script to save data into CSV file. Here is an example of CSV files:
    Time, avg_processor_busy, cifs_ops, cpu_busy, disk_data_read, disk_data_written, fcp_ops, hostname, http_ops, iscsi_ops, net_data_recv, net_data_sent, nfs_ops, num_processors, ontap_version, read_ops, serial_no, sys_avg_latency, sys_read_latency, sys_write_latency, system_id, system_model, total_ops, total_processor_busy, write_ops,
    3/28/2011 5:32:25 PM, 3.17, 0.00, 17.30, 6773.59, 21667.06, 1031.74, BP-SAN-04, 0.00, 0.00, 17.41, 284.66, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5 17:23:51 PST 2011, 558.10, 700000501660, 0.83, 0.89, 0.75, 1873760944, FAS6280, 1031.54, 37.98, 473.44,
    3/28/2011 5:33:26 PM, 2.07, 0.00, 10.88, 8511.15, 16221.77, 869.91, BP-SAN-04, 0.00, 0.00, 6.29, 91.75, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5 17:23:51 PST 2011, 656.24, 700000501660, 0.80, 0.79, 0.84, 1873760944, FAS6280, 869.70, 24.89, 213.46,
    3/28/2011 5:34:27 PM, 0.83, 0.00, 3.59, 3311.89, 5268.20, 131.53, BP-SAN-04, 0.00, 0.00, 1.84, 9.72, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5 17:23:51 PST 2011, 50.07, 700000501660, 0.81, 1.05, 0.65, 1873760944, FAS6280, 131.35, 10.00, 81.28,
    3/28/2011 5:35:28 PM, 1.66, 1.70, 10.61, 2518.90, 3812.95, 241.06, BP-SAN-04, 0.00, 0.00, 12.41, 25.53, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5
    Performance data is exported into Microsoft Excel for further analysis and nice performance graphs created within minutes:
    Script is attached to this post.

    i can't start this script - i have error:================C:\ps\Get-NaSysStat.ps1:52 row:10 + $Filer = Connect-NaController $NaIP -Credential $Creds +          ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo          : ObjectNotFound: (Connect-NaControllertring) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException================what can i do?

  • Unable to save the data in a .CSV format

    Hi All,
    I am trying to pull some data with the help of the sql query from the database and then trying to save this string of data in csv file by using the following code as shown below.The problem iam facing here is that while the file Save as window opens stating to be saved as .CSV format but when i try to save it ,it doesnt givme a csv option ,only html option appears.Can any one help me on this..,,,,,,,,,,,,?
    <%@include file="jtfincl.jsp" %>
    <%@page session="false" %>
    <%@page import="java.io.PrintWriter"%>
    <%@page import="oracle.apps.ibe.util.RequestCtx"%>
    <%@page import="oracle.apps.iri.iribe.postsales.IrIbeOrderSearch"%>
    <%@page import="oracle.apps.ibe.util.*" %>
    <%@page import="java.io.IOException" %>
    <%
    pageContext.setAttribute("_securePage", "true", PageContext.REQUEST_SCOPE);
    pageContext.setAttribute("_guestNotAllowed", "true", PageContext.REQUEST_SCOPE);
    pageContext.setAttribute("_unapprovedNotAllowed", "true", PageContext.REQUEST_SCOPE);
    RequestCtx rCtx = RequestCtx.start(request, response);
    int status = Session.checkContextValues(request, response);
    if(RequestCtx.userIsAnonymous()) {
    signin(out, pageContext, request, response, false);
    return;
    // Set the response type which in this case will be a .csv file
    response.setContentType("application/csv");
    response.setHeader("Content-disposition","attachment;filename=SearchResults.csv");
    String queryStartDate = request.getParameter("queryStartDate");
    String queryEndDate = request.getParameter("queryEndDate");
    String queryField = request.getParameter("queryField");
    String queryOperator = request.getParameter("queryOperator");
    String queryValue = request.getParameter("queryValue");
    String queryOrderByField = request.getParameter("queryOrderByField");
    String showOpenOrdersOnly = request.getParameter("showOpenOrdersOnly");
    IrIbeOrderSearch orderSearch = new IrIbeOrderSearch(
    queryStartDate,
    queryEndDate,
    queryField,
    queryOperator,
    queryValue,
    queryOrderByField,
    showOpenOrdersOnly
    orderSearch.initialise();
    java.util.ArrayList results = orderSearch.getItemTrackerSearchResults();
         out.println("The result array size is======="+results.size()) ;
    // Output the results as the page resonse as a csv file
         try
    write(results, response.getWriter());
         catch(exception e)
         out.println("The stack trace is======="+e.printStackTrace()) ;
         if(IBE_logEnabled) IBEUtil.log("iribeCOtdOrdSearchExport.jsp","Inside the exception"+e.toString);
    %>
    <%!
    * This method will take a ResultSet and JspWriter object and print out the details of the ResultSet as a
    * comma seperated value file.
    * @param results
    * @param writer
    public static void write(java.util.ArrayList results, PrintWriter writer) {
    if(results == null || results.size() == 0) {
    writer.print("No Data Available");
    return;
    String [] data = null;
    String output = "";
              if(IBE_logEnabled) IBEUtil.log("iribeCOtdOrdSearchExport.jsp","Inside the write method");
    for(int i = 0; i < results.size(); i++) {
    data = (String []) results.get(i);
    output = "";
    for(int j = 0; j < data.length; j++) {
    // If its not the last column
    if(j != data.length - 1) {
    output += formatField(data[j]) + ",";
    // If it is the last column
    } else {
    output += formatField(data[j]);
    writer.println(output);
    writer.flush();
    * Format a string value so that it becomes a valid field in a .csv file. This involves making sure that any null
    * data is treated as an empty string, that any quotes are padded and if the file contains any commas that the
    * field is surrounded by quotes.
    * @param value
    private static String formatField(String value) {
    String output = null;
    // Check for null values
    if(value == null) {
    output = "";
    } else {
    output = value;
    // Pad any existing quotes
    output = output.replaceAll("\"", "\"\"");
    // If there is a space or commas then add surrounding quotes
    if(output.startsWith(" ") || output.endsWith(" ") || output.indexOf(",") != -1) {
    output = "\"" + output + "\"";
    return output;
    %>
    <%!
    void signin(
    JspWriter out,
    PageContext pageContext,
    HttpServletRequest request,
    HttpServletResponse response,
    boolean reauth
    ) throws IOException, SQLException, FrameworkException {
    String query = IBEUtil.passQueryString(request, null).toString();
    String uri = request.getRequestURI();
    String targetJsp = uri.substring(uri.lastIndexOf("/") + 1);
    String ref = null;
    if ("true".equals(pageContext.getAttribute("_securePage", PageContext.REQUEST_SCOPE))) {
    ref = RequestCtx.getSecureFormAction(targetJsp);
    } else {
    ref = RequestCtx.getNonSecureFormAction(targetJsp);
    if(!query.equals("")) {
    ref = oracle.apps.jtf.util.Utils.encode(ref + "?" + query);
    String redirect = RequestCtx.getSecureURL("ibeCAcpSSOLogin.jsp", "ref=" + ref + (reauth ? "&reauth=t" : ""));
    // don't add the ref if the session expired and restarted
    RequestCtx rCtx = RequestCtx.getRequestCtx();
    if(rCtx.startRequestException!=null) {
    redirect = RequestCtx.getSecureURL("ibeCAcpSSOLogin.jsp", "ibe_se=t"+(reauth ? "&reauth=t" : ""));
    RequestCtx.end(request);
    response.sendRedirect(redirect);
    regds
    manish
    %>

    This would occur if you were using IE and the requested URL doesn't contain the filename part. The real web browsers would pick up the filename from the response header flawlessly.
    Having said that, this kind of logic doesn't belong in a JSP. Use Java classes (Servlet, Bean, DAO). Further on, JSP/Servlet related questions should be posted in the JSP/Servlet forum.

  • Need help in writing data to a flat file in .csv format

    Hi All,
    could you please show with a sample example to write data in .csv format using UTL_file.
    The result of the refcursor i want to write to a file in .csv format.
    How can i achieve this.
    Thx

    Hi,
    There are two ways to acheive this.
    First and which I prefer is creating a SQL script which will generate csv file at the specified location in CSV format. And then this SQL script can be called from your cron job similar to how you call stored procedure. Following is pseudo code that can be used -
    set linesize 500
    set echo off
    set feedback off
    set prompt off
    set pagesize 0
    spool <name of the csv file>.csv
    <Your select statement>;
    spool offPut select statement delimiting columns you want to use with ','. E.g. following query should create a CSV file named as abc.csv with one record and 2 columns delimited by comma. First column is ENO and second column is ENAME.
    set linesize 500
    set echo off
    set feedback off
    set prompt off
    set pagesize 0
    spool abc.csv
    select ENO || ',' || ENAME from employee;
    spool offSecond, you can write a PLSQL procedure and then call this procedure from cron job. There is a generic procedure shared by BluShadow some time back which is a very good example for this. Please refer to following link for this solution -
    REF Cursor creating CSV files
    I will suggest to use first method above if possible since it will be faster and less complicated in my opinion. Second method is recommended for scenarios where select statement is created dynamically and cannot be written during development.
    Hope this solves your purpose.
    Cheers,
    Anirudha

  • Format of date and numbers

    Hi,
    in Italy the format of date is DD/MM/YYYY e the formato of numbers is NNN,DD (DD means Decimal).
    I use Excel for IPAD but when I write for instance 28/03/2015 the field shows 03/28/2015, the same problem is for numbers where the comma and the dot are inverted.
    How do I change the format of date and numbers?
    Thank you in advance.
    Max

    The general format of the date is tied to the language...use US english, get US date formatting.
    You may want to poke around in excel's settings. I know the desktop version allows you to alter the date formatting, but I'm not sure if the iPad app has that. Look for 'cell formatting' in the settings and see if it's alterable.
    If not, you can try to make your template on a PC, then put that excel onto your iPad and see if it honors the cell formatting already in place.

  • How to use CSV format in making a data connection.

    Hello All,
    I have got a form to develop. There are over 1000 entries to be imported. Can I use CSV format to embed those data in the forms. Mainly those data would be embedded as dropdowns.If I can use how to do it ? If i can not use is there any better way without using the Database like MySQL or something.
    Thanks.
    Bibhu.

    Hi Afroz,
    To be more specific, if the csv file doesn't has header, please refer to this script to add header:
    $csv = Import-Csv d:\haha.csv -Header "UserA","UserXYZ","EmailA"
    Then you can loop this csv file to run the "add-mailboxpermission" cmdlet, I recommend you can test this script before running against production environment, please also note I haven't tested this script:
    $csv = Import-Csv d:\users.csv -Header "UserA","UserXYZ","EmailA"
    foreach($each in $csv){
    write-host "assign fullaccess permission of user $($each.UserXYZ) on mailbox $($each.EmailA)"
    get-mailbox -identity $each.EmailA | add-mailboxpermission -user $each.UserXYZ -accessrights 'fullaccess'
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to convert from line chart data to CSV format

    Hi ,
    I am using Flex 3 and AS.
    I am getting data from MS SQL and display the data as line
    chart this is ok.
    But i want to convert this line chart data to CSV or .xsl
    format.I find one example in fourms the from data grid to CSV
    For this URL is
    http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php
    But i want Line chart to CSV.Please help me.

    Line chart is a just a visual representation of some data
    that's sitting in your database. Isn't it? You load this in Flex,
    probably using HTTPService class, and pass it to some chart object.
    Now when use says that she needs it in CSV format, you're
    gonna have to send another request to the server to produce the
    same data, convert into CSV or XLS format and let user download it.
    Of course, if use doesn't want to download, you don't have to
    go to the server, at least for CSV format. You can convert the same
    data that used plot the chart to convert to CSV.
    Am I missing something here?
    ATTA

  • Format Data doesn't work?

    Hi
    I want to see numbers in Discoverer formatted as set in Administrator, which is
    999G999G990D99.
    The Format Data dialog box tells me that 'Default' formats numbers as they have been set up by your Discoverer manager, using the format 9999999999.
    Only, I am my own Discoverer manager and I set up 999G999G990D99.
    I can find that setting in EUL5_EXPRESSIONS.IT_FORMAT_MASK and I can see changes done with Administrator.
    Why don't they show up in Discoverer?
    Hints appreciated
    Franziska

    Instead of selecting 'Default' go to more Number
    formats and seelct the one you want.In which dialog do you find these 'more number formats'?
    That will become the new default format.I need different formats for different columns. So one default won't do.
    Hope this helps!Afraid not.
    Thanks
    Franziska

Maybe you are looking for

  • How ro reset my i phone 3gs

    i just bought a i phone 3gs refurbished and im trying to reset the phone using i tunes i need help

  • Creeated new account - but safari won't start anymore

    I created a new account with a parental control. Logged in under the new account and Safari won't start anymore. It quits directly after starting. Any help suggestion ? Thanks much

  • Help seeding accounts from DSEE 6.3.1

    Hi, I am a newbie at IDM, but just came off some training for it. My initial task should be to seed accounts from DSEE. I tried this using "Load From Resource" and I got a number of accounts, about 15000, but this only from an available pool of about

  • Vg 224 to Vg 350 migration question

    Hi, Running a cluster of CUCM v-8.6.2.22900-9 We have 2 VG350s we just got in and are in the process of migrating off our vg224's. It is very tedious having to configure every port on the 350 manually to mimic the 224. I know about bulk admin a littl

  • All my video applications won't work

    Greetings. Since I upgraded to OS X 10.3.9 neither my DVD player, nor iMovie, nor Quicktime will work. I go to play a video and the colored spinner keeps on spinning, until I force quit. This wasn't a problem before. Any thoughts? G5   Mac OS X (10.3