How to handle cell events like focus lost in  jtable

Hi,
I have faced a problem relating jtable.Upon focus lost on particular cell the values in the other cells need to change accordingly.Out of 7 columns, upon entering an integer value in one column accordingly 3 columns need to update the values fetched from database and get disabled.The columns being updated have a combobox in which the value is to be shown.....Please look at it and provide a working solution.
Looking forward,
chandra

Try using a TableModelListener:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=566133

Similar Messages

  • How to handle selection event in alv component

    Hi all,
        i am new to webdynpro abap. and i want to know how to handle selection event(such as select all / unselect ) in my simple alv application.
    Thanks very much

    Hi,
    By default when you use the selection mode for the ALV as Multi/Mutli No Lead then this option is enabled.
    Try to implement the event ONLEADSELECT and check wether this event is triggered or not.
    DATA: lo_value type ref to cl_salv_wd_config_table.
        CALL METHOD  lo_value->if_salv_wd_table_settings~set_selection_mode
          EXPORTING
            value = cl_wd_table=>e_selection_mode-multi_no_lead.
    Try to implement these event for ALV and put a break-point and test which event is getting triggered.
    ON_CLICK           
    ON_DATA_CHECK      
    ON_FUNCTION        
    ON_LEAD_SELECT     
    ON_STD_FUNCTION_AFTE
    ON_STD_FUNCTION_BEFO
    Please provide more inputs.
    Regards,
    Lekha.

  • Timeline: How to handle a still like a clip?

    I would like to paint on a clip I generated from a still.
    Now I can´t use the OnionSkins and if I paint my brushstroke
    is on the whole clip not only the first frame.
    Do you know any workaround?
    Thanks,
    Timo
    I´m working with CS6 on a Mac

    timolefronque wrote:
    Timeline: How to handle a still like a clip?
    I would like to paint on a clip I generated from a still.
    Now I can´t use the OnionSkins
    and if I paint my brushstroke is on the whole clip not only the first frame.
    Do you know any workaround?
    I'm having a problem understanding what you have written I use a PC not a Mac it may be a nomenclature thing.
    "I would like to paint on a clip I generated from a still."
      It sounds like you have created a clip.  What file format is this clip of yours.
      "Now I can´t use the OnionSkins"
      What are OnionSkins and where did they come from.
    "if I paint my brushstroke is on the whole clip not only the first frame."
    What in Photoshop did you paint on.  I just don't understand what your Photoshop active document looks like. Can you post a screen capture of Photoshop with your active document with Photoshop panels visible in the screen capture.

  • How to handle server event in component through BOL Concept

    Hi All,
                Please let me know how o handle Server event in Component through BOL Concept.
    Thanks,
    Prameela.

    Hi Prameela,
    If you want the server event to be triggered in the search view, you have to add the code in the GET_DQUERY_DEFINITIONS method.
      DATA: lv_getter TYPE string.
    CONCATENATE 'GET_P_' <rt_result>-field INTO lv_getter.
        TRANSLATE lp_getter TO UPPER CASE.                    "#EC SYNTCHAR
        TRY.
            CALL METHOD me->(lp_getter)
              CHANGING
                cs_result = <rt_result>.
          CATCH cx_sy_dyn_call_illegal_method.
    *     no P-Getter found
        ENDTRY.
    Regards,
    Leon

  • How to handle Valuechange events, when page bean is in request scope

    Hello balusc and forum mates,
    I want to know is there any good way to handle ValueChangeEvents events, when the page's bean in request scope.
    My problem is, I have a page having more than 1 value change event so How can I maintain page values at backing bean. My bean is request scope, I can't change to session scope.
    Please I really need it.

    Hi Frank...
    In my code i used almost same logic as Andrejus Baranovskis has explained in his Editable Table example...
    You can refer that example to see what problem I'm facing...
    http://andrejusb.blogspot.com/2007/04/create-edit-and-delete-operations-in.html
    The Bean Scope in this Example is Session scope...Save button is working fine...
    But as i Change the bean scope to Request scope then Save button is not working for Edit but it is working for Delete Action very well..
    I want that save button should work also for Edit action in Request Scope..
    Please Make me understand that why it is happened like that..
    and help me to find the solution..
    and Also if you have a better document to Explain the life cycle of Application in Different Bean Scope...So please provide me that Doc to me...
    It would be a great help for me to understand the concept of session...
    Thanks Frank
    Fizzz...

  • How to handle a phrase like a single word in a query rewrite template?

    Hi there,
    i would like to handle a case like this:
    "hewlett packard" printer
    I have a custom thesaurus where {hewlett packard} is a synonym of {hp}, and viceversa of course.
    Now, i can successfully find records like "hp printer" or "printer model hp 2575 "by issuing the following query:
    select * from sale_items
    where contains(item_name,
    'SYN(hewlett packard,cust_thes) AND printer')>0
    or its equivalent form containing curly braces:
    select * from sale_items
    where contains(item_name,
    'SYN({hewlett packard},cust_thes) AND printer')>0
    My problem is that i can't find a way of successfully passing the phrase "hewlett packard" as a single word in a query rewrite template like this one:
    select * from sale_items
    where contains(item_name,
    '<query>
    <textquery grammar="CONTEXT">{hewlett packard} printer
    <progression>
    <seq><rewrite>transform((TOKENS, "SYN(", ",cust_thes)", " AND "))</rewrite></seq>
    </progression>
    </textquery>
    <score datatype="INTEGER" algorithm="COUNT"/>
    </query>')>0
    When i run this query i get no rows.
    The same happens if i substitute curly braces with double quotes.
    So, how to get phrases to be recognized in the query rewrite template?
    Bye,
    Flavio

    I am unable to find out a way to search on the particular phrase like I have a document containing the text
    “Oracle Text is a good searching tool.” Now if searches for the phrase “searching tool”, it doesn’t return any rows but if I search for “searching” and “tool” in 2 separate queries, it gives the document.
    If any one has done it before, please tell me the solution.
    I have used the following queries to create index on BLOB column:-
    CREATE INDEX doc_ indx ON doctest(document)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS('lexer doc_lexer sync (on commit) ');
    select * from doc_test where contains(document, 'searching tool') > 0;
    select * from doc_test where contains(document,'searching') > 0;
    select * from doc_test where contains(document,'tool') > 0;
    Should I specify something while creating the indexes ?
    Regards
    Inderjeet

  • How to handle the events of business object (BAPI)

    Hi,
    How to register to BAPI event and handle?
    For example, for a business object 'inv', there is an event as 'created'.
    I want to insert entry in a z table when an inv is created.
    I assume that the 'created' event is triggered when an inv is created.
    How i can register to that event and handle that event so that i can
    insert an entry in z table.
    Thanks,
    Prasad

    ComponentListener?
    : jay

  • How to handle key events in iphone

    I want to be able to detect physical keyboard (e.g. bluetooth) events in an iOS app.
    In Mac, there is a class NSEvent which handles both keyboard and mouse events, and in ios (iphone/ipad) the counterpart of NSEvent is UIEvent which handles only touch events. I know ios API does not provide this functionality, but how can i handle key events in iphone???

    in my application header part of the page is common of all page. header.jsff contains comandmenuItem named "proceduralhelp". if I click proceduralhelp a pop up opens .
    in my login page when first time I open popup and press escape popup is not closing.
    rest of the cases after login escpe will cose the popup.
    only on the loginpage that to for the first time it is not closing when pressing up on escape key. (then we click on close button. and once again open the popup in loginpage now if we press escape it works).
    Thanks,
    Raghavendra.

  • How to handle keypressed event for form

    i have to handle keypressed event of a textfield control.
    I have tried by implementing itemstatechangelistner ........
    but as api specifies its behavior varies from device to device....it is guaranteed that the control is notified when losing its focus. But my requirement is to get notified for every keypressed time.....
    any idea.....pls help me

    Can't be done for TextField. Many devices (example:SE k700i) launch a separate editing screen to change the text in a TextField.
    db

  • How to handle LostFocus event for TextField in J2ME?

    Hi:
    I want to handle LostFocus event for TextField in J2ME.
    So can anybody help me.....
    Thank You

    MIDP API does not have LostFocus event.
    You can try setting ItemStateListener for the TextField ([if needed, click here for details|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/ItemStateListener.html]). API requires that +"...For implementations that have the concept of an input focus, the listener should be called no later than when the focus moves away from an item whose state has been changed. The listener should be called only if the item's value has actually been changed...."+

  • How to handle mousemove event in Acrobat?

    Hi, i am working on Acrobat plugin. how to handle mouse move event in acrobat using Acrobat SDK?. i have created menuitem. when i selected menuitem is activated now i want to handle mouse move event acrobat.
    Thanks in advance

    Thank You Leonard... For reply..
    AVPageViewCursorProc callback used for cursor coordinate..
    now i am displayed in the annotation.. but it is not show continuously... how can do it?
    whenever cursor changes, cursor coordinate should be displayed properly in the annotation. may i get some suggestion or sample.
    Thanks in advance..

  • How to handle softkey events

    hi all,
    The softkeys varies form device to device.so kidly say some genric way to handle softkey events.
    Thanks in advance
    Badri

    The only "generic" way to handle softkeys is to use Commands.
    shmoove

  • How to handle key events in popup component

    Is there any possibility to handle keyboard events after a popup is opened
    requirement : I want to close popup when I press escape key (by default this functionality is present but in some scenarios this is not working ) so explicitly i want to handle key events for popup.
    Thanks,
    Raghavendra.

    in my application header part of the page is common of all page. header.jsff contains comandmenuItem named "proceduralhelp". if I click proceduralhelp a pop up opens .
    in my login page when first time I open popup and press escape popup is not closing.
    rest of the cases after login escpe will cose the popup.
    only on the loginpage that to for the first time it is not closing when pressing up on escape key. (then we click on close button. and once again open the popup in loginpage now if we press escape it works).
    Thanks,
    Raghavendra.

  • How to handle this : event.result[0].parameter1[0].parameter2[0]

    hi,
    i know we can reach
    aComponentSample["sampleControl" + i + ""].visible = false;
    aComponentSample is a component and contains lot of controls. for example; sampleControl1, sampleControl2.. and so we can reach them via parameters (like i) with this ["sampleControl" + i + ""]. usage.
    i am wondering how can i handle this in resultEvent?   how can i give the child nodes (parameterA) via parameter?
    event.parameterA[0].parameterB[0].parameterC[0]
    thank you for your time. have a good day.

    hi again, i think i could not express clearly.
    i have a web service operation result handler, and this operation back in "object" format.
    thats the handler
                private function getFullWeatherValues_Handler(e:ResultEvent):void
                    var obj:Object = e.result[0].regions[3].cityValues[5].temperature;                (it returns integer)
    i can get the exactly temperature which i want but i don't want to writethose "result[0]" or "regions[3]" or "cityValues[5]" and even temperature.
    i want to write a function to reach a value ( for example temperature) which gived as parameter and  i will give all other  "result[0]" or "regions[3]" or "cityValues[5]" as parameter to. my question is how can i handle it?
    thank you for your answer,  any advice will be great.

  • How to handle Lov event from Advanced Table

    hi all,
    I have requirement like I need to return 5 items from lov RN and need to bind them with curresponding 5 coloumns in advanced table which is diplaying fine,
    but once clicked on 'Add New Row' button values from the privious row is getting null/disappearing. All the items in advanced table are binded with proper view Attribute.
    Please let me know why it is behaving so? and kindly give the solution also how can I handle this.

    Hi,
    The columns on which you are returning the values must be messageStyledTexts Right??
    If yes, then you should know that read only fields are not able to hold values and hence the lov mappings gets lost when you click on Add New Row button.
    To avoid this.
    For 5 columns, create 5 form Values and bind the same View Attribute to them as to the columns.
    Now in the LOV also create 5 mappings for form values same as you have created for table columns.
    This way it should work.
    Thanks,
    Gaurav

Maybe you are looking for

  • How do I use clipping mask to cover unwanted background?

    I'm practicing illustrator myself. I have a book for illustrator hoping it would show me step by step on how to use the masks to take away any unwanted background in a photo but it didn't do that. Can anyone teach me how or show me where to look for

  • Best BW datasource for consolidation in BPC 7.0NW

    BPC Gurus, I am working on Legal Consolidation. Which is the best datasource to be extracted from ECC New GL? 0FI_GL_20 is better or any other data source is better. The data required is in YTD format. The data is required only from leading ledger. P

  • HT201210 my phone will not restore

    I HAVE BOUGHT S/HAND IPHONE BUT WILL NOT RESTORE FROM MY BACKUUP /HELP

  • Re: Help please!! ipad do not rings when someone...

    How to set the notification is the way to go, but this does not work on my ipad 3thd generation with ios 10.1.2. I did go to apple and everything is set correctly and skype does not make the ipad ring. So the problem is with Skype and Microsoft. So t

  • Identify a specific day between two dates

    I'm look to identify Friday between to dates. Example: start date 12/23/2014 end date 12/30/14 find 12/26/2014 which is a Friday. Or start 1/10/2015 end date 1/17/2015 find 1/16/2015.