Activate a trigger when a textfield is focused

Hello all,
I have a textfield and I want to execute a procedure when that textfield is focused. I want to do this by using the keyboard and not the mouse.
For example when I am at a textfield called X, I want to press the Tab button and move to textfield Z. Then I want my procedure to get executed.
Which trigger do I have to use?
Thank you

I read the initial problem :
"I have a textfield and I want to execute a procedure when that textfield is focused"
and I bet, that he needs the feature too, when he enter the Item via "Next_Item", "Previous_Item", "Next_Record", "Previous_Record", "Next_Block", "Previous_Block", ...
these are the classical problems, when navigating to an item, when the developer thinks, that the user typically goes to that item via TAB. But after the first tests he learns, that SHIFT-TAB and all the other shortcuts described above have to work too.
At that point it's much better to use a WNII than Key-Triggers
Gerd

Similar Messages

  • TextField loses focus only to another TextField

    ...when any UIComponent is onstage. If a UIComponent is not onstage, I can click anything else, even the blank stage backing, and the TextField loses focus.
    I want the TextField to have a FOCUS_OUT event when the stage (or anything else) is clicked. How can this work when there are a number of UIComponents onstage? I can hack it by putting a blank text field in back of everything, but that won't work in every case. Any ideas? Thanks.

    textField2.setDocument(textField1.getDocument());Once you do this, whatever is put into one text field will show up in the other and vice versa. Not sure if this is what the OP wants, but it does solve the problem.

  • Error -- No Such Trigger('when-button-pressed')

    Hi,
    I am getting the error ""No Such Trigger('when-button-pressed')"",
    when I am executing the code EXECUTE_TRIGGER( 'WHEN-BUTTON-PRESSED' );
    on some item(Key-Next-Item), although WHEN-BUTTON-PRESSED trigger exists.
    What could be the problem ?. It worked till yesterday, giving error from today, I havent
    changed any thing.
    Thanks in Advance
    Devender

    Steve's tip is the only good solution for this case.
    The problem in your case for example is:
    Let's say you have a block-trigger, which fires after your execute-trigger.
    Now a colleague of you, which don't know your code, create a WHEN-BUTTON-PRESSED on an item, then the new code is started and not the block-trigger-code.
    So, don't ever do this. Write your code in a package-function or -procedure and call it from the trigger. So you can re-user the functionality
    Gerd

  • Problem in trigger when inserting in mtl_transactions_interface there is an added row

    hi,
    i have a problem in the trigger when i have a command of 2 lines and do a reception and insertion in table mtl_transactions_interface i found 3 lines, i didn't know where come the 3 row
    create or replace
    TRIGGER TOP_RCV_TRANSACTION_ACC_T2 AFTER
      INSERT ON PO.RCV_TRANSACTIONS FOR EACH ROW DECLARE
      CURSOR org_item_cur
      IS
        SELECT distinct organization_id,
          inventory_item_id
        FROM mtl_system_items_b
        WHERE inventory_item_id=
          (SELECT distinct item_id
          FROM rcv_shipment_lines
          WHERE shipment_line_id=:new.shipment_line_id
          CURSOR item_cur
          IS
          select distinct  RSL.item_id
    from
      RCV_SHIPMENT_HEADERS RSH
      ,RCV_shipment_lines RSL
      where :new.shipment_header_id=RSH.shipment_header_id
      and RSH.shipment_header_id=RSL.shipment_header_id;
      X_att_item      VARCHAR2(10);
      X__bc_ot        VARCHAR2(10);
      X_sum_qty       NUMBER;
      X_receipt_num   VARCHAR2(30);
      X_count_article NUMBER;
      X_item_org      NUMBER;
      X_org_id        NUMBER;
      X_serial_number NUMBER;
      X_dec_dou varchar2(100);
      X_DAE varchar2(100);
      X_LOCATOR_ID  NUMBER;
      X_ITEM_REVISION varchar2(3);
      X_ITEM_ID NUMBER ;
      X_PO_NUMBER VARCHAR2(20) ;
    BEGIN
    FOR item_rec IN item_cur
          LOOP
      IF (:new.transaction_type='DELIVER' and :new.organization_id=83 and (item_rec.item_id=61305 or item_rec.item_id=61306)) THEN
        SELECT distinct receipt_num
        INTO X_receipt_num
        FROM RCV_SHIPMENT_HEADERS
        WHERE shipment_header_id=:new.shipment_header_id;
    SELECT COUNT(*)
        INTO X_count_article
        FROM mtl_system_items_b
        WHERE inventory_item_id=
          (SELECT distinct item_id
          FROM rcv_shipment_lines
          WHERE shipment_line_id=:new.shipment_line_id
          --récupérer le numéro de commande à partir de la table PO_HEADERS_ALL
        select distinct PHA.segment1 
        into X_PO_NUMBER
        from PO_HEADERS_ALL PHA
        where PHA.PO_HEADER_ID=:new.PO_HEADER_ID;
         -- Récupérer la révision de l'article
          select distinct ITEM_REVISION
          into X_ITEM_REVISION
          from rcv_shipment_lines
          WHERE shipment_line_id=:new.shipment_line_id;
        IF (X_count_article > 1) THEN
          FOR org_item_rec IN org_item_cur
          LOOP
            IF (org_item_rec.organization_id=83 and(org_item_rec.inventory_item_id =61305 or org_item_rec.inventory_item_id =61306) ) THEN
              INSERT into inv.mtl_transactions_interface
                  transaction_interface_id,
                  SOURCE_CODE,
                  SOURCE_LINE_ID,
                  SOURCE_header_ID,
                  PROCESS_FLAG,
                  TRANSACTION_MODE,
                  INVENTORY_ITEM_ID,
                  REVISION,
                  ORGANIZATION_ID,
                  SUBINVENTORY_CODE,
                  TRANSACTION_QUANTITY,
                  TRANSACTION_UOM,
                  TRANSACTION_DATE,
                  TRANSACTION_TYPE_ID,
                  TRANSACTION_REFERENCE,
                  TRANSACTION_COST,
                  LAST_UPDATE_DATE,
                  LAST_UPDATED_BY,
                  CREATION_DATE,
                  CREATED_BY,
                  lock_flag,
                  transaction_source_name,
                  transaction_source_type_id,
                  Flow_Schedule,
                  Scheduled_Flag,
                  distribution_account_id ,
                  LOCATOR_ID
                VALUES
                  mtl_transactions_interface_s.nextval,
                  'INTERFACE',
                  0,
                  0,
                  1,
                  3,
                  org_item_rec.inventory_item_id,
                  X_ITEM_REVISION,
                  161,
                  'CENTRAL001',
                  :new.quantity,
                  :new.uom_code,
                  sysdate,
                  202,
                   X_PO_NUMBER,
                    :new.po_unit_price,
                  sysdate,
                  :new.LAST_UPDATED_BY,
                  sysdate,
                  :new.LAST_UPDATED_BY,
                  2,
                  X_receipt_num,
                  13,
                  'Y',
                  2,
                  347783,
                  :new.attribute1
            END IF;
          END LOOP;
          if org_item_cur%ISOPEN then
            close org_item_cur;
            end if;
    END IF;
      END IF;
       END LOOP;
    END;
    please help me and give me solutions to localisate the problem?

    This trigger will fire at the time of every PO receipt and receiving transactions such as Accept, Reject, Deliver, RTV etc.
    May be you forgot to put a WHEN clause in Trigger.

  • Error in Forms while creating the trigger- WHEN-CREATE-RECORD

    Hello,
    Right now I am using 11g client side and 10g database.
    I am constantly getting an error while creating triggers in 11g.
    I have created a sequence in SQL developer using the following code:
    create sequence loc_id_sequence
    start with 14;
    After creating the sequence. I am trying to write the PL/SQL code in forms builder for the trigger WHEN-CREATE-RECORD
    declare
    loc_id number;
    begin
    loc_id := loc_id_sequence.nextval;
    end;
    But I have been getting the following error constantly. Can anyone please help me?
    "Error 0 at line 5, column 4
    SQL statement ignored".
    Can anyone please tell me why I am getting that error

    In fact, even I thought there might be some problem with the connectivity with the 10g database and 11g client but the other DB related code works.
    I just have the problem with using sequence for the trigger WHEN-CREATE-RECORD.
    In fact I also tried using WHEN-NEW-RECORD-INSTANCE smart trigger instead of WHEN-CREATE-RECORD for the same sequence. But even that doesn't work.
    Do u have any idea of what that error means?
    "Error 0 at line 5, column 4
    SQL statement ignored"
    Edited by: Pooja 1985 on Feb 26, 2013 5:43 PM
    Edited by: Pooja 1985 on Feb 26, 2013 5:44 PM

  • Is it have some User exits for Vendor master  trigger when click some field

    Dear Experts,
         I would like to know Is it have User exit for Vendor master  trigger when click some field in Vendor master? not just User exit for Prior Save . Please kindly let me know some solution for this case.
         Many thank.

    Hi,
    check may this bapi will be useful your requirements, BAPI_VENDOR_CREATE
    below links may helpful for you:
    BADI http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm http://support.sas.com/rnd/papers/sugi30/SAP.ppt http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm http://members.aol.com/_ht_a/skarkada/sap/ http://www.ct-software.com/reportpool_frame.htm http://www.saphelp.com/SAP_Technical.htm http://www.kabai.com/abaps/q.htm http://www.guidancetech.com/people/holland/sap/abap/ http://www.planetsap.com/download_abap_programs.htm http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm USER EXIT http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm http://www.sapgenie.com/abap/code/abap26.htm http://www.sap-img.com/abap/what-is-user-exits.htm http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction http://www.easymarketplace.de/userexit.php http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm http://www.sappoint.com/abap/userexit.pdfUser-Exit http://www.sap-img.com/ab038.htm http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm http://www.sap-img.com/abap/what-is-user-exits.htm http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html Rewards if useful......... Minal
    still if you not find any solution go for  custom exit, means in standard program only ABAP consultant change the program where you required, it is little risk, you have to do the more testing for this
    BR:
    Venkat.Gurram

  • HT4623 I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.

    I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.
    Kindly Activate my phone.

    Rajan Gupta wrote:
    ...it is continuously showing an error.
    See here  >  http://support.apple.com/kb/TS3424
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • Badi that trigger when opportunity created from lead

    Hi,
    I am looking for a Badi that trigger when opportunity created from lead.  I looked from Order_Save but i am unable to find the preceeding lead number for the opportunity as the link will be created after the opportunities saved.
    Kindly help me
    Thanks
    Naveen

    Hi Naveen,
    You have to do it in Copy control customizing..
    SPRO->CRM->Transactions->Basic Settings->Copying Control for Business Transactions->Define Copying Control for Transaction Types..
    here you specify you Source transaction as LEAD and Target transaction as OPPURTUNITY and give some arbitarory filter value.
    Then use this filter value in CRM_COPY_BADI implementation.
    Dont forgot to reward points if this solves...
    Siva

  • When I activate the device when it entered my Apple ID will not accept what I should do?

    When I activate the device when it entered my Apple ID will not accept what I should do?

    PLZ Help me

  • HT4623 I've updated my Iphone 3g but cannot activate it?  When I do it through Wifi it says "the server is temporarily unavailable try later" I've been doing that for 5 hrs now!  When I try through ITunes it says there's no sim in the phone when there is!

    I've updated my Iphone but cannot activate it?  When I try through wifi it says the activation server is unavailable try later and I've been doing this for 5 hrs now.  When I try to activate it through Itunes it says there's no SIM in the phone when there is.  The phone worked perfectly before the updating of the software?  Can anyone help?

    Hi johnquinn1950,
    If you are having activation issues with your iPhone after an update, you may find the following article helpful:
    iPhone: Troubleshooting activation issues
    http://support.apple.com/kb/ts3424
    Regards,
    - Brenden

  • HT1338 iPhoto is installed on my MacBook Air, but suddenly won't trigger when I click to open it. What can I do? Thanks.

    iPhoto is installed on my MacBook Air, but suddenly won't trigger when I click to open it. What can I do? Thanks.

    If you don't need the changes saved then you can force quit the word app.  On the menubar, cick the  > Force quit > select word.

  • I bought my unlocked iphone 4s in united kingdom and i inserted a sim it was working fine..but now i come to kuwait..when i insert a sim of kuwait but my iphone ask me to activate it but when i try to activate it my iphone does not support that sim.

    i buyed a new unlocked iphone 4s in united kingdom. i inserted a sim card and it was working fine. but now i m in Kuwait for some time i inserted a local sim card and my iphone ask me to activate it but when i go through the process of activation my iphone does not read my local sim card. please help me out. i will be very thankfull.

    thanks for this... I bought iphone 4 unlocked in USA in Dec 2012--being told by the salesperson IN the Apple store that there were Apple Stores in Quito & Cuenca. I'm in Cuenca now--NO STORE, & now that I need to activate--have also been told "not every cellular store CAN activate iphone!" I am reading about all these problems--yours is the first response that has a solution! Now going to set up with Claro... wish me luck! Any other advice you have on use in Ecuador--I'll be grateful :-)

  • TextField get focus by mouse?

    public void actionPerformed(ActionEvent actionevent) {
    if ( textField.isFocusOwner()==true)
                   if(textField.getText().equals("Please input text") )
                        textField.setText("");
    }But TextField get focus by pressing "Enter key".
    How could i use mouse to get focus in TextField??
    Thanks a lot !!

    you can add a mouse listener to you frame so whenever someone clicks any of the mouse buttons it will give the text field the focus. Is that what you are looking for?

  • HT201441 how can i activate my phone when i can't remember the apple ID that was logged inside my iphone?

    how can i activate my phone when i can't remember the apple ID that was logged inside my iphone?

    To find your Apple IDs go here...
    Look up your old and forgotten Apple ID

  • I would activate Markup tool when I use Acrobat reader Activex.

    Is there a way to activate Markup in activex mode or in web browser mode?
    I know I can activate Makup tool when i use the full application of Acrobat Reader. But has soon i try to use it has activex mode markup tool are disable.

    Hello,
    In order to activate Markup tool in browser, you need to place this into a .reg file and double click it to replace the registry key:-
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\11.0\Annots\cPrefs]
    "bprintCommentPopups"=dword:00000000
    "bshowAnnotToolsWhenNoCollab"=dword:00000001
    "tlastViewedStampCategory"="Favorite Stamps"
    "dalwaysZoomZoom"="0.000000"
    "tlastUsedStamp"="#3MDRaCYQB0Ciy106Wa0OvB"
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\11.0\Annots]
    "bStampsPaletteInvisible"=dword:00000001
    "bshowAnnotToolsWhenNoCollab"=dword:00000001
    Note:- Please create a registry backup before making any changes to registry.
    Regards,
    Nakul

Maybe you are looking for

  • REJECT is obsolete in ECC 6.0 - Any Alternative?

    Hi Developers, REJECT statment is used to break from GET event (say GET PERNR event in Logical Database) used to process for an Employee. This REJECT statement is Obsolete . Is there any alternative for this ? If so, please reply at the earliest as i

  • Profit center is not found

    Hi masters, While doing MIRO, we are getting the error message like Profit center c.code/profit.center does not exist . I have cheked in KE53 profit center is created and validity is also 01.01.2011 to 31.12.9999. Although i am getting the error mess

  • [newbie] JNLP, Quicktime Java, WebObjects

    I'm developing a Java Client application that uses WebStart, Apple's Quicktime Java and WebObjects. (I'm new to WebStart and somewhat new to Java Client). Several issues have arisen. Quicktime likes to record stuff directly to hard disk. So, I'm goin

  • Photoshop Elements version 1.0

    Old computer crashed.  Trying to download APE version 1.0 (I know, but it works for me).  It does not recognize my serial number.  The SN has 20 numbers but the slots appear to require more characters or numbers.  What should I do?

  • I made a design in photoshop cs 5 and i wanted to print on vinyl, how it would possible using CorelDRAW?

    I made a design in photoshop cs 5 and i wanted to print on vinyl/ Guy who is with printing department said that we need CorelDRAW file and I think it support vector, so how it can be possible to Print my file on Vinyl Using CorelDRAW? and also CorelD