How to get keyboard cursor on specific field with a condition

I am using forms6i. i have two fields 1st field1 and field2. I want that when field1='A' then keyboard cursor go to field2 else it must automatically skip the field2. and the condition is that the trigger must not be key-next-item, because if this process completed or not we have to go to next record and to save it.How is this possible???

Depending on how your users navigate your application (mostly keyboard or combination of keyboard and mouse) the Key-Next-Item (KNI) trigger will not file if the user uses the mouse to leave Field1. Rather than use the KNI trigger I suggest you use a combination of the When-Validate-Item (WVI) and the Module/Form level When-Timer-Expired (WTE) triggers. This ensures no matter how your user leaves Field1 that the navigation cursor will go to Field2 if the value of field1 is 'A'. For example:
/* Sample WVI trigger */
DECLARE
   timer_id   TIMER;
BEGIN
   IF ( :FIELD1 = 'A' ) THEN
      Create_Timer('GOTO_FIELDB',1,NO_REPEAT);
   END IF;
END;This code creates a 1 millisecond timer which will execute immediately so there is no lag in your application. Also, since it is a 1 millisecond timer, it will not cause a network trip to the application server.
/* Sample WTE trigger */
/* This is a Module/Form level trigger */
DECLARE
   v_Timer   VARCHAR2(30) := Get_Application_Property(TIMER_NAME);
BEGIN
   IF ( v_timer = 'GOTO_FIELDB' ) THEN
      Go_Item('FIELDB');
   END IF;
