Reading Excel sheet the corresponding value

the corresponding value of another colum should be read from excel sheet .
soppose there are 4 coloumns and i enter the value of column one then colun 2,3,4 value should be read
Thanks
Sharad.

Duplicate post.

Similar Messages

  • Reading excel  sheet from out side of the server though sql developer.

    Hi ALL,
    Is it possible to read the excel sheet from the out side of the oracle server.
    If it possible please send me the sample code.

    Duplicate thread.
    Reading excel  sheet from local system though sql developer
    Also a FAQ
    SQL and PL/SQL FAQ

  • Read Excel sheet in KM using API.

    Hi all,
    I kept one Excel sheet (Xsl file) in KM. I want to read that Excel (Xsl) file by using API in NWDS.
    How to read ? Is this possible
    Helpful answer will be appreciate
    Thanks & Regards
    Thillai J

    Hi Thillai
    It is possible to read the files using any of the Java Excel API's ( like POI or JExcel or JDBC-ODBC bridge). It depends on your convenience and requirement as to which one to choose for.
    [POI|http://poi.apache.org/] is seem to be widely used.
    In your case, the sequence of actions will be as follows:
    1. Access the resource and get the content.
    2. Get an InputStream from the content object.
    3. Next, using this InputStream, the data can be read.
    4. Refer to [this|http://www.javabeat.net/articles/41-apache-poi-reading-excel-sheet-using-java-1.html] link as to how read data. (It is assumed that you have successfully retrieved the InputStream in Step 2)
    Hope that helps.
    Thanks
    Deepak

  • How to copy the corresponding values other fields in  Search help

    Hi All,
    My selection screen contains 5 fields. three are obligatory parameters, one date field and one select option.
    All are from the same table . I had created search help for one field .
    when I'll click the hit list of the search help I want the corresponding values to get copied to other fields in the selection screen, as my hit list contain values for all those fields.
    How Can I copy those values.
    Please help me on this.

    Hi,
    Please try this.
    In the search help set the export parameter for the other fields also.
    Thanks
    Naren

  • Converting a string to the corresponding value of type double

    Hey, im a really noob at this, but I need some help with this question. I've got to complete this in order to progress to my second year although im not doing programming and will not need it in the second year. The question is as follows:
    "Write a method called convertDouble as follows:
    public double convertDouble (String value) {
    This method should convert its parameter (a string like "3.1415") to the corresponding value of type double. If the string supplied is not a valid number, it should return 0.0 as its result. Note that you can use the method Double.parseDouble() to do the hard work for you. "
    To be honest I dont really have a clue what how to write this so any help would be much appreciated. Cheers guys

    Well the simplest way is to use Java's already inbuilt converter:
    which is if you have a string S which represents a double i.e 3.142
    You can use
    double number = Double.parseDouble(S); and thats it.
    The other way to do it is to loop through the string and check whether it is a number
    by using Character.IsDigit(ch) ? or somethign similar.
    and if it is a digit then subtract a fixed amount depending on its ASCII value.
    so if character with a value of 40 represents 0 (im not sure if it does) then
    any Digit character - 40 would give you the decimal value.
    Please ask questions if i dont make sense.
    Edited by: z0rgy on Aug 18, 2008 7:36 AM

  • Applescript to read Excel sheet

    Hi All,
    I'm a learner of applescript and I have a problem to solve so any help will be very appreciated.
    I have thousands of photographies in a folder called "images0". I just want to organize this photos by customer (every customer has its own folder)
    I have an Excel sheet with this information: column A: CustomerId / column B: photography name / and column C: name of folder (customer)
    How can I read this Excel sheet to make an applescript that automatically move every picture to its correct folder?
    Thank you very much to everybody!
    Alex

    Hi all
    I have reached to create what I asked for by taking examples from internet. I have done it step by step following my needs and for sure there is a better and easy way to do it but it works anyway!
    Now I want to create a repeat (loop) for that script but I do not reach to make it work!
    I have done the script with this features:
    1. Open and filter an Excel file with a given value through a dialog box
    2. Select the rows filtered and create a txt file with these content on it (the content are files names)
    3. Create a folder with the same name as the given value in step 1
    4. Move files from the source folder to the destination folder
    Anyone could help me please?
    Here you are the script:
    property c1 : "A"
    property r1 : 1
    tell application "Microsoft Excel"
      --open workbook workbook file name "Macintosh HD:Users:Alex:Desktop:Libro2.xlsx"
      activate object worksheet "Hoja1"
      set mycriteria to text returned of (display dialog "Num client" default answer "" buttons {"OK"} default button 1)
      autofilter range range "A:B" field "1" criteria1 mycriteria
      set {tRow, tCol, lastCell} to {first row index, first column index, last cell} of range object of autofilter object of active sheet
      select range (((get address of cell (tRow + 1) of column (tCol + 1))) & ":" & (get address of lastCell))
      copy range selection
      tell application "Finder"
      --set theDestinationFolder to "Macintosh HD:Users:Alex:Desktop" --choose folder
      set source_folder to "Macintosh HD:Users:Alex:Desktop:Images:FotoFinder2007:images0" as alias
      --make new folder at theDestinationFolder with properties {name:mycriteria as string}
      tell application "TextEdit"
      open file "Macintosh HD:Users:Alex:Desktop:direcciones.txt"
      activate
      tell application "System Events"
      keystroke "a" using {command down}
      keystroke "v" using {command down}
      keystroke "s" using {command down}
      end tell
      tell application "Finder"
      set thefoldername to mycriteria
      set this_folder to "Macintosh HD:Users:Alex:Desktop:Fotofinder"
      set theFolder to (make new folder at this_folder with properties {name:thefoldername})
      set source_folder to "Macintosh HD:Users:Alex:Desktop:Images:FotoFinder2007:images0" as alias
      set the_files to every paragraph of (read (file "Macintosh HD:Users:Alex:Desktop:direcciones.txt"))
      repeat with this_file in the_files
      try
      move item this_file of source_folder to theFolder --with properties {name:mycriteria as string}
      end try
      end repeat
      end tell
      end tell
      end tell
    end tell
    (*set theDestinationFolder to desktop --choose folder
    tell application "Finder"
      --repeat with theIncrementValue from 1 to 10
      make new folder at theDestinationFolder with properties {name:mycriteria as string}
      --end repeat
    end tell*)

  • How to open and read Excel Sheet from SharePoint 2013 Document Library using C# Visual Studio 2012

    Hi,
    To achieve these are the steps that I had followed :
    1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
    2. Add Documnet Library link to Trusted Connection Proivder
    3. Open Visual Studio as Run as Administrator
    4.Create an SharePoint 2013 Empty Project.
    5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
    6.Service added successfully
    7.Create a class file and add the Service Reference namespace
    There is no such class as ExcelService to call. 
    Please let me know if somebody knows how to open the Excel file into C#(2012)  either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
    Requirement is :
    Need to read the excel sheet  from Document Library and transfer all data into DataTable.
    Please help asap. 

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • Reading Excel sheet data in WebDynpro Java Application

    Hi,
    I need to read an excel file which is stored locally in my computer. How to use upload UI element (in WebDynpro Java) ?
    After reading the excel file the data is displayed in table structure in WD Java application. After doing some calculations on click of generate excel button the table data is translated into excel sheet. How to achieve this?
    Thanks,
    Anmol

    Hi,
       Hope the below links helps...
    Re: upload & download files 
    https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
    Thanks,
    Prakash

  • Cannot open my excel sheet, the message saying  library not loaded, image not found therefor the icon is showing on the screenrey

    For the first time I cannot open my Excel. The report is saying:image not found, therefor the icon is showing on my desktop.
    Before my Mac open with excel sheet, now it is not there anymore. I guess it it hiding somewhere. How to find it? As you can see I am not an IT . Please try to avoid hight tech wording.
    Many thanks,
    Eva

    Hi Eva,
    Open Console in Utilities & see if there are any clues or repeating messages when trying Excel.

  • Read excel sheet using jexcel

    i use a jexcel to read excel file
    i down a package named : jxl.jar
    this my code :
    public static void readFile() throws BiffException
    Workbook w;
    try {
    w = Workbook.getWorkbook(new File("C:/remon.xsl"));
    Sheet read_sheet=w.getSheet("Sheet1");
    int cols = read_sheet.getColumns();
    int rows = read_sheet.getRows();
    Cell cell = null;
    for (int j= 1; j < rows; j++) {
    for (int i = 1; i < rows; i++) {
    cell = read_sheet.getCell(j, i);
    catch (IOException e) {
    System.out.println("2");
    and this the error :
    Class jxl.read.biff.BiffException not found in try.
    *try {*
    *^*
    plza help
    Edited by: romee on May 13, 2008 2:24 PM

    I want to read the contents of an MS Excel file from
    java, is it possible using JavaBeans-ActiveX bridge or
    by any other java technologies, if possible, how ?Bridge2Java from IBM Alphaworks will do the trick for you.
    You can get it from here:
    http://www.alphaworks.ibm.com/aw.nsf/techs/bridge2java
    Using it, you can do things like the following (taken and abbreviated from the samples provided with the package):
    import Excel.*;
    public class QuickExcel
        public static void main(java.lang.String[] args) {
            Application app;
            Workbooks wbs;
            Workbook wb;
            Worksheet sheet;
            Range rangeA1, rangeA2;
            try
                com.ibm.bridge2java.OleEnvironment.Initialize();
                app = new Application(); // Excel.Application !!! :-)
                app.set_Visible(true);
                wbs = app.get_Workbooks();
                wb = wbs.Add();
                sheet = new Worksheet(wb.get_ActiveSheet());
                rangeA1 = sheet.get_Range("A1");
                String out = new String("This is a test");
                rangeA1.set_Value(out);
                // Wait five seconds
                Thread.sleep(5000);
                // Close the workbook without saving
                wb.Close(new Boolean("false"));
                app.Quit();
            } catch (com.ibm.bridge2java.ComException e)
                System.out.println( "COM Exception:" );
                System.out.println( Long.toHexString((e.getHResult())) );
                System.out.println( e.getMessage() );
            } catch (Exception e)
                System.out.println("message: " + e.getMessage());
            } finally
                app = null;
                com.ibm.bridge2java.OleEnvironment.UnInitialize();
    }

  • Read and assign the highest value

    Hi experts
           I want to read the highest value of the records in a condition basis for example matnr wise then assign that value to some records.
         how to read and assign the value, pls help me out.
    Thanks in advance.
    regards
    Rajaram

    hi
    sort itab by <fildname> descending.
    read table itab  into wa index 1.
    assign wa-fildname to the required records or variables
    regards
    vijay
    reward points if helpful

  • The Best Way to Assign an Enum to the Corresponds value of a String?

    I am reading from and xml file configuration file. The data being returned is stored as a String and corresponds to a Enum value. My question is - What is the best way to assign the enum the value that corresponds to value of the string?
    public enum Names { BOB, FRED, JIM, SAM }
    String name = "FRED";   // This is the data retuned from the xml file.
    Names n =              // I want to assign n the value of Names.FREDI know I could do an "if" statement. However, this is a contrived example with only a few enum values. In the real world, this enum list could be quite large.
    I have looked into reflection, but I don't know whether there is an easier way to achieve my objective?
    Thank you for your time,
    Harold Clements

    dcminter wrote:
    But for looking up "how do I do X with a subclass of type Y", I think the API documentation should be able to answer that.I think I disagree when it's a language feature.That's definitely a point worth observing.
    By that reasoning you'd expect to populate the API docs with definitions for class (and this and super) all over the place.I think you're exaggerate, and you know it ;-)
    If those were to be mentioned in the JavaDoc, they should obviously go into the documentation of java.lang.Object only.
    I suppose you could have a "synthetics" section to the docs in much the same way that the inherited methods and fields are defined but it doesn't seem very useful.It's not useful if it's just clutter that's the same everywhere, of course.
    But in this particular case a simple "note that enum classes have a syntetic valueOf() method that does foo bar baz" in the body of the class documentation would have been a nice guesture (especially since that part is pretty small here anyway).
    And yes, I also think that the length field of arrays should find some mention in the JavaDoc. I don't know how and where, 'though.

  • Help:NoSuchMethodError thrown when reading excel sheet  using jxl API

    I'm trying to read data from an Excel-2003 sheet using this code:
    15. File file = new File("EmpDetails.xls");
    16. jxl.Workbook workbook = jxl.Workbook.getWorkbook(file);                              
    17. jxl.Sheet sheet = workbook.getSheet(0);
    18. jxl.Cell cell1 = sheet.getCell(0,0);I'm getting this java.lang.NoSuchMethodError: common.Assert.verify(Z)V. The StackTrace is given below:
    Exception in thread "main" java.lang.NoSuchMethodError: common.Assert.verify(Z)V
         at jxl.read.biff.SSTRecord.getString(SSTRecord.java:417)
         at jxl.read.biff.LabelSSTRecord.<init>(LabelSSTRecord.java:56)
         at jxl.read.biff.SheetReader.read(SheetReader.java:306)
         at jxl.read.biff.SheetImpl.readSheet(SheetImpl.java:611)
         at jxl.read.biff.WorkbookParser.getSheet(WorkbookParser.java:204)
         at com.scjp.IO.ExcelJXL.main(ExcelJXL.java:17)Please help.

    Thanks a lot for the reply.
    I had both jxl.jar and xlrd.jar in the classpath and xlrd.jar was loaded before jxl.jar.
    There is a conflicting common.Assert.class file in xlrd.jar and there is no verify method in it.
    That was creating the problem. I loaded the jxl.jar file before the xlrd.jar and it is working fine.
    Thanks a lot for the help!!! :)

  • Read Excel sheet contents using java/javabeans

    I want to read the contents of an MS Excel file from java, is it possible using JavaBeans-ActiveX bridge or by any other java technologies, if possible, how ?

    I want to read the contents of an MS Excel file from
    java, is it possible using JavaBeans-ActiveX bridge or
    by any other java technologies, if possible, how ?Bridge2Java from IBM Alphaworks will do the trick for you.
    You can get it from here:
    http://www.alphaworks.ibm.com/aw.nsf/techs/bridge2java
    Using it, you can do things like the following (taken and abbreviated from the samples provided with the package):
    import Excel.*;
    public class QuickExcel
        public static void main(java.lang.String[] args) {
            Application app;
            Workbooks wbs;
            Workbook wb;
            Worksheet sheet;
            Range rangeA1, rangeA2;
            try
                com.ibm.bridge2java.OleEnvironment.Initialize();
                app = new Application(); // Excel.Application !!! :-)
                app.set_Visible(true);
                wbs = app.get_Workbooks();
                wb = wbs.Add();
                sheet = new Worksheet(wb.get_ActiveSheet());
                rangeA1 = sheet.get_Range("A1");
                String out = new String("This is a test");
                rangeA1.set_Value(out);
                // Wait five seconds
                Thread.sleep(5000);
                // Close the workbook without saving
                wb.Close(new Boolean("false"));
                app.Quit();
            } catch (com.ibm.bridge2java.ComException e)
                System.out.println( "COM Exception:" );
                System.out.println( Long.toHexString((e.getHResult())) );
                System.out.println( e.getMessage() );
            } catch (Exception e)
                System.out.println("message: " + e.getMessage());
            } finally
                app = null;
                com.ibm.bridge2java.OleEnvironment.UnInitialize();
    }

  • Report columns not exported to excel if the column values are links(URLs)

    Hi Friends,
    I am facing this weird situation in my development environment at work using Apex 3.1.2.00.02.
    There is this report where I am using this huge query below to show the statistics of various file loads.
    SELECT f.load_date "Load Date",
           c.cust_name "Customer",
           a.file_id "File ID",
           f.rec_count "Total Records Processed",
           a.success "Successful Records",
           a.file_translation_errors "Customer Validation Errors",
           a.data_referential_errors "CS Validation Errors",
           a.no_activity_type_assigned "No Activity Type Assigned"
      FROM (SELECT   file_id,
                     NVL (MAX (success), 0) success,
                     NVL (MAX (file_translation_errors), 0) file_translation_errors,
                     NVL (MAX (data_referential_errors), 0) data_referential_errors,
                     NVL (MAX (no_activity_type_assigned), 0) no_activity_type_assigned
                FROM ((SELECT   file_id,
                                COUNT (*) success,
                                NULL file_translation_errors,
                                NULL data_referential_errors,
                                NULL no_activity_type_assigned
                           FROM ah_activity_external
                          WHERE status_id IN (43, 53)
                       GROUP BY file_id)
                      UNION
                      (SELECT   file_id,
                                NULL success,
                                COUNT (*) file_translation_errors,
                                NULL data_referential_errors,
                                NULL no_activity_type_assigned
                           FROM ah_cust_gis_arch
                          WHERE status_id IN (1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 22, 23)
                       GROUP BY file_id)
                      UNION
                      (SELECT   file_id,
                                NULL success,
                                NULL file_translation_errors,
                                COUNT (*) data_referential_errors,
                                NULL no_activity_type_assigned
                           FROM ah_cust_gis_arch
                          WHERE status_id IN (24, 15, 16, 17, 18)
                       GROUP BY file_id)
                      UNION
                      (SELECT   file_id,
                                NULL success,
                                NULL file_translation_errors,
                                NULL data_referential_errors,
                                COUNT (*) no_activity_type_assigned
                           FROM ah_activity_internal
                          WHERE status_id IN (26, 31)
                       GROUP BY file_id))
               WHERE file_id IN (
                        SELECT file_id
                          FROM ah_chain_file
                         WHERE chain_id = :p2_customer
                           AND load_date BETWEEN :p2_load_start_date AND :p2_load_end_date)
            GROUP BY file_id) a JOIN ah_chain_file f ON (    a.file_id = f.file_id
                                                         AND f.file_default = 'N')
           JOIN ah_chain c ON (f.chain_id = c.chain_id)In the above query I have made the following columns as links which would redirect to other pages showing the respective records.
    1) "Successful Records"
    2) "Customer Validation Errors"
    3) "CS Validation Errors"
    4) "No Activity Type Assigned"
    Also I have enabled CSV output under "Report Export"
    Now the issue is when I downloaded this entire report into spreadsheet, only the non-url columns are being exported.
    I have even made sure that "Include In Export" under Column Attributes is set to YES.
    I tried to reproduce this issue using Dept & Emp tables but it seems to be working there.
    I don't know if it is the query which is causing this issue or a genuine Apex bug.
    Hope someone might have faced some thing like this earlier.
    Appreciate your thoughts on this.
    Thanks,
    Raj.

    Raj,
    see if this helps you:
    http://apex.oracle.com/pls/otn/f?p=31517:22
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • I would like to create a folder so my email can be moved

    I would like to create a folder so I can send my email to another location.  HOw do I move it and create this folder

  • Import .par file into NWDS and Run without deployment ?

    Hello All,       I'm new to the NWDS and the Portal. I've many Qns on my Requirement. Hope u guys can help me out in resolving my Issues. My Requirement is like this :- 1. I need to create a Portal Application which calls an URL. 2. But before develo

  • Sender and Recipient has same email address

    Hello ALl,  I have an problem on the email sending. We have application to send email to internet. But many emails are not delivered to the internet. When i see message tracking i can see Sender and Recipient has sender email address. (Same Email add

  • SAPCCM4X.03 Windows Service stops after 3 sec.

    Hi! I would like to set up the SAPCCM4X agent on the satellite system. The installation with the commando >sapccm4x -R pf=... endes without any errors. The problem is that the appropriate SAPCCM4X.03 Windows Service stops after 3 sec. The output on t

  • Support pact: report execution time

    Hi all, we have got one report....that report is working perfectly fine in one of our system taking about 2 hrs run time but it taking about 13-14 hrs in our other box where we applied the Support Pack recently...so I was just wondering what may be t