SWT and Tables

Hi, i am developing a piece of software where i need to be able to edit the contents of an SWT table and then save any changes, i have been able to edit the cell contents, but am stuck saving the changes.
I found how to edit the table cells using a snippet from eclipses website:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet124.java?view=co
i am using and ArrayLIst, so i think i will need to insert a button, then save any updates, is there a way to tell the program save current cells and exit??
Any help would be greatly appreciated!
Thanks in advance.
Message was edited by: Moi
Symb0l

I have had a go but keep getting errors.
This is what i have for my button:
final Button button = new Button(resultsShell, SWT.PUSH);
          button.setText("OK");
          button.addSelectionListener(new SelectionListener() {
               public void widgetSelected(SelectionEvent event) {
                    for (int i=0; i<LeagueDatabase.leagueList.size(); i++){
                    LeagueDatabase.leagueList.set(i, table);}
I have tried saving from the table to the arraylist but i cant get the code right. I am not sure if i have set it up correctley, i wasnt sure how to save the whole contents of the table so i put a for loop in around it to see if that would help but it doesnt.
Please help again!
Thanks

Similar Messages

  • Topic: SWT and Renderers?

    Hey there!
    I have a question about the representation of SWT-Widgets. I need a table and one column of the table should be represented as a tree.
    In Swing, this is absolutely no problem. In the table model, I could return (maybe for column 3) nested data (instead of a string). Then, I implement a TableCellRenderer and return a filled tree as renderer component for column 3.
    Is there any way to realize this in SWT?
    Thanks for your help!

    I believe so. well, as long as there is an Eclipse project, there will be SWT and JFace. whether 'java embraces these technologies' is dependent on what you mean by that. Will they ever be considered the de facto windowing libraries for Java? doubtful. Will their use become more widespread? possibly, but the libraries need to mature a bit first IMHO; at the moment, the entire SWT project is driven by the needs of Eclipse. Any bugs that impact Eclipse, and any features that Eclipse demands, take precedence over any other bugs and features in SWT/JFace, and it's certainly no fun trying to build a commercial product on top of libraries that are treated this way
    As regards commercial importance, I've got SWT/JFace and the Eclipse RCP on my CV, and although I get a lot of calls from agents, only once has anyone rung me with a position that required knowledge of these libraries. That said, the market is suddenly more-and-more awash with so-called Rich Client Platforms ( Eclipse, NetBeans and Spring-RCP to name a few ) and if any one of them is destined to be a success, my money is on the Eclipse RCP, so it may just pay to have the skills
    Also, since everywhere I work seems to be an Eclipse house these days, my SWT/JFace and Eclipse RCP knowledge comes in very handy for quickly knocking together any test tools, utilities or what-not, and giving them to the rest of the developers as a nice Eclipse plugin

  • How to find how name of view and table using in Discoverer report

    Hi all,
    Please help me, i have requirement, i need name of views and tables used in discoverer reports.
    plz help its urgent.
    regards,
    Vivek Gautam

    As per my knowledge goes, We can see from Administrator which Folder is associated with a Workbook. Else you may have to manually open each and every workbook and look for the objects.

  • Field and Table for Pension Plan

    Can anyone tell me what are the field name and table name in Pension plan

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • Field and Table for PGI status updation

    Hi All,
    I want to know in which field and table the PGI status will get updated.
    i.e. once we do the PGI for a delivery in which table will this PGI status gets updated.
    Thanks in advance for help.
    Harini

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • Field  and Table name for purchaser

    I want to know the field and table name for purchaser id and purchaser name.
    Plz help me.

    Dear
    Purchaser name are define in Header level data in Purchase Order EKKO & Purchase ID define as a Purchasing Group
    Purchser Name EKKO-ERNAM
    Purchase I D  EKKO-EKGRP
    Regards
    Aamir

  • Field name and table

    Dear Friends ,
    I want to display discount , P&F , excise , tax , fright , octori , insurance  so what is the fiels name for all fields and table name .

    You have to create the report bu fetching the report from the table EKPO - Doc condition no KNUMV. Use this no in the table KONV to get all your requirements aginst the field KSCHL - Condition types.

  • Field NAme and Table Name

    Hi All,
    I got some output values from the legacy system with me but need to know whats the actual field name and table name to which i need to transfer these values. How can i do it, since which theres is not field name or despcription given for the data.
    Is there any way i can do it.
    Points will be rewarded for all useful answers.
    Regards
    AB

    if you know the transaction code you use to post the uploaded data in SAP, you just need to do BDC recording in using transation SM35. Record the whole process and create a program from the recording... and you wont even need to know the tables and field names-- almost everything will be done for you....
    All you need to do is replace record data with upload data.
    You can also try to look for a standard Function Module / BAPI which can do the processing for you and provide it with a table containing the upload data ...
    Reward points if useful

  • Where can i get   SALES  ORGANIZATION    FIELD and TABLE

    Can anybody tell me   where can i get   FIELD  and   TABLE  Name   OF  " sales organization    "

    Dear Sandeep,
    u will find VKORG is the Sales Organisation .
    u will find this Field in every related SD Module Table...
    Like ...VBAP,BKPF ..etc..
    Hope it helps...!!!
    Pls reward if Helpful...!!!

  • Storage Location Wise Stock Value field and Table

    Hi ,
    Please let me know the storage location wise stock value field and table.
    Regards
    Suresh

    Hi Suresh,
    As per my understanding it is not possible in a single Table.
    If this is required for customized Z report then use this logic it may gives the correct information.
    In the combination of MARD and MBEW.. From MBEW you can get the value for each Base Unit of Measure then multiply that value with storage location stock.
    It may usefull to u..in the mean time i will try for some other option.
    Please revert if u have any query.
    Regards
    Durga Sana

  • MIGO tr Serial number field and table?

    Hi guys,
                  can anybody tell me how to find the field name and table for Serial number in MIGO tr Code?
                     in MIGO the Serial number field and Structure are GOSERIAL-SERIALNO.but i was not able to find the Actucal Field name and table where i can get the values based on PO and Asset Number's?
    Thanks,
    Gopi.

    Hello,
    I'm looking at the same problem here. I found the table SER03 in which you can enter the the material document. This returns 1 line in this table and from this one you need the OBKNR element
    You can copy this data and paste it into table OBJK element OBKNR and this returns all serialnumbers for the relevant material document.
    My problem is that i can't get these items on the sapscript. (WESCHEINVERS 1,2 or 3)
    Greetings
    Edited by: Lode Vandecruys on Apr 9, 2008 11:04 AM
    Edited by: Lode Vandecruys on Apr 9, 2008 11:09 AM

  • Purchase Order released date field and table name

    Hi,
    Please tell me the  Purchase Order released date field and table name.
    Regards
    Deepak

    Hi,
    Table : EKKO.
    Fields : FRGKE,FRGZU.
    You can get release date of PO from CDHDR  table.
    give object value as your po number and check.dont forget to give leading zeros.
    The udate will be date field and transaction will be me29n for relaesed po.

  • How to add a field and table control to BP transaction.

    Hi,
    I have a requirement to add a field and table control to the 'Control data' tab of the Transaction BP.
    Can some on please help me if having a solution and with any relavant documents.
    Thanks in advance.
    Raj & Khader.

    Also explore with EEWB tcode.
    Refer this threads
    Re: EEWB
    Created New fields in Business Activity with EEWB
    Cheers
    Manohar

  • Cost Component structure field and table names

    Hey all,
    i need to code a BADI to push value of one column in cost component structure to another column in ccs for only order settlements..
    any idea how to do this??
    i am very new to abap please take it easy on ur answer..
    i coulndt even find in which table and fields these values are stored...
    thank you

    I have an OSS note, it tells you step by step how to config the badi u need.. but does not mention about the logic u ll use.. it is up to you....
    so i need to find the field names and tell take these and post them to these columns...
    i dont know if i make any sence, but this is all i need to do...
    so i have the body i have the logic but i dunno the import and export fields...
    i believe the table is ckmlkeph.... and field that populate the columns are kst0XX, but i cannot see the field name and table name if i select a line in the column and F1 ????

  • What is the field and table name to describe -Employee Hourly Rate or Emplo

    Hi,
    Can any one please tell me what is the field and table name to describe 
    Employee Hourly Rate or Employee Rate.
    Thanks for ur time.
    Murali.

    Hi Murali,
    The hourly rate is tied to a Wagetype & maintained in Infotype 0008. The database table is PA0008.
    the field could vary depending on the No of wagetypes maintained.
    regards,
    Suresh Datti

Maybe you are looking for

  • Unable to browse the hypertext in the upper part of a website by using Firefox

    I can't browse the hypertext in the upper part of a website by using Firefox. For example, in the website of Firefox, the cursor fails to change from 'arrow' to 'hand' when I point to 'Sign Out' or 'Inbox'. But it's ok for the remaining part of the w

  • ThinkVantage Toolbox with machines prior to Jan 2004

    So I've got an OLD T23 that I'm trying to install the Toolbox on, and get errors during install.  It's trying to send error messages to Microsoft (XP Home SP3) when it hiccups, and the message references pcdrcui.exe.  Once the message sends, the proc

  • Laptop Hinge is cracking

    I'm very angry that my HP M6-1045dx has a left hinge crack that has resulted from normal wear and tear. This computer is only a year and a half old and this should not be happening. I am a poor college student and it is unfair that this happened to s

  • Update statement for object table.

    Hi, I have created one type as Create type test as object( ins_by varchar2(30), ins_on date, upd_by varchar2( 30), upd_on date); and then created an object table as create table imst( i_code number(5), i_desc varchar2(35), i_op test); now i am able t

  • SRM Stuff

    Hi experts, Can any one give me guidelines on SRM Analytics and i need documentation on same. it's very urgent because one of the clients wants working on SRM Analytics i will assign points Thanks in advance Regards venu.