KEY-OTHERS trigger.

i am using 9i Developer Suite. I have a doubt as to how to select a KEY-OTHERS trigger at the form level as i have seen in the code of some forms given to me designed by other people. It does not show while creating a trigger.
I hope, my question is clear. Please help in solving the doubt.
Regards.

Hello,
KEY-OTHERS is used to intercept all keyboard event triggers you don't want to have effect.
generally, you put a single NULL; instruction in it.
Francois

Similar Messages

  • Use of KEY-OTHERS trigger

    Hi,
    I have a form that has numerous triggers defined at the form level. The form has a block that appears in a dialog window. The block should only have a small subset of triggers that are defined at the form level. I went ahead and created the key triggers necessary at the block level; I also defined a key-others trigger defined as null on the block to disable all other key triggers defined at the form level???. However it's not working, key triggers at the form level are still firing. Is the key-others trigger suppose to suppress triggers at a lower level or do I have to specifically deactivate all the key triggers at the block level?
    Thanks for you help in advance

    Key-Others at the block level will only override a form-level Key-Others. It will not override any other form-level triggers.
    You must either override all the form-level triggers at the block level, or add code to the beginning of each form-level trigger such as:
    If :System.trigger_block = 'MY_SPECIAL_BLOCK' then
      Return;  -- exit if in the special block
    End if;

  • Key-Others Trigger (Please help!!!)

    Hi everybody,
    We are trying to restrict the end user from pressing some
    'dangerous' keys, i.e clear block, execute query, even the DOWN
    key causes us problems in some (1 record) blocks.
    I know there is a way to do it using Oracle terminal but it
    seems that we need greater degree of flexibility.
    I certainly don't want to go to every <KEY> trigger on every
    form (block) and put null; statements there. I know from Oracle
    Docs that I'm supposed to use the key-others trigger..
    So here are my questions:
    1.Is there any way to find out which key has been pressed?
    2.Can someone post a sample code of a KEY-OTHERS triggers?
    3.Is there another way to achieve what we need?
    Thanks is advance for any help.
    Mike
    null

    You have two options.
    1) Turn off all keys not wanted. This is what you said
    you did not want to do.
    2) Tun on all keys you want to use by creating a trigger for
    each key. i.e.
    trigger KEY-NXTREC trigger KEY-UP
    NEXT_RECORD; UP;
    Then turn off all keys not explicitly turned on.
    trigger KEY-OTHERS
    NULL;
    ET (guest) wrote:
    : Hope that it may be helpful.
    : Answer :
    : 1. In command line, add debug option so that you may know what
    : trigger is executing.
    : e.g. runform module= userid= debug=yes
    : 2. Sample code for Key-others trigger
    : null;
    : Rgds,
    : ET
    : Mike Braude (guest) wrote:
    : : Hi everybody,
    : : We are trying to restrict the end user from pressing some
    : : 'dangerous' keys, i.e clear block, execute query, even the
    : DOWN
    : : key causes us problems in some (1 record) blocks.
    : : I know there is a way to do it using Oracle terminal but it
    : : seems that we need greater degree of flexibility.
    : : I certainly don't want to go to every <KEY> trigger on every
    : : form (block) and put null; statements there. I know from
    : Oracle
    : : Docs that I'm supposed to use the key-others trigger..
    : : So here are my questions:
    : : 1.Is there any way to find out which key has been pressed?
    : : 2.Can someone post a sample code of a KEY-OTHERS triggers?
    : : 3.Is there another way to achieve what we need?
    : : Thanks is advance for any help.
    : : Mike
    null

  • How to make 'Key-Enter' trigger (when clicked on enter key)work like 'F8' key?

    Hi . I have another question to be asked.
    Oracle Forms 6i.
    I have a form in which DEFAULT&SMARTBAR is the menu and there are no push buttons.
    In the form, there is a 'field' named as 'ID No'. After entering 'ID No' in the field and click on 'Execute Query' button from the 'DEFAULT&SMARTBAR' menu, all the details of that respective 'ID No' gets displayed in all the other fields. Even if i press 'F8' all the fields gets displayed with the values.
    But i have a requirement, i.e. after entering 'ID No' and click 'Enter' key , i want all the values to be displayed.
    So i created a 'Key-Enter' trigger with the following code:
    BEGIN
      EXECUTE_QUERY;
    END;
    But after entering 'ID No' and click 'Enter' key, the values are not getting displayed.
    What can i do to make this happen?
    Thank You.

    It depends how your form is created. If your ID item is part of the base table block, you can do this.
    On your ID item, create a KEY-NEXT-ITEM trigger:
    if :system.mode = 'ENTER-QUERY' then
        execute_query;
    else
        next_item;
    end if;
    Now
    - User clicks on enter query (via smart bar icon or F7).
    - User enters ID and clicks <enter> key to execute the query.

  • Return Key doesn4t make my defined KEY-ENTER trigger to fire.

    I4ve found that the trigger that fires when I press Return is KEY-NEXT-ITEM,but this doesn4t resolve my problem,because the tab key also fires this trigger.
    I want to navigate within textitems with the tab key and that when I press return key make an action on the values entered in the items.
    mila, PJR

    You have to perform key mapping to get the Key-Enter trigger to work.
    Open your forms90\fmrweb.res file in a text editor. Find the line:
    10 : 0 : "Return" : 27 : "Return"
    Change it to:
    10 : 0 : "Return" : 75 : "Return"
    Save the file and run the form again. The key-enter trigger should then fire when you press the Return key, but not when you press the Tab key.

  • KEY-CERREC TRIGGER IN ENTER-QUERY MODE

    hi all,
    i want fire key-crerec trigger in enter-query mode, how it can be done.
    i am using oracle 10g r2.

    first: Why did you need such a trigger? In Enter-Query-Mode it is impossible to create new records.
    second: Forms has a problem with some triggers in some modes. That means, that some trigger didn't fire in enter-query, but in older versions of forms they do. So, maybe you run into one of this problems

  • Failure of Key-NxtBlk Trigger in Tab Pages

    Say, I have 3 blocks, b1, b2 and b3, wherein block b1 and b3 are in a "tab-paged canvas" and block b2 is in a different canvas.
    When the control is in the tab-canvas (say in block b1). Upon pressing the Key_NxtBlk, CTRL goes to the third block rather than block b2 (since b1 and b3 are in the same tab page).
    Also, as the navigation is not as per the block sequence, the Key-Nxtblk trigger is also not firing.
    What should I do to make the procedures written within Key-NxtBlk to fire from the tab-canvas and at the same time, make the system navigate as per block sequence.
    Anticipating an Early Solution
    Thanking you in advance
    Ramnath Balasubramanian

    Dear Bogdan Dincescu,
    I cannot set the block navigation style as "Next Block" as every block in within my tab canvas are multi-record blocks with the navigation style as "Change Record". Can you suggest a different solution.
    Regards
    Ramnath Balasubramanian
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bogdan Dincescu ([email protected]):
    What if you set the block navigation style "Next block"? Then, normally, when pressing TAB/ENTER on the last item of the block, the cursor would move to the next block.
    Then, a key-nxt-blk trigger, set at block level, should help.<HR></BLOCKQUOTE>
    null

  • Key listval trigger

    good morning to all
    i would like to learn how can i fire a key list val trigger? i have a text item and i create a trigger for the text item. i think that when i input something in the text item, the trigger must fire, but nothing happens... can somebody help me please?
    thanx very much...

    1) if you have a key-listval-trigger on the item, you can press F9 (windows) to fire the trigger.
    2) if you have a lov which you want to use on the item, then put the name of the lov in the lov-property of the item, check the property "validates against the lov" to true. Now you have an auto-validation for your text-item against the lov
    try it
    Gerd

  • KEY-HELP trigger generating in Form

    Hi,
    I am generating a form. It is creating a KEY-HELP trigger beneath each base table block. Does anyone know if there is a generator preference I can set which stops this happening?
    Thanks,
    Gavin

    You can try to set End user interface preference-HLPTYP (Type of help system used)- to NONE.

  • Query on KEY-PRVBLK trigger

    Hi All,
    I have a KEY-PRVBLK trigger which has certain validation which calls various procedures and functions in it. From business point of view they want previous block validation to execute however they doesnt not want previous block trigger to move to the previous block. Hope i am clear with my business requirement.
    I want to write a functionality on the same KEY-PRVBLK trigger (after all the validations happens for the user), the KEY-PRVBLK trigger should be de-functional when the user tries to move to the previous block. Anyways of writing this logic?
    In general the user should not move from the current block to the previous block without affecting the logic... Can anyone please provide your expertise...
    Regards,
    Mark

    In KEY-PRVBLK trigger, either GO_BLOCK or PREVIOUS_BLOCK is present... :(
    They have handled this PREVIOUS_BLOCK in a procedure that too like the following....
    IF p_key_name = 'KEY-PRVBLK' then
    l_proc_name = 'PREVIOUS_BLOCK';
    In other instances they have used the GO_BLOCK in two different form level triggers:
    KEY-NXTKEY : GO_BLOCK('WR');
    LOCAL_STARTUP : GO_BLOCK('WR');
    I dont know which trigger needs to be commented and without any abnormal effect... :(

  • KEY-CLRFRM Trigger at Block Level

    Hi
    Version - Forms Builder (9.0.4.2.0)
    What's the use of KEY-CLRFRM @ block level?
    I have requirement where I need to clear all the blocks except one block in the form when press F8 (clear_form). Is this possible.
    rgds
    shabar

    Hello,
    You could create a form-level KEY-CLRBLK trigger, then test what block raised the trigger (:SYSTEM.TRIGGER_BLOCK) in a If ... Endif structure.
    Francois

  • Function key to execute key-f5 trigger

    Dear all,
    I have migrated a forms 6i to 10gR1 and I would like to call existing KEY-F5 trigger by pressing a function key (F5) on the keyboard.
    How to do that?
    I have tried several things with the file fmrweb.res but without any success yet.
    Anyone to help me?
    Thanks and best regards,
    Sebastien

    I found the solution by using key accelerator
    Thanks and best regards,
    Sebastien

  • KEY-DOWN trigger doesnt work on list item

    I am trying to avoid the list item to be pulled down using key-down trigger in developer 6i but key-down trigger has no effect. Is it possible to stop list item to pull down when user press down arrow key. I want the list to pull down only through mouse. Please help.

    Hi!
    May set the Keyboard Navigable and the Mouse Navigate Property to No for your list item,
    so no keyboard change is possible.
    Regards

  • Key others

    In some circumstances I want to disable the F10 functionality, but not by using KEY-F10 trigger. Does somebody know how to achieve this

    Hi
    If I got you right, you should use the KEY-COMMIT trigger, as the F10 key is [usually] mapped to that function.
    hth

  • KEY-F5 Trigger

    Hi All !
    I want to clear_form on F5 key press event to do so I have return clear_form(no_validate) on KEY-F5 trigger. But it is not fired when we press F5 key why is it so?
    Thanks
    Neeraj Tyagi

    KEY-F0, ... KEY-F9 are special triggers and don't match to the hotkeys F1-F10 !
    You have to rewrite your terminal file.
    If you need F5 in Windows-C/S, then try the trigger KEY-MENU or KEY-BLOCK-MENU, I believe. F6 for example is KEY-CREATE-RECORD, F10 is KEY-COMMIT.
    Gerd

Maybe you are looking for

  • Running Unix command through Java

    Hi I am trying to run the unix command "rf filename" through Java and it doesnt seem to work. Can anyone help in this case please String cm = "rm "; String delFile =  args[0];        // this path is /data/temp/filename.doc Process p = Runtime.getRunt

  • Automatic Clearing of Vendor

    Hello, We have setup "Reference Key 1" (XREF1) as clearing criteria for all vendor clearing in OB74.  However, for some reason it is not clearing vendor line items which has down payments.  These items do appear in F.13.  I am also able to clear them

  • Hebrew Font Problem

    Hello all! I have some problem with the Hebrew version of Nokia PC Suite... the fonts of the main menu, of the contacts and messages are very small and wrong fonts... I have attached a picture that shows the issue... Thanks! 

  • Brand new 5th generation cannot paly a song to the end, but jumps ...

    just purchased a new 5th generation ( the previous one got stolen ); I put all 35 GB of music on it. It played very well 1 evening, but today it jumps from 1 part of a song to another, even not playing the song it shows it is playing ... any idea wha

  • SNMP OIDs for solaris 8

    Hello Someone could tell me where to find a list of SNMP OIDs for solaris 8 thank you for your cooperation