Identifying which field is active

Hello,
I'm trying to find a way to identify which input field is active, ie. which field has the curson in it and has focus in a group of JTextFields.
An InputVerifier object can give me the field information - name and value - after moving from the active input field (TAB or mouse movement) but I want to know details of the active field - name and current value - whilst editing the characters in this field.
I'd also like to be able to identify all cursor movements and all character edits in this field if possible.
Can anyone help?
Brgds John

Listening for Changes on a Document
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#doclistenersListening for Caret and Selection Changes
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#caret

Similar Messages

  • Update trigger: identify which field changed

    Is there any way to identify which field was changed when an update trigger fires? I need to be able to update another field if any field excluding 1 was changed.
    Something like
    for each field in :new
    if field.name != "dateref" then
    if field.modified then
    altered=true
    exit for
    endif
    endif
    next
    if altered then :new.updatetype="A"

    This will do it
    CREATE OR REPLACE my_trigger BEFORE UPDATE
    OF col2, col3, col4 ON my_table FOR EACH ROW
    BEGIN
      :new.updatetype='A';
    END;
    /If your table has a lot of columns this will be a bit of a drag to type all those column names. Unfortunately, as far as I know, there is no OF ALL COLUMNS EXECPT col1 ON
    syntax.
    Cheers, APC

  • How to find which field is erroring

    Hi
    Can anyone out there tell me if there is a way in Forms 6i to find out which field on a block is raising an error? I have a situation where entering duff data into a field causes an error to be raised (the ON-ERROR trigger for that block is fired) but the same error is raised three times and the user has to acknowledge all 3 messages. I'd like to know whether it is the same field raising the same error 3 times or if other fields are also raising an error.
    Aside from putting ON-ERROR triggers on each of the fields, is there another approach I could take? For example, is there a system variable to identify which field is raising the error?
    Thanks and regards, Geoff

    The ON-ERROR trigger doesn't appear to do much at the block level - it contains a call to a library which appears to be an event handler, but I haven't looked into that in detail. I was more interested in working out which field(s) were raising the error in the first place!

  • Which field of MARC  indicates whether material is active or inactive

    hi experts,
                i have to display inactive materials details also in my report, which field indicates whether material is active or inactive.
    regards,
    pavan

    marc-LVORM
    A.

  • How to Identify Delta Field in DS

    Hi Gurus,
      1. My understanding is if a field in datasource(DS) is
      set as Delta, whenever that field value changes in DS
      then the delta process will initialize. (please correct
      me if i am wrong) Do we need to replicate everytime
      the field value is changed so that the value is updated
      in the data target, if so is there a process to
      automate it...  
      2. Can someone tell me how to identify Delta Field in a
      DS for example in 0FI_AP_4. i tried to search for it in
      help.sap.com but all i could find is that 0FI_AP_4 is
      delta capable but couldn't find which field is set to
      delta...
    Thanks,
    SM

    Sri Mal,
       1. Yes, there should be one field enabled enabled for delta.
       2. no need to replicate every time when ever data changes. we need to replicate when DS changed. i mean not business data, if meta data changes we need to replicate the DS. let us assume you made one field for selection and one field as hide. then  you need to replicate this.
      3. OFI_AP_4 is standard DS. you can't enable delta for this one if SAP didn't provide that. we need to active data for this. in the SAP Documentation you can see whether it is delta capable or not.
    comming to 0FI_AP_4, IT IS DELTA CAPLABLE.
    Hope this helps.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • How to identify which address is causing a sync error?

    I'm getting the classic:
    BlackBerry Desktop Manager displayed an error "Error code - 0x80043ac9. Check documentation" when synchronizing either the calendar appointment contact anniversary or contact birthday with a start date prior to the year 1900
    I've got a bad address entry date some where.  I've been through all the 'create tif.log and PtTrace.log' process, but there's nothing in those files I can see that identify the offending record.  Just the last record that was processed successfully.
    Is there ANYWHERE I can find which record has the offending date?
    Any help is sincerely appreciated...
    Jeff...

    What's the full error message you're getting? When you use one of the
    built-in calculation options (ie not the custom calculation script), it
    sometimes doesn't print out the name of the field that triggered the
    calculation, or even the name of the field that couldn't be find, and then
    it's a real pain in the neck finding out which one is causing the
    problem... In that case the best option is to think which fields were using
    the field you deleted/renamed, and then try to fix them and see if the
    error goes away.

  • Primary contact and contact field in activity

    Hi all,
    I am trying to create few contacts under an account and set one contact as primary contact.
    Then i am trying to craete an activity for that account.In that Activity there are two fields "Contact" and "Primary Contact".But when I try to pick up a contact and save the Activity record I see that the primary contact is not updated properly.(which means the primary contact is different from the one I selected in the account detail page).
    I also found that if the contact's primary account is not the account to which i am adding the activity then the contact name is not coming in the drop down to select for an activity.(in the "contact" and "primary contact" look up field of activity)
    Is there some reason for this??or am trying to overlook something..
    kindly help..
    Thanks in advance,
    Ashan.

    Hello Ashan,
    I tried the same thing, creating 2 Contacts under Account then making one primary, then created the activity and select the contact under Contact Look up and it successfully updated the primary contact field.
    There seems to be a problem with your pod, Have you tried raising an SR with oracle regarding this?

  • How does the scrollbar know which field it lands on?

    Hi all
    I'm looking at components at the moment. Not how to use them
    but how to create them yourself to increase your workflow.
    When dragging a scroll component on to a dynamic textfield it
    automatically determines which field it land on, and populate the
    targetInstanceName variable in the property inspector.
    How does it do that? I guess it's a jsfl file being run, but
    I can't figure out how to run a jsfl file the moment the user let
    go on the component.
    Thanks in advance,
    Jakob

    Hi Antony,
    There is no need of Sender Agreement and hence sender communication channel. Sender Agreement identifies three things,
    Namespace, Software component version and Outbound Interface. In Idoc communcation there is no need of Sender agreement as we can identify above things without Sender Agreement itself like namespace - Idocs have standard namespace and can be accessed across the sofwatware component versionsn and the idoc type it self specifies the interface name.
    You cannot define a sender IDOC channel in Integration Directory due to fact dat IDOC adapter does not run in J2EE AF but is an 'built in" adapter.
    Thanks,
    Vijay Kumar T.

  • How to identify which record(s) the user hasbeen checked

    i have a internal table in which first field is represented as check box in the output .
    like bellow
      loop at g_it_final into g_wa_final.
            write : 5 sy-tabix ,
                   20 g_wa_final-g_v_check as checkbox,
                   25 g_wa_final-TRKORR,
                   40 g_wa_final-AS4TEXT.
      endloop.
    now the user will select some records from the output checking the check box
    NOW the QUESTION is
    how to identify which record(s) the user hasbeen checked(selected) ?
    so that i can disply only the selected records in the secondary list.

    Hi,
    You will have to use the 'READ LINE' command within a loop to retrieve the data back into your program.
    You may want to use the HIDE command to ease the retrieval of the checkbox value.
    Check out the online help for both of these.
    Darren

  • SID Generation Failed : How to identify which record in PSA

    Hello guys,
    I have a DSO where the SID Generation has failed for about 4 records due to lower case letters. I would want to fix that in PSA.
    How do I identify which record/package in PSA to change it. I have about 11,50,000 records. The DSO activation log gives you the error but doesnot give any information on which record or the key of the record.
    Is there a way to identify the packet id and the record no. in PSA which has this problem so I can fix it. Its literally impossible to find out because each package in my PSA has about 40 - 50 thousand  records.
    Any help would be rewarded.
    Thanks,
    KK

    Hi.......
    Go to the display message of the DSO activation step..........Right click display message........there it will give you which master data...........which packets......
    Also you can go to the IP monitor..........in the details tab.........there is one tab comes ODS activation........click on that...........there also you will be able to find the errorneous data packets.........
    Regards,
    Debjani........

  • Greying out the particular field of active group

    hi guru's
    we have requirement of greying out a particular field of active screen group
    say for eg:
    LOOP AT SCREEN.
        if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
          screen-input = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN OUTPUT.
      if rb_md EQ 'X'.
        LOOP AT SCREEN.
          if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
            screen-input = 0.
          ELSEIF screen-group1 EQ 'MAS'.
            screen-input = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF rb_td EQ 'X'.
        LOOP AT SCREEN.
          If screen-group1 EQ 'MAS'.
            screen-input = 0.
          Endif.
          MODIFY SCREEN.
        ENDLOOP.
        if rb_pur EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'PUR'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_sal EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'PUR' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'SAL'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_fin EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'PUR'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'FIN'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ENDIF.
      ENDIF.
    in the above code
    say for eg: the active group is 'SAL' in which i want to grey out one field say as parameter p_doc as invisible always
    what i need to do
    with regards
    s.janagar

    hi
    may be this code can help you:
    selection-screen begin of block b1 with frame title text-001.
    parameters : p1  radiobutton group r1 default 'X' user-command ac,
                         p2  radiobutton group r1,
    selection-screen end of block b1 .
    selection-screen begin of block b2 with frame title text-002.
    select-options : p_eg for mara-matnr modif id SAL
    parameters : p_doc  like mara-matnr modif id PUR.
    selection-screen end of block b2.
    at selection-screen output.
      if p1 = 'X'.
        loop at screen.
          if screen-group1    = 'SAL'.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      elseif p2 = 'X'.
        loop at screen.
          if screen-group1    = 'PUR.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      endif.

  • To which field in SAP does JdtNum in DTW template for JE correspond to?

    Hi everyone,
    I am updating previously uploaded Journal Entries using DTW. I could not find a primary key to identify which JE will be uploaded by DTW. I guess it is JdtNum. Am I correct? I do not know what to put in this column though.
    Please enlighten me.
    Thanks and regards,
    Derrick

    Hi Eric,
    Yes it is, you are correct .
    The JdtNum field is the other terms Recordkey for the header and document lines.
    If you are importing new data then you will need to start with 1. Whn updating you will need to specify the Journal Number TransId int he JdtNum.
    Thank you.
    Regards,
    Rakesh N

  • IPhone & Address Book: which fields will sync?

    I'm in the process of acquiring an iPhone (waiting for Orange UK PAC code before I move to O2 UK). In the meanwhile I thought of starting a clean Address Book on the Mac that will sync with the iPhone.
    The problem is, based on some comments here, the iPhone doesn't seem to support all the fields that are available in the Address Book (like prefix, suffix, etc.)
    So my question to someone out there with an iPhone is... which fields does it support and which does it show by default on the contact list?
    I'll give you an ideia of what I want so that you can help me finding the better way of doing it:
    I have lots of old university friends. On my SonyEricsson W880 I have them all saved with the prefix ULP (university name) followed by the nickname.
    I want to build a clean Address Book so I was using the prefix to enter ULP, i was entering the first and last name and then added a new field for the nickname. But if the iPhone doesn't support prefixes nor nicknames, i would end up with a name like John Doe that, to me, is not immediatly identifiable. Its actually easier for me to check that John Doe is an old coleague from University (the ULP prefix) and his nickname was JarJar for example.
    So, again, which fields are synced and what is the best way to achieve what I want without having to cheat (like inserting nicknames or suffixes in first and last name fields)?
    Thank you.

    On the iphone, when you go to your contacts (Phone>Contacts), by default you'll see all your contacts, and at the top it will have a title saying "All Contacts" and to the left of that a button saying "Groups". If you tap that button, you get to a screen that lists all your groups, with the title "Groups" at the top. If you then tap on a group, say your ULP group, you get to a list of contacts that are in that group. It looks just like the All Contacts list, except that the only contacts listed are those in that particular group, and the title at the top says the name of your group. And the "groups" button is still there.
    Contacts in the Address Book can be in more than one group too. I have a group named "business" that has a lot of different contacts, some of whom are also in my "personal" group, and many of which are in my "clients" group. I generally leave it at "All Contacts" but if I can't remember the name of someone, like say my kids' dentist, I'll go to my "medical" group where I know he is.
    I hope that clears things up. Groups are very useful!

  • HOW i can identify  which instance is associated with which Listener

    Hi all,
    i created one DB instance. suppose named as "B". but there is already another DB instance present. Named as "A".
    Then i created one listener for DB instace "B".
    Now my Que. is that HOW i can identify which instance is associated with which Listener,.
    2) if i create listener then a service also created. if i stopped that service and then can i fire query OR Login again, WHAT will be the expected result.
    I tried by asking people for my answer. but not satisfied.
    Please Help me For this.
    Thanks in Advance

    856376 wrote:
    i want to start my carreer in DBA.
    In what manner i ahve to prepare my self.
    Your guidance will help me lot
    Thank youLike everything else, the answer is "it depends".
    What is your background and experience with computers, networks, operating systems, programming languages?
    What are you currently doing?
    What formal and or on the job training have you had?
    As Aman said, build yourself a test system and play with it. You can do this at no cost by ...
    1) download and install VMplayer (vmware.com). It is legally free. For an investment in your career of about US$185, you can buy VMworkstation, which has the same fundamental capability plus some nice management features.
    2) download and install Oracle Enterprise Linux (oracle.com). It is legally free. If you want a support contract, you pay for that.
    3) using (1) and (2) create a virtual linux server
    4) download and install Oracle Enterprise edition database (oracle.com). It is legally free for personal eduction.
    5) install (4) on (3).
    Beyond the above questions I have some boilerplate replies that fit here . . .
    if people want to be professionals in ANY field, the first knowledge they need to acquire is how to locate AND USE+ the fundamental reference materials for that profession. And the most important trait, the one for which they are really hired, is the ability to do independent research, and having a modicum of curiosity that would drive one to do that research. We don't mind helping newbies, and even the most experienced person on this board will run into something they are not familiar with, or occasionally just require a second set of eyes to look at something. But a professional+ needs, above all, a willingness and capability to check the docs. A professional isn't necessarily someone who has all the answers at their fingertips or has a full understanding about every arcane subject in their field. It certainly isn't someone who has an encyclopedia full of memorized answers but little understanding of how it all fits together. It's someone who knows where to find the answers when needed, how to recognize them when he sees them. It's less about knowing than it is about attitude. Everything you asked can be answered in the Oracle Concepts Manual at tahiti.oracle.com. You should bookmark that site.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.

  • Which field assign to which object?

    hi friends,
    wher can i get information which field will be assign to which info object?
    example like
    KTOPL (chart of account)
    0CHRT_ACCTS
    now i can assign KTOPL to 0CHRT_ACCTS
    is there any tcode is there to assign fields and objects.
    regards
    ss

    You can try the table RSOSFIELDMAP in BW.
    FYI, this table will display relationships between R/3 fields and BW infoobjects only if active transfer rules mapping already exist in the system.
    For example, the field VBELN is mapped to 0DOC_NUMBER in 2LIS_11_VAHDR and is mapped to 0BILL_NUM in 2LIS_13_VDHDR. You can find these entries in this table if the transfer structures are active for these infosources with above mentioned mappings.
    Good luck!

Maybe you are looking for