Excel sheet values as Inputs

Hi all,
I am very very new to Java and especially Swings. I am trying to develop a GUI application which takes inputs from the values present in an Excel sheet column and populate it in a ListBox. I want my application to function something like the 'Filter' option in the MS Excel.
For e.g.
The Excel sheet columns should be like the foll;
Designation Name
Manager John
Officer Smith
Clerk Dude
Manager Smithson
Clerk Johnson
Staff Mark
All the end user should do is to enter the path of the excel sheet and the 2 ListBoxes on the GUI should get populated with the data in the respective
columns, shown above. If I select "Manager" in my first ListBox automatically in the second ListBox, the values "John" and "Smithson" should get populated. Can this be done in Swings using Java?
If I have posted the question in the wrong forum, please guide me to the right location to post this.
Thanks in advance,

NewToNetNeans wrote:
Well, to open and read any type of file should i go through the I/O streams of Java? Well, you can open any type of file in Java, but that's a far thing from being able to understand the contents of the file. That's where other tools come in.
But how to populate this in a comboBox or ListBox?Don't think of it as directly tying some arbitrary format input file to a ListBox. Think about two steps:
1) Reading a file and getting some kind of data structure (or, better yet, object set) that exposes the data and the characteristics of the data and if possible the business logic that uses the data.
2) Writing a GUI that uses that data or object set.
Any given program can do neither, one, or both of those steps.

Similar Messages

  • How can i take an excel sheet record as input into my report

    Hi
    I am having one object.I need to develop code for this.I can take excel sheet record as input.I thought it is some kind of BDC.But my TL told me that it is an enhancement.How can I start this object.
    1.If it is a BDC : I am very new to BDC.I need total description how to start and populate.
    2.If it is an enhancement : How can I take excel sheet record to input in to my object.
    Thanks & Regards,
    Aruna.

    It seems neither BDC nor Enhancement.
    See it could be some awkward process but definately would be Handy.
    First create one dummy program in that code you just Take Excel data by simple Upload FM for Excel,Than from this program Use Submit <report> via selection screen.
    Here <report> is your actual program.so you may need simultaneously control two program.
    But my TL told me
    ...But what is TL stands for?
    TL True Love
    TL Total Loss
    TL Turn Left
    TL Team Liquid  ??
    Cheers,
    Amit.

  • Excel sheet values are displayed in Chinese while reading from server in WD

    Hi,
    I am reading an excel file values, from the excel sheet which is in the server. I am able to the read the values from webdynpro, but the values which i'm getting are in Chinese language. But the excel sheet there in server has the values in English.
    Please help on this.
    Thanks,
    Suresh
    Edited by: SureshKumar Arumugam on May 10, 2009 4:01 PM

    Hi,
    On the Microsoft Side: Ensure that the Excel Sheet - indeed has values in English. It may be that you may be reading the wrong excel sheet in the wrong folder. If not and the characters are in English and you are still reading in other languages - go to [Microsoft Help on Multiple Languages|http://office.microsoft.com/en-us/excel/HP052558391033.aspx]. Follow the procedure and change the languages for only English.
    On the SAP Side: If the above still does not work - check if you are using any .xlf files for Chinese. For more information on .xlf files and internationalization, please go to : [Internationalization of WDJ Projects|http://help.sap.com/saphelp_nw04s/helpdata/en/8e/7ce87a2aede645ae3cdc857b791590/frameset.htm]
    Thanks.
    p256960

  • Access excel sheet values

    hi,
    can anyone tell
    how to access the values on the Excel Spreadsheet and store them in Java Collection?
    thanks......

    hi,
    now am not getting the 0th cell value
    my code is here
    public class POIExample {
    public static void main( String [] args ) {
    try {
                HSSFWorkbook hssfworkbook = null;
                   ArrayList stringValues = new ArrayList();
                   ArrayList numericValues = new ArrayList();
    InputStream input = POIExample.class.getResourceAsStream( "work.xls" );
    POIFSFileSystem fs = new POIFSFileSystem( input );
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    HSSFSheet sheet = wb.getSheetAt(0);
    // Iterate over each row in the sheet
    Iterator rows = sheet.rowIterator();
    while( rows.hasNext() ) {
    HSSFRow row = (HSSFRow) rows.next();
    System.out.println( "Row #" + row.getRowNum() );
    // Iterate over each cell in the row and print out the cell's content
    Iterator cells = row.cellIterator();
    while( cells.hasNext() )
         HSSFCell cell = (HSSFCell) cells.next();
         System.out.println( "Cell #" + cell.getCellNum() );
         switch ( cell.getCellType() )
              case HSSFCell.CELL_TYPE_NUMERIC:
                 numericValues.add(String.valueOf(cell.getNumericCellValue()));
              //System.out.println( cell.getNumericCellValue() );
                        if(cell.getCellNum() == 2)
                                double items = cell.getNumericCellValue();
                                System.out.println("items--------->"+items);
                        else if(cell.getCellNum() == 6)
                                double priority = cell.getNumericCellValue();
                                System.out.println("priority--------->"+priority);
              break;
              case HSSFCell.CELL_TYPE_STRING:
                           stringValues.add(cell.getStringCellValue());
                        //System.out.println( cell.getStringCellValue() );
                        if(cell.getCellNum() == 0)
                                String operating_unit = cell.getStringCellValue();
                                System.out.println("operating_unit--------->"+operating_unit);
                        else if(cell.getCellNum() == 1)
                                String request_no = cell.getStringCellValue();
                                System.out.println("request_no--------->"+request_no);
                        else if(cell.getCellNum() == 3)
                                String actionof = cell.getStringCellValue();
                                System.out.println("actionof--------->"+actionof);
                        else if(cell.getCellNum() == 4)
                                String datereq = cell.getStringCellValue();
                                System.out.println("datereq--------->"+datereq);
                        else if(cell.getCellNum() == 5)
                                String datesent = cell.getStringCellValue();
                                System.out.println("datesent--------->"+datesent);
                        else if(cell.getCellNum() == 7)
                                String targetdate = cell.getStringCellValue();
                                System.out.println("targetdate--------->"+targetdate);
                        else if(cell.getCellNum() == 8)
                                String expecte = cell.getStringCellValue();
                                System.out.println("expecte--------->"+expecte);
              break;
              case HSSFCell.CELL_TYPE_BLANK:
                        System.out.println( cell.getStringCellValue() );
              break;
              default:
                        System.out.println( "unsupported sell type" );
              break;
    } catch ( IOException ex ) {
    ex.printStackTrace();
    }thanks...

  • How to Get the excel sheet formula from the server side into the j2me app?

    How to Get the excel sheet formula from the server side into the j2me application?
    Here the excel sheet is in server side.i want to do get the excel sheet values (only some part of the excel sheet based on some conditions) from server side into j2me.In j2me I want to done some client side validation based on the formula of excel sheet.Then i resend the new updated data to the server.
    But here deosn't know any mehtod to get the excel sheet formula from server side.So kindly help me to get the excel sheet formula from the server.
    So how to get the excel sheet formula frome the server side into j2me Application...
    Plz guide me to solve this issue...
    thanks & regards, Sivakumar.J

    You should not post a thread more than once. You've crossposted this question to another forum. I have deleted that one.

  • How do I search for a value in an Excel sheet using ActixeX

    I am already accessing my excel sheets however I need to be able to search the sheet for a certain value and return the row/cell location. Is there an activeX control that can do this?

    You will need a reference to the range to search. This can be the entire sheet if you wish. Just wire that to the method node Find. Here you can specify all of the typical search options. Wire your string or number into the What input. For the what to LOOKAT value, use -4163 for Value and -4123 for formulas.
    The reference returned is the range of the found value. You can wire it into the property node Row and Column to get the location.
    Michael Munroe
    www.abcdef.biz
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • How to export  the value  t.code me2s  to an excel sheet ?

    HI ,
           THIS IS  sandipan.  I am very  new in this field .  My requirement is when i am  going me2s . then i am giving   purchasing group ,  plant ,  Service  Number as input.  then it showing purchase doc . ,  item , porg , matl... ,  plant , crcy . It's ok. but after that when i am click  purchase order  it displays  Purchase order  for external  services  : overview  screen .  I need to export  this  screen value  to an excel sheet.    There is a option  system  .....>list .......> save ..........>local file.   but it is  in inactive mode. 
      how Is it possible ?  please answer me...
    Edited by: sandipan.sap on Feb 10, 2012 3:29 PM

    Hi
    U have to use Jxl  jar files(As suggested by previous reply ) in External DC Project, then only   u will able to work with data and property of excel files.
    Further ,take the help from following threads
    1.[Download Data to an excel sheet, with colours|Re: Download Data to an excel sheet, with colours;
    2.[Color cells in excel file|Re: Color cells in excel file;
    3.[Changing properties of only few selected cells in MS excel..??|Re: Changing properties of only few selected cells in MS excel..??;
    Best Regards
    Satish Kumar

  • Unable to display double values in Excel sheet using JExcel API

    Hi
    I am writing code to generate report in the form of Excel Sheet using JExcel API.
    Everything is going fine but whenever I want to put some double values in a cell it is only showing 2 decimal places. My problem is "I want to show upto five decimal places".
    Any kind of reply might help me lot.
    Thank U.

    If you enable the submit zero option, it still happens? This is a new feature on the display tabl
    #NumericZero Enhancements
    To display a numeric zero in place of an error message, you can enter #NumericZero in any of the three Replacement text fields. When you use the #NumericZero option:
    · Excel formatting for the cell is retained.
    · All calculations with dependency on the cell will compute correctly and will take the value of this cell as zero.
    · This numeric zero is for display only. When you submit, the zero value is NOT submitted back to the data source.
    You cannot set display strings for cells that contain an invalid member or dimension name (metadata error). Metadata errors produce standard descriptive error messages.
    Errors are prioritized in the following order from highest to lowest. The error message for a higher-priority error takes precedence over that for a lower-priority error.
    1. (Highest) Metadata errors
    2. #No access
    3. #Invalid/Meaningless
    4. #No data\Missing

  • Open excel sheet through program calculate value and fetch value in program

    Hi experts,
    My requirement is to open a excel sheet while i execute a report,There is some calculation that i need to do in excel sheet and want to fetch the calculated value back in to my program.
    Is there any way of doing so ?
    Regards,
    Kashyap

    Hi Aditya ,
    let me once more clarify with ur requirements .
    User is uploading an excel sheet.
    U doing validations on the records and getting the error in records.
    Displaying the uploaded excel sheet to user to rectify the errors.
    and then update the databse with the correct records.
    So for the above
    use WS_upload ,GUI_Upload  FM for  uploading the excel sheet in itab.
    using this itab ,Dynamically add one more column for the errors.
    Refer :Re: Could anyone tell me how can I add columns in a internal table dynamically?
    Display records in an editable ALV grid.
    BCALV_EDIT_01
    BCALV_EDIT_02
    BCALV_EDIT_03
    BCALV_EDIT_04
    BCALV_FULLSCREEN_GRID_EDIT
    BCALV_GRID_EDIT
    BCALV_TEST_GRID_EDIT_01
    BCALV_TEST_GRID_EDITABLE
    Also see this
    http://www.sapdevelopment.co.uk/reporting/alv/alvscr.htm
    then update the database
    Regards
    Renu
    Edited by: Renu Gusain on May 8, 2009 8:40 AM

  • Change an Object property based on a value coming from the Excel sheet

    hi all
    i've been able to bind a value from the excel sheet to my my component
    but i want to change a property of an object in my component based on this value at the run time.
    during the design time, it works fine
    for example, if my value called "_xvisible"
    and i use to it to hide some object.
    if i set _xvisible during the design time in excel, it works fine in the run mode.
    but during the run mode, if the value got changed, there is no affect.
    thank you
    Amr

    Hi
    See the xcelsius samples present inside xcelsius SDK. there are examples describing how to bind data which will work at runtime also.
    Hope this helps
    Rush-me

  • How to change the cell value in Excel Sheet in WD Java?

    HI,
    I have an application which is used to upload and download excel sheet.I can upload the excel sheet through Upload UI element and also able to download the same file through Download UI.But before download I want to validate the excel sheet.If data is not proper in the excel then I have to put some comment (cell comment).I am able to read each cell value,but not ble to put any comment.Once I pt commen in the cell,the download file should display the commented in the excel sheet.
    Please let me know how to update hte excel sheet.
    Sandip

    hi Sandeep,
    I'm not sure about the HSSF apis, however, i inserted the Cell Comments using jexcel apis. There is a method setComment(java.lang.String s, double width, double height) in class WritableCellFeatures using which you can insert cell comments
    For more details refer [link|http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/write/WritableCellFeatures.html]
    Abhinav

  • Print my input which i accept in my procedure in Excel Sheet through pl/sql

    Respected Sir,
    If i want to print my input in excel sheet which i took as a input parameter for my procedure
    for example my procedure:
    create or replace procedure create_csv('hello this is wonder world').
    I want to print hello this is wonder world in excel sheet.
    How can i acheive this through pl/sql procedure. with out utl_file predefined package.
    Please help me regarding this.
    Sincerely,
    Chandrasekhar B.S.

    maybe this link accessing oracle via access and excel might be of some help.

  • Formula in Excel Sheet shows #VALUE!.

    Hi,
    I have 11gr2 Forms/Reports with Windows Server 2008 64-bit.
    I have Excel sheet imported from Oracle Reports with destype=enhancedspreadsheet.
    Problem is in my Excel sheet, that when I add formula to multiply two columns, it shows #VALUE! error, which is actually occurs
    when we multiply a text column with number column.
    Although values in columns in number format (like 8600.000,45.000), it assumes these as text column and when
    I re-enter same values in columns manually, formula column shows result without any error.
    Is there any settings in REPORTS to avoid this error ?
    Thanks with Regards.
    Bhatt.

    Tom,
    This may seem like a stupid comment but have you checked to see if the excel formulas were put into the layout in the layout definitions screen and not in the layout while executing the layout?  Also does the layout have dynamic columns? 
    For example, if I have 12 Dynamic columns for the periods of the year based on a variable it would only show up in the layout definition screen as 1 data column but would be 12 columns on executing the layout and thus the Excel Formula need to be in the 13th column rather than the 2nd column
    Hope this helps,
    Mary

  • Value mapping to excel sheet

    Hi experts,
    we want to download the details of value mapping in excel sheet .
    Can you give us this solution.
    regards
    durai

    Hi Durai,
    Go through the following links to get an overview:
    Transports value mapping tables
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    https://www.sdn.sap.com/irj/sdn/elearn?rid=/webcontent/uuid/a680445e-0501-0010-1c94-a8c4a60619f8 [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    I think they may help you.
    Regards,
    Jyothi.

  • Downloading Block details record values onto an Excel sheet.

    Dear All,
    I am working on a forms in which there is a requirement to download all the record values populated on a block onto an excel sheet.
    The block is based on a database table.
    Please let me know if you have ever worked on such a requirement.
    Please reply ASAP.
    Thanks in advance.
    Regards,
    Sanu.

    Hello,
    Unfortunately u did not mention the forms version. Anyway,
    how to copy data from excel to oracle forms
    Transfer Data from excel to oracle forms
    http://searchoracle.techtarget.com/answer/Moving-data-from-Oracle-report-to-MS-Excel
    -Ammad

Maybe you are looking for

  • User defined field insertion problem in Stock Taking Report (PLD)

    We are creating one PLD for one of our customer for Stock Taking Report by modifying the existing sytem report. We will insert two user defined fields (Rack & Bin) from OITW table and link these with the warehouse code field which is at report header

  • Photoshop CC Memory Hog ...

    Photoshop CC is a Memory Hog  ... I have 4GB and PS CC is the only thing open my ram drops to like 895mb free... 

  • Please Help:  Can't Access iTunes Store?  What is Wrong?

    Hi there - please help! Since downloading the latest iTunes update I get the following error message every time I click on my iTunes Store: 'ITUNES COULD NOT CONNECT TO THE ITUNES STORE. THE NETWORK CONNECTION WAS REFUSED. MAKE SURE YOUR NETWORK SETT

  • Region in Query without compounded attribute

    In Query the 0Region is displayed as US/UT, as it is having a compounded attribute 0Country. But the client needs only the region i.e UT How to get this ? Thanks. Anita

  • Reprocessing of EBS

    Dear Experts, I want to manually reprocess the entries of Electronic Bank Statement. Can anybody help me, with the step by step procedure for the same. And also how to understand the error which comes in FEBA_Bank_Statement while doing the manual pos