Allow user to import excel file without using wizard ?

Hi !
How can i realize an application where the user can import an excel sheet. The user should just choose the file to import and all the other things should happen automatically. The files are allways equal, allways same colums, allways same delimiters and the destination table is allways the same, too.
With other words : how to build an own import wizard ?
I know that i can easily upload a csv file to the database. But how can i get access to the uploaded file from sql or pl/sql ? If this would work, i could make simple selects and insert them into the destination.
Perhaps someone can help me.
Greetings
Bernd

Bernd,
You're on the right track. For now, you'll have to write your own parsing routine and do your own inserts. If you follow the how to on uploading files, you can then simply take the blob and parse through it in pl/sql.
Sergio

Similar Messages

  • Importing Excel files and using a search function to use specific data based on user selection

    Hi, I'm trying to create a search and solve function within Visual Basic.
    I want to use the combustion equation C8H18 + 20(O2 + 3.76 N2) = 8 CO2 + 9H20 + 47 N2 to determine flame temperature using
    9*Hf of C02 + 8 * Hf H20 + 47 Hf N2 = Hf C8H18
    I have all of the values of Hf in an excel spreadsheet but I want to be able to search the spreadsheet as my application requires the user to change to fuel (the C8H18 bit) which changes the value of Hf.
    Is there a way of searching that excel file each time I run my program?
    Thanks
    Jack

    Thanks for answering so quickly.
    I've used that method before, and I'm sorry I didn't specify. 
    This will be used as a student learning aid and so the application itself and the tables will be downloaded as a zip file and so I don't believe the line below would work?
    I've heard about including excel as a reference file in the application but I haven't been able to find any further information on that.
    Thanks again
    Dim oWBa As Excel.Workbook = oApp.Workbooks.Open("C:\Users\v-youtan\Desktop\colleagues.xlsx")"

  • Can I link a query with an Excel file without using universe designer?

    Post Author: nicmac3030
    CA Forum: WebIntelligence Reporting
    I have an Excel file that contains a list of 200 seller codes.  The list is updated on a weekly basis.
    I need to create a query in Webi that shows ONLY those records in our main table that match one of the seller codes on the Excel list.
    Is there an easy way of doing this?  I don't really want to hassle our universe designer guy with a new file to import every week.  But if that's the only way to do it, we will have to.
    Back in BO v5 we used an Excel macro to add all the codes into a long text string with commas & pasted that into the query designer.  Unfortunately there are many queries that need to be updated, so hopefully there's a way to automate this.
    Thanks for your help.  Cheers, Nick

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    Nick,
    You don't mention what version of BusinessObjects that you are using.  If you are going to adopt XI 3.0 sometime soon, then you will have a definite capability of doing what you want with a new product included in 3.0 called "Rich Client".  At this moment I can't think of any other way to achieve what you want other than RC.  You can read more about RC at the Business Objects docs web site, here: http://support.businessobjects.com/documentation/product_guides/boexir3/en/xi3_web_intelligence_rich_client_en.pdf

  • How to import pictures into excel sheet without using report generation

    Dear Friends
    I want to know how to import the picture or picture file into excel sheet without using report generation..
    kindly come up with any suggestions or example code
    Regards
    Karthick
    Solved!
    Go to Solution.

    Thank you Rajesh 
    i am going through that vi
    Rajesh Nair wrote:
    Please go through below link
    http://zone.ni.com/devzone/cda/epd/p/id/3638
    Eventhough one subVI is missing i think it will be usefull for you.
    Regards
    Rajesh R.Nair
    Rajesh Nair wrote:
    Please go through below link

  • Importing excel file into OBIEE 10.1.3.4

    Hi,
    I am trying to import excel file into OBIEE and would like to use it as a data source. Fro this, I have already created an excel file (using MS excel 2007) with some sample data and named the data ranges with in the excel sheet as well. and I have placed that file under C:\ drive directly. And then created DSN and made sure that it points to the excel file.
    When I go to Administration tool -> Import from Database -> seelct ODBS 3.5 and selected my DSN and clicked OK. Here I have not provided the user name and password (though I have provided the username/pwd as Administrator it is not taking).
    when I click ok, it is throwing the following error :
    nQSerror:16001 ODBC error state : IM006 code: 0 message: [Microsoft][ODBCDriver Manager] Driver's SQLSetConnectAttr failed. [nQSError: 16001]ODBC error state: S1000 code - 5015 message: [Microsoft][ODBC Excel Driver] External table is not in the expected format
    Pls help me in rectifying this error. Many thanks in advance.
    Thanks
    Edited by: 858747 on 25-Aug-2011 05:47
    Edited by: 858747 on 25-Aug-2011 05:48

    Hi, I am facing the same issue.
    I am using OBIEE 11g with MS Excel 2007 file as source. I have created ODBC Driver by selecting Microsoft excel driver.
    NQSAdminTool.log gives error:
    ODBC error state: S1000 code: -5015 message: [Microsoft][ODBC Excel Driver] External table is not in the expected format
    The Admin tool gives error: "Unable to connect database using connection pool", when I try to 'update row count' in Physical Layer.
    Any quick resolution to this?
    Many thanks in advance.
    Edited by: user1603699 on 25-Oct-2011 09:28

  • Importing excel files - problem with single quote

    When importing excel files using 1.5, I can't get data with single quotes (') imported.
    When I run the insert statement given in SQLPlus I get "ORA-01756: quoted string not properly terminated", which is different than the error that SQL Developer gives me (see below).
    Also, I have a numeric value shown without a thousands comma-separator in the XLS file that I'm trying to load into a varchar2 field. But, the insert statements have added a thousands comma-separator which I don't want.
    REM Error starting at line 1 in command:
    REM INSERT INTO table (ID, NAME, CODE)
    REM VALUES (2427407, 'Ed-u-care Children's Center', '73,000');
    REM Error at Command Line:2 Column:37
    REM Error report:
    REM SQL Error: ORA-00917: missing comma
    REM 00917. 00000 - "missing comma"
    REM *Cause:   
    REM *Action:
    One last thing, TOAD gives a way to automap columns chosen from XLS to the columns in the database. It sure would be nice to have this functionality in SQL Developer.
    Thanks,
    Steve

    Did you consider both to be bugs (i.e., single quote issue and thousands comma separator issue)?
    Thanks

  • How to open a text file without using dialog box

    I can open a file using dialog box but I want to open a file without using any dialog box for writing.
    With the following commands a new file is created.
    File outputFile = new File("outagain.txt");
    FileWriter out = new FileWriter(outputFile);
    I want to open an existing file and put some more text in it using FileWriter or any other object
    rgds,
    Arsalan

    import java.io.*;
    class UReader
        BufferedReader in;
        BufferedReader input;
        String fileName;
        public UReader(String fileName)
            this.fileName = null;
            this.fileName = fileName;
            try
                in = new BufferedReader(new FileReader(fileName));
                input = new BufferedReader(new FileReader("A.b"));
            catch(IOException _ex) { }
        public final String getContent()
            String txt = "";
            try
                while(in.ready())
                    txt = txt + in.readLine();
                    txt = txt + "\n";
                in.close();
                txt.trim();
            catch(IOException _ex) { }
            return txt;
        public final String getLine(int row)
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            if(row <= getRows()) {
                try
                    for(int i = 0; i < row; i++)
                        txt = input.readLine();
                    input.close();
                catch(IOException _ex) { }
            } else {
                txt = "Index out of Bounds";
            return txt;
        public final int getRows()
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            int rows = 0;
            try
                while(input.ready())
                    txt = input.readLine();
                    rows++;
                input.close();
            catch(IOException _ex) { }
            return rows;
    import java.io.*;
    import java.util.*;
    class UWriter
        PrintWriter out;
        String fileName;
        String[] txt;
        static int NEW_LINE = 1;
        static int APPEND = 0;
        public UWriter(String s)
            fileName = null;
            txt = null;
            fileName = s;
            try
                out = new PrintWriter(new BufferedWriter(new FileWriter(s, true)));
            catch(IOException ioexception) { }
        public final void addContent(String s, int i)
            int l = 0;
            StringBuffer sb = new StringBuffer(s);
            s.replaceAll("\n\n", "\n###\n");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            if(i == 0) {
                try
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception) { }
            } else {
                try
                    out.println();
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception1) { }
        public final void writeContent(String s)
            int l = 0;
            s.replaceAll("\n\n", "###");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            try
                PrintWriter bufferedwriter = new PrintWriter(new BufferedWriter(new FileWriter(fileName, false)));
                for (int j = 0; j < txt.length; ++j) {
                    bufferedwriter.println(txt[j]);
                bufferedwriter.close();
            catch(IOException ioexception) { }
    }Maybe they are not the best codes, i wrote them a long time ago, so dont ask why i did anything wierd. :D
    But anyway it works.

  • Importing Excel File Setup by Columns

    I have an engineer that is requesting data to be converted from an Excel file for use in DIAdem. The file is a compilation of data based on a search query in a database. Each line is a seperate occurance logged in the database. In the example below "TEMPERATURE MAXIMUM" was searched over a certain time period for a particular Unit ID. To import this into DIADEM I would want to make each unique UNIT ID a group, and each unique Definition Description as a channel name within the corresponding group. For the data I would want to have Begin Capture Time as a time channel ( it would need to be organized from earliest date to latest) with it's corresponding value placed into the channel named by the definition description.
    I also have the ability to export the fiel from the database program into a .csv file.
    Can this be done usign the standard import wizard. I was unable to find a way.
    -MK
    Attachments:
    MKCImportExample.xlsx ‏10 KB

    Hi MK,
    You didn't see any difference because you didn't query the data in the file-- see the attached screenshot of what that looks like.  With a query you can pick exactly which rows you want to load from as many files as you want.  It's hard for me to guess your use case based on 14 rows of data that are all temperature.  Are you usual data files longer than this?  Do you ever have data other than Temperature in those data files?  Do you want to compare data from multiple files?
    I would welcome a set of ASCII files, if your process is to import those CSV or TXT files into Excel.  Then the DataPlugin could save you that steo as well.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Data Query View.png ‏102 KB

  • How to export the text edit data to excel file without splitting the data in excel file?

    how to export the text edit data to excel file without splitting the data in excel file?
    I have a requirement in SAP HR where in the appraiser can add comments in the area given and can export that to excel file. Currently the file is getting exported but the comments getting split into deifferent rows.
    I want the entire comment to be fit in one row.
    Please help.
    Thank you

    Hi,
    if your text edit value is stored in 'lv_string' variable.
    then before exporting the value to excel you have to remove CL_ABAP_CHAR_UTILITIES=>NEWLINE
    that is '#' from the variable lv_string.
    for that use code some thing like this.
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>NEWLINE in lv_string WITH space.
    I think this will do the trick.

  • Upload file without using file upload UI Element

    Hi all.
    I need upload a .txt file without using file upload UI Element because filename is not insert by user. The filename is generated by program. I try to use 'GUI_UPLOAD' and 'WS_UPLOAD' but don't work.
    Many thanks in advance.

    As you correctly pointed out we cannot use the gui_upload and gui_download fm's in webdynpro because they require sap gui and WD Components generally run in a HTML or Portal environment.
    The only option available is File Upload Element

  • Is it possible to import excel files automatically?

    Hi,
    I am able to import the excel file manually and the same map I used in port.. format as excel.. its automatic action.. When I place the file it getting picked but giving structural exception... the same file I can manaully process successfully by selecting the same file using type as excel instead of Port...
    When I select type as port, remote system .. when  I want to select port I can see the port which I defined in console but they are disabled.. wondering where I did wrong?? is it possible to import excel files automatcially??
    Thanks
    Rajeev

    Hi,
    Yes you understood corectly.. I am unable to import excel file automatically.. I created a new port with the map which I used manually of type excel... Before placing the file in the ready folder of this newly created port.. I tried to manually import using the port type... I see the port is disable to select.....
    If I place the fiile its throwing structural exception..... but the same file I am able to import using type as excel..
    After structural exception..I am able to select this exceptional port in import manager of type port.. manually it is successfull using the same map and same file which got structural error....
    In Console report says:
    Error: MS Access is not supported on this platform.
    Error: MS Excel is not supported on this platform.
    I am working on MDM 5.5.65.95 AND WINDOWS 7 64bit..
    Any inputs.
    Thanks
    Rajeev

  • How do I allow users to upload personal files through website?

    How do I allow users to upload personal files through our website?
    I am trying to allow the visitors the ability to upload images for a future contest we will be hosting. I am trying to build a submit form with personal fields (already got this done) along with a field they can upload 1 or 2 images. I want the form to send me an email with details along with image files. I have a BC webbasic+ account and I am using Muse for my web editing.
    Can someone point me in the right direction?

    Hi,
    You could apply a "file attachment" field within the web form.  If needing more than 1 file attachment you'll need to access your form code and hard-code the additional field. 
    The form will collect the file(s) and will be held within the case details under "related files".  You can also assign a workflow to recieve notifications however only 1 file will appear in each email.  To see the other files you'll need to access your order details. 
    All this can be create and managed within your site's admin.  yoursite.com/admin 
    Within the site admin...
    http://helpx.adobe.com/content/help/en/business-catalyst/using/create-insert-form.html (Creation of webform, etc)
    http://helpx.adobe.com/content/help/en/business-catalyst/sbo/customer-database.html#id_227 59 (Manage customer web form submissions)
    Hope this helps!
    -Sidney

  • Adding hyperlinks to imported excel file cells

    Good Afternoon All,
    I am having trouble assigning hyperlinks and defining names to the individual cells of an imported excel file (import into Visio). Ideally, I would like to be able to hyperlink shapes in other Visio pages (of the same
    workbook) to individual cells of the imported excel file and vice versa.  Is there any way of doing this? 
    Please let me know if I can clarify.
    -Tom

    In a similar thread from a few days ago:
    Albert Geven wrote:
    > You can also download from the developer zone our excel (goop)
    >library.
    >search for philips and you'll find it.
    We've used this with good success for creating multiple worksheets. If you
    like goop, its great. It may be worth a look for you. It's at this link
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&42E12CDCDBD1C682
    8625699D004EEFA8&cat=9C6DF90777E5A78206256874000FA14E
    Spencer
    "Jeff - PPL" wrote in message
    news:[email protected]..
    > Is it possible to send data to two different worksheets in an excel
    > file? For example, I have raw data and then calculations from that
    > raw data. Right now I have the raw data being sent to the exc
    el file.
    > I would like to be able to send the calculation results to the same
    > file but a new worksheet. Is this possible?
    >
    > Thanks

  • Best way to transfer files without using migration assistant

    upgrading from snow leopard to mavericks goes ok, but migrating files hangs with "less than a minute to go". What is the best way to transfer user files without using migration assistant?

    I keep backups of essential documents in Dropbox, and then the files can sync when I reinstall Dropbox.
    For larger collections of files, for example, my Documents folder, or iTunes or iPhoto libraries, I transfer them from a Time Machine Backup- just by going into the backup manually and restoring the folders.
    If you have files that can fit on a flash drive, then you can use that, which is very fast.

  • Opening JPG or PNG files without using PS

    I want to open simple JPG's without using PS CC.   Previously, I could open JPG's or png files with Apple's Preview; I would like to return to the simple and quick tool of using Preview.
    I have looked and can not seem to find a way to open my JPG or PNG files without using Photoshop.   Can you point me the way to accomplish this?
    Thanks,   Bob

    Joe,
    First, allow me to thank you for your reply.
    Allow me to also explain that I am handicapped and have suffered the effects of five strokes in recent years and then ask for some more help from you.
    When open any JPG image (or png, I think), it automatically opens in Photoshop CC (I also own PS 6).  This is not the desired effect, as I would like to just see the images using Preview, which is the way it used to work (before I acquired the CC application, I believe).
    I quickly tried to open an image using Preview (a PNG screen shot as you suggested), though I at a loss to use 'get info' command as you suggested, nor am I able to see the 'open with' from the drop-down in Preview.  So I have to ask you for more instructions if you can assist me further?
    I live in the Seattle area, if you can call me (I am always at home) at *removed for privacy*.  If you could call me that would be great.  With my impaired communications, I usually can understand verbal information better.
    Thanks again for getting back to me.
    Bob LaBouy

Maybe you are looking for