END;Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • How to  Place the Cursor at Specific Position with-in a Char Field ?

    Forms 4.5 ver.
    Sun Solaris / Citrix env.
    Char Field - Length 65434
    How Can I Place the Cursor at "Specific Location"
    with in a Field ?
    with GO_ITEM('field Name') I can place the Cursor at Specific Field.
    But, How Can I achieve to Place the Cursor at Specific
    Position within that Field ?
    I know, the starting position, length of string I want to hightlight with the Cursor.
    tried using :
    go_item('substr(field_name,position,length)') ;
    but didn't work !
    Is it possible ?
    Thanks, Peri

    The only cursor postion behavior that can be controled is the item property "Keep Position".
    The following is the text from the on-line help for item property "Keep Position"
    KEEP_POSITION Specifies whether the Keep Position property should be True or False. When Keep Position is True, the cursor returns to the same position it was in when it left the text item. When Keep Position is False, the cursor returns to the default position in the text item. Valid values are PROPERTY_TRUE and PROPERTY_FALSE.

  • How to get automatically sysdate in a field

    How to get sysdate automatically in a field in ADF

    As provided in the above blog post provided by Branislav,
    use the groovy expressions for defaulting the date using the following expressions is the right & recommended approach:
    Only date: adf.currentDate
    Date with Time: adf.currentDateTime
    see section 3.6.1 in ADF Developer's guide:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcintro.htm#CEGJJJBA
    Thanks,
    Navaneeth

  • How to get google back in search field

    how to get google back in search field of Safari

    Safari 6
    URL address bar and Google search are unified and is called Smart search field.
    When you search with Google "Google search" will appear.
    There is no more a separate Google search field.
    Prior versions of Safari
    Click the "View" menu in the Safari menu bar and select "Customize Toolbar".
    From the dropdown drag the default set into the Toolbar.

  • Some symbols gets prefixed  to a specific field in validation statement.

    Hi All,
    I am beginner in SAP MDM and facing an issue in validations in Data Manager. Some symbols gets prefixed  to a specific field in validation statement.
    Any ideas,in what situation does it happen i.e. due to any repository operation from console etc ?
    Regards,
    Shivani

    Dear Shivani,
    Please eleborate when are you getting this and which are the symbols?
    Regards,
    Pramod

  • How to get length of a data field

    Hi Experts,
    How to get length of a data field. For example data field /BIC/0COSTCENTER length is 9. and the entry in the table is /BIC/0COSTCENTER = 1000 only. How to get the lenth of value in the table.
    Any help greatly appreciated. Thanks.
    Best Regards,
    Suresh.

    Below is example  code
    Data: var1(10) type c value '2500',
          var2 type i.
    var2 = Strlen( var1 ).
    write var2.
    <b>Reward Points for helpful answers</b>
    Satish

  • How to get the 4 digit number associated with a SAP icon ( ICON_MAIL )

    Hi Friends,
                   Could anyone please tell me how to get the 4 digit number associated with a SAP icon ( ICON_MAIL ).
                   eg: - For ICON_GREEN_LIGHT the four digit id code is '@08@' (which you can get from ICON table )and the associated 4 digit number is'1003'.
                  Similarly I want to get the 4 digit number for ICON_MAIL(e-mail icon)
    <b><REMOVED BY MODERATOR></b>
    Ashiq
    Message was edited by:
            Alvaro Tejada Galindo

    You can use this report...It's not mine...
    REPORT zdummy_atg_2.
    TABLES: ICON.
    INCLUDE <ICON>.
    FIELD-SYMBOLS: <F>.
    SELECT * FROM ICON.
       ASSIGN (ICON-NAME) TO <F>.
       WRITE:   /(5) <F>, 20 '@',21 ICON-ID+1(2),23 '@',ICON-OLENG,
                ICON-BUTTON,ICON-STATUS,ICON-MESSAGE,ICON-FUNCTION,
                ICON-NAME.
    ENDSELECT.
    Greetings,
    Blag.

  • How to get rid of the blue underline with green arrows on words and then a pop-up ad appears.

    How to get rid of the blue underline with green arrows on words and then a pop-up ad appears.

    Click here and follow the instructions, or if they don't cover the type of adware on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (119795)

  • How to get all images in indesign CS5 with javascript?

    Hi,everybody,
    How to get all images in indesign CS5 with javascript?I want to delete them.
    Anyone can give me some example codes?
    Thanks,
    Bridge

    Hey!
    This will remove all images from your InDesign document:
    var myLinks = app.activeDocument.links.everyItem().parent;
    for(var i = 0; i < myLinks.length; i++)
        myLinks[i].remove();
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

  • How to get the stock of STO Report with suppling Plant/receiving Plant/open

    How to get the stock of STO Report with suppling Plant/receiving Plant/open/close qty.

    MB5T gives you Details of STO which have stok in transit.
    ME2W gives you supplying plant wise STO details.  Also in ME2W , in the ALV report output, if you select  the "delivery Schedule line" icon , you will get details such as , STO qty, Issued qty , undelivered qty etc.

  • How to get the iPhone 5c to pair with my mac book pro and my ue speaker

    How to get the iphone 5c to pair with my mac book pro and my ue speaker

    TerryReynar wrote:
    How to get the iphone 5c to pair with my mac book pro
    You don't. It only sync using iTunes.
    It doesn't "pair".
    and my ue speaker
    What is "ue speaker"?
    Ultimate Ears wirless bluetooth speaker?
    Set speaker to Pairing mode.
    On the iPhone, Settings > BlueTooth.
    Select the speaker.

  • How to get slideshow to Pause and restart with auto play enabled? all slideshow do not restart!

    How to get slideshow to Pause and restart with auto play enabled? Happening in all slideshow do not restart once one photo is selected

    I agree cwclark, I was going to ask the exact same thing, and yes, the only way to 'restart' the auto play is to reload the page which is frustrating to say the least. Every other site I've seen with this kind of 'auto-play' slide show still auto-plays even after clicking the 'next' or 'previous' buttons. Adobe, you need to get a fix for this ASAP

  • How to complain to Apple about this company and how to get a formally answer for problem with Apple agent in Kuwait??

    How to complain to Apple about this company and how to get a formally answer for problem with Apple agent in Kuwait??

    You did not buy your iphone from an Apple store.  No Apple employee sold you anything.
    Your complaint is not with Apple.  You bought from an unauthorized seller.  Your complain is with that seller.
    As you have been told more than once, Apple has nothing to do with this.

  • How to get length of data on column with long datatype

    How to get length of data on column with long datatype without using pl/sql block

    ...another reason not to use LONG datatype for columns.
    Oracle advises to switch to LOB columns instead
    SQL> create table t
      2  (x long)
      3  /
    Table created.
    SQL> insert into t values (rpad ('x', 10000, 'x'))
      2  /
    1 row created.
    SQL> alter table t
      2  modify x clob
      3  /
    Table altered.
    SQL> desc t
    Name                                      Null?    Type
    X                                                  CLOB

  • How to get imac 27 inch to work with asus triple mionitors to work through matro triple head 2 go

    how to get imac 27 inch to work with asus triple mionitors to work through matro triple head 2 go

    I think I got a little ahead of myself explaining my problem, so let me clarify...
    Only the one iMac is having the network file deletion problem, but it is included in the network user logon problem.  So 4 out of 5 of the iMacs have had or are having logon problems with network users accounts using mobile accounts on the systems.  2 of the 4 I have wiped and started over on and the other 2 have different network accounts being used by the primary system users.  The 5th iMac has not caused any problems except I forgot to mention that the USB on it seems flaky.
    So we are apparently full of problems. 

Maybe you are looking for

  • Does it work with windows xp

    does it work with windows xp

  • Partial trigger set showrequired attribute to true, but on page not seeing the required 'star'?

    Hi All, I have a selectonechoice dropdown list and a input field, i want when the second item of dropdown list selected then the showrequired attribute of the input field was set to false, if the first item selected then the showrequired set to true.

  • Version Management for BW queries?

    Hi, Is version management available for queries in BW? Like an ABAP program, different versions can be generated, allowing an older version to be retrieved and overwrites current version, for the case where heavy changes applied but has to be reverte

  • 2lis_03_um initial data load

    Dear Consultants, Our r/3 system is very busy.So I don't want to stop the r/3 system to extract the stock data.Is there any way to do it.I mean Can I extract the initial data while r/3 system is running.I am worrying about loosing the data. Best rega

  • Printer for lion 10.7

    HI. I'm looking for a new Laser Printer ( B"W with print - scan - copy - fax , up to $300 not necessary wireless  ) to be compatible with Lion 10.7 iOS and simple update . Can U recommend one please ? Thanks