Import CSV/Excel data into Flex Datagrid using Java/JSP

Hi,
Is there any way we can import excel/csv data into flex datagrid component.
I see that is been done using php in this site. http://code.google.com/p/as3xls/
Any help would be appreciated.
Thanks in advance

You can store the list of data from the Excel sheet that you have read already into an ArrayList
Then go through the JDBC tutorial, and learn how to insert a single record into the table.
After you understand how to insert a single record, you can iterate through the ArrayList of data and insert them into the table in the database.
If you know JDBC, see if you can use OR Mapping frameworks like Hibernate or iBatis, they make it very easy to manage database in Java.

Similar Messages

  • How to import MS Excel data into an exisiting SharePoint List?

    Hi Guys,
    Is it possible to import an excel list or excel data into a SharePoint List that has already been created? Not create a new list.
    I know you can import a spreadsheet which will create a new list, but I don't want that because I have created columns already  that do calculations and such and I don't want to recreate them....
    It can be either an excel or access list, but I want to make sure the pre-existing columns in still my SharePoint list.

    Sure,
    Go to list datasheet view in IE
    Open excel and copy the range
    Paste in datasheet view
    If column range match and validation overcome, data will start pasting as expected.
    http://3sharp.com/blog/copy-and-paste-from-excel-to-a-sharepoint-list/
    https://clintoncherry.wordpress.com/2008/02/27/bulk-copy-and-paste-into-a-sharepoint-list/
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/3c60ee05-1408-4b73-bb2b-2d42bf913572/how-to-copy-excel-sheet-data-to-sharepoint-2010-list
    Hope this will help
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Store XML data as relational data into Oracle tables using Java and XMLType

    I want to store xml data into an Oracle 11g table as relational storage, not as CLOB or Binary storage. Then I should also be able to query and fetch this data from table into an XML file.
    Any hint on how to write java code using XMLType to achieve this?
    Any help would be appreciated.

    Thanks for the explanation. I still have few confusions. I will try to elaborate my requirement with a simple example...
    I have the following xsd and xml files. "note" would be the table in database and "to", "from", "heading" and "body" would be the columns of note table. "Tove", "Jan", "Reminder" and "Don't forget me this weekend!" would go as data in one row of note table.
    How do I create note table with the xml schema (xsd file)?
    Should the note table be of XMLType or the columns?
    How do I load the XML data into the columns of note table?
    How do I retrieve the row of note table as XML file?
    XML Schema:
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.xxxxx.com"
    xmlns="http://www.xxxxx.com"
    elementFormDefault="qualified">
    <xs:element name="note">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="to" type="xs:string"/>
          <xs:element name="from" type="xs:string"/>
          <xs:element name="heading" type="xs:string"/>
          <xs:element name="body" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    XML Data:
    <?xml version="1.0"?>
    <note>
      <to>Tove</to>
      <from>Jan</from>
      <heading>Reminder</heading>
      <body>Don't forget me this weekend!</body>
    </note>

  • Import csv with date into HANA

    Hi,
    I have a table with multiple text columns and one date column in the csv I am trying to import I have the date as YYYY-MM-DD which I thought was the format I needed. Every time I select the csv and the table to import to then press next my whole studio freezes up and I have to do a force close.
    I attached the screen where I get to when it freezes. When I take this column out it loads fine.
    Can someone tell me the correct format for date to enter it in CSV, or what I am doing wrong?
    Thanks,
    Connor

    You may want to open a support incident for this.
    - Lars

  • Help with Importing Excel Data into Formatted Tables

    This is my first post, here, so please be gentle!
    I am a relatively new user of InDesign CS4, and I am creating a 70-pg manufacturer's price book.  A very large portion of each page is going to be size and price information imported from a large Excel spreadsheet.
    I have created the table format that I'd like to use for each page, but the trouble comes when I import the Excel data into that table.  For some reason, when I import, it all dumps into one cell.  Would it be best to import as an unformatted table, and then format the table each time, or is there a way to simply import the data into my pre-formatted table?  I've seen how the former is done, but the latter seems much easier (...although that could be my inexperience talking).
    Any advice would be greatly appreciated!
    Thanks so much,
    Laura (V1500)

    Thank you both so much for your time!  This is exactly what I needed.
    Cheers
    Laura

  • Importing excel data into ZAM 7.5 using SQL2005

    Hi,
    I am running ZAM 7.5 and have about 6500 workstation records in inventory. I have an excel spreadsheet that has been maintained for several years with some demographic info in it such as Site, Department, Building, etc for about 4000 of those workstations. I would like to get that information into the ZAM SQL2005 database. Can I import the data into the SQL database directly or is there a tool to do it? There are no purchase records tied to this data so using the purchase record import does not seem like an option. Any advice?
    Thanks,
    Jay

    Originally Posted by JoeyGuida
    I have found this document to very usefull.
    How to import an Excel file into SQL Server 2005 using Integration Services
    How to import an Excel file into SQL Server 2005 using Integration Services | Servers and Storage | TechRepublic.com
    Do you know what table to import this data to?

  • Importing excel data into oracle tables

    Hello gurus,
    Importing excel data into oracle tables..
    I know this is the most common question on the thread ...First, i searched the forum, i found bunch of threads with loading data using sqlloader, converting excel into .Txt, tab delimited file, .csv file etc....
    Finally i was totally confused in terms how to get this done....
    Here is wat i have
       - Excel file on local computer.
       - i have laod data into dev environment tables(So no risk involved, but want to try something simple)
       - Oracle version 11.1.0.7
       - Sqlplus and toad (editors)
    Here is wat i like to do ....i dont know if its possible
        - Without going to unix server can i do everthing on local system by making use of oracle db and sqlplus or toad
       SQLLOADER might be one option...but i dont want to go the unix server for placing files and logs and stuff.
    Wat will be best and simplest option to do?? and wat format will best to convert from excel into csv, or txt or tab delimited etc.....
    If you suggest sqlloader, any code example will be greatly appriciated.
    Thank you so much!!!

    Hi,
    user642297 wrote:
    Imran,
    This is increadible option in toad!!! It works absolutely sweet!! I have toad 9.7 version. IT works great. Thank you so much!!You are welcome :)
    Well i have further discussion on this ....this option is great if you doing in staging or development area. What if your doing in prod?? If you automating the sqlloader then how do u do it?? I think we still need to stick with traditional approach of laoding data by making use of SQLLoader right ?? If m wrong please correct me.well, in our case, we do have access to a custom schema in prod where we create the staging table and load the data from datafiles.
    try this:
    load data
    infile 'C:\dest.csv'
    into table dest_table
    fields terminated by "~" optionally enclosed by '"'
    TRAILING NULLCOLS
    (name,
    owner_nm,
    description_column,
    UPDT_DT DATE 'MM/DD/YYYY')
    {code}
    you can get more info about sql loader and your error here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm
    http://www.allinterview.com/showanswers/53766.html
    And one more quick question ...i found an example of control file , in that i see .dat format file. Is it a data file ?? can i try that option ?? But in excel i didnt see to convert the .dat format file.
    Any thoughts ???
    It is same as a delimiter text file.
    steps to create a .dat file (from a excel file):
    1. Insert a column between two columns and populate it with the delimiter (in our case, it is ~)
    2. Save the file as unicode text.
    3. Open the file in text editor and remove all the tabs (find an replace with blank)
    4. Save the file as "DEST.dat". Select encoding as UTF-8 while saving.
    5. Your .dat file is ready.
    Regards
    Imran
    Edited by: Imran Soudagar on Apr 22, 2010 10:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Want to load excel data into oracle table with out changing it to CSV

    Hello all,
    I have a requirement in dumping excel data into oracle database table without changing it to CSV file and this has to be used in normal sql/plsql environment i.e., pkg/procedure cant be used in the forms also...
    so, can u guys can help me out in this
    thanks.............

    The link Pavan provided discusses Oracle Heterogeneous Services. This allows you (using ODBC) to create a database link from Oracle to a non-Oracle data source like Excel. This would allow you to query the Excel data source from SQL*Plus or any other client tool. But that is probably going to require that your Oracle database is running on Windows since I'm not aware of any Excel ODBC drivers for Unix.
    Another potential option would be to write a Java stored procedure that parsed the file. There are a few different Java libraries that can read and write Excel data files. You could load one of those libraries into the database's JVM and then write Java code that parsed the file. You would then be able to call your Java stored procedure from PL/SQL.
    Justin

  • Step- by- Step on How to Load Excel data into Crystal Reports?

    Hi Friends,
                      Can anyone send me a Step- by- Step on How to Load Excel data into Crystal Reports? Pls help me. Thanks in Advance.
    Vijay

    It's also important to 'prep' the excel file prior to connecting to it.
    Give the data tab a meaningful name
    Make sure the column headers are unique and that every column has a header
    Delete any blank tabs
    If you have trouble with Excel changing the data type of a field (say, a social security number you want to be a string value rather than a number so you don't lose leading zero) an alternative would be to save the spreadsheet file as a CSV, create a schema.ini to specify the data types for each column (example below) and use the same steps to connect except instead of choosing Excel 8.0, scroll to the bottom and choose Text.  You have to make sure the CSV file is in the same folder as the schema.ini file that defines the columns.
    Schema.ini example:
    200912PUSD.csv
    ColNameHeader=True
    Format=CSVDelimited
    MaxScanRows=25
    CharacterSet=OEM
    Col1=SSN Char Width 9
    Col2=LAST_NM Char Width 25
    Col3=FIRST_NM Char Width 25
    Col4=DOB Date
    Col5=STDNT_ID Char Width 10
    Col6=SORTKEY Char Width 10
    Col7=SCHOOL_NM Char Width 30
    Col8=OTHER_ID Integer
    Col9=GRADE Char Width 2
    The filename in the first line needs to have the []  brackets around it, but I couldn't get it to display in this forum correctly.
    Edited by: Eric Petersen on Jan 27, 2010 9:40 AM

  • How to import a excel file into database?

    hi all,
    How can I import a excel file into database?
    What I need to do first?
    Thanks,
    Amy

    1. Create a conrtol file in your disc(with notepad) ex
    test_loader.ctl
    LOAD DATA
    INFILE='C:\Testcsv.csv'
    into table test_table
    FIELDS TERMINATED BY ','
    TRAILING NULL COLS
    (ID,COL1,COL2,COL3)
    The table descrption is
    scott@ORCL> desc test_table;
    Name Null? Type
    ID NUMBER
    COL1 VARCHAR2(10)
    COL2 VARCHAR2(10)
    COL3 VARCHAR2(10)
    scott@ORCL>
    2 .Create a file testcsv.csv from your excel file you want to load with " save as" csv comma seperated value
    in your hard disc c:\
    3. in dos command mode write
    C:\>sqlldr scott/tiger control=c:\testcsv.ctl log=c:\testcsv.log
    Thats it!

  • Unable to import the excel template into form in HFM

    Has any one came across this issue that I am facing now?
    I have a form in HFM and I exported the form to Excel and the export works fine. but when I import the excel template into form, it was not successful. I have 250 rows in the template. I deleted 50 rows and tried to import and it worked fine . Is there any row limit on this?
    Below here is the error message that I am getting
    An error occured. Please contact your administrator
    Error Number: - 2147467259
    Error Description:007~Unexpected error~The function returned |.
    Error SOrce: request Object
    Page on which error occured:/hfm/data/processImportWdeffromExcel.asp
    I appreciate any ideas on this

    What version of HFM and Excel?
    Make sure you honor the file extension requirements for 2007 docs and import the same as they are exported.

  • Upload excel data into Internal table

    Hi,
    I'm trying to upload excel data into internal table, well the excel file layout will be different on each run of the report.
    Excel file will have 60 columns and 500 record limit. I can upload the excel data using 'ALSM_EXCEL_TO_INTERNAL_TABLE' and 'KCD_EXCEL_OLE_TO_INT_CONVERT' but the output table is generates 60 lines for each record i.e.., 60 * 500 = 30,000 which could cause performance.
    I try with the FM 'TEXT_CONVERT_XLS_TO_SAP', but this will only work if the file structure is static. It didn't work for dynamic file layout. Even GUI_UPLOAD doesn't work to upload excel file, it will work if I convert the file to Tab delimited file.
    Please advise if you know any alternate procedure to upload excel data into internal table.
    Thanks,
    Kumar.

    Moderator message - Cross post locked
    Rob

  • Loading data into HANA DB (using hdbsql client) with Control file.

    Hi,
    I am working on a Project where the requirement is to load data from a csv file into HANA Database.
    I am using HDBSQL, command line client on a windows machine to upload the data into HANA DB on a linux server.
    I am able to successfully use the HDBSQL to export the file.
    I have the following questions w.r.t to Bulk uploading data from CSV:
    Where should the CSV file reside? Can this be in the windows machine or is it mandatory to have in the dropbox location.
    Where should the control file reside? Can this be in the windows machine or is it mandatory to have in the dropbox location.
    Where will the error file reside in case of errors?
    I am new to this and any help is much appreicated.
    Thanks,
    Shreesha

    Hi Shreesha,
    Where should the CSV file reside? Can this be in the windows machine or is it mandatory to have in the dropbox location.
    Where should the control file reside? Can this be in the windows machine or is it mandatory to have in the dropbox location.
    Where will the error file reside in case of errors?
    We need to create the DATA,CONTROL and ERROR folders on the linux server on which HANA is installed.( or a server accessible to SAP HANA server )
    Hence we need to SFTP the file to HANA server to further load into Table.
    Also have a look on the similar requirement on which i worked
    SAP HANA: Replicating Data into SAP HANA using HDBSQL
    Regards,
    Krishna Tangudu

  • How to develope application for converting excel data into oracle database

    I am very new to the oracle world. I want to develop application for converting excel sheet into oracle database using oracle forms. I have basic knowldge of oracle but i am totally new to the forms. Can anybody tel me step by step procedure to do this task? Please help me out in this problem.
    Thanx in advance.

    Hello,
    just do a "Search" in this forum with words "excell to oracle"... and you could find lot of posts about that, i.e.:
    Re: How to load excel-csv file into oracle database
    Jose L

  • How to write a procedure to load the data into a table using xml file as input to the procedure?

    Hi,
    Iam new to the xml,
    can u please anyone help me how to write procedure to load the data into a table using xml as input parameter to a procedure and xml file is as shown below which is input to me.
    <?xml version="1.0"?>
    <DiseaseCodes>
    <Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    </DiseaseCodes>.
    Regards,
    vikram.

    here is the your XML parse in 11g :
    select *
      from xmltable('//Entity' passing xmltype
    '<?xml version="1.0"?>
    <DiseaseCodes>
    <Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    </DiseaseCodes>
    ') columns
      "dcode" varchar2(4000) path '/Entity/dcode',
      "ddesc" varchar2(4000) path '/Entity/ddesc',
      "reauthflag" varchar2(4000) path '/Entity/reauthflag'
    dcode                                                                            ddesc                                                                            reauthflag
    0                                                                                (I87)Other disorders of veins - postphlebitic syndrome                           0
    0                                                                                (J04)Acute laryngitis and tracheitis                                             0
    0                                                                                (J17*)Pneumonia in other diseases - whooping cough                               0
    SQL>
    Using this parser you can create procedure as
    SQL> create or replace procedure myXMLParse(x clob) as
      2  begin
      3    insert into MyXmlTable
      4      select *
      5        from xmltable('//Entity' passing xmltype(x) columns "dcode"
      6                      varchar2(4000) path '/Entity/dcode',
      7                      "ddesc" varchar2(4000) path '/Entity/ddesc',
      8                      "reauthflag" varchar2(4000) path '/Entity/reauthflag');
      9    commit;
    10  end;
    11 
    12  /
    Procedure created
    SQL>
    SQL>
    SQL> exec myXMLParse('<?xml version="1.0"?><DiseaseCodes><Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity></DiseaseCodes>');
    PL/SQL procedure successfully completed
    SQL> select * from MYXMLTABLE;
    dcode                                                                            ddesc                                                                            reauthflag
    0                                                                                (I87)Other disorders of veins - postphlebitic syndrome                           0
    0                                                                                (J04)Acute laryngitis and tracheitis                                             0
    0                                                                                (J17*)Pneumonia in other diseases - whooping cough                               0
    SQL>
    SQL>
    Ramin Hashimzade

Maybe you are looking for

  • Trouble with iPhoto recently.

    First, it has taken to hanging after a minute or so as it tries to "sync albums with Facebook". Then I lost all my thumbnails. I rebuilt everything at least once, got most thumbnails back, except the ones associated with RAW files. Nothing seems to b

  • HT4972 how change computer with which to sync?

    I want to change the computer with which I normally sync from my old to my new computer. I have de-authorised my old computer in the hope that my new computer would become the new preferred one. It doesn't though. How can I change this successfully s

  • Installing new versions of iTunes

    I already have iTunes on my computer. I started to download the newest version of iTunes, but the installation got cancelled midway through the download. Now I can't open iTunes on my computer. How do I get the installation program to come back up so

  • Total Order Value - FD32

    Hi, There was a difference in Total of Order values in T code VKM4 and order value in FD32. I noticed that VKM4 was displaying all open orders irrespective of either it is blocked or released. But Open Order value in FD32 displays only the sum of ope

  • Open multiple PDF's...

    Is there a way to open multiple instances of Adobe Reader on Android?