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;

Similar Messages

  • 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

  • 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

  • Use Return Key to trigger function?

    I've got a little form in a movieclip where the student is to
    do some simple subtraction, then click the Record button to enter
    the data into a table. Problem is that if someone types in the
    answer, they naturally want to hit the Return key to enter the
    data, however, it instead puts a carriage return in their answer
    and when they try submitting with the Record button, it checks
    their answer and it is now wrong since the added carriage return
    does not match the answer they should have. Is there any way to
    make the Return key trigger the recordIt() function? Here is my
    code:

    Here is what I ended up adding:
    stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDownListener);
    function keyDownListener(e:KeyboardEvent) {
    if ((e.keyCode == Keyboard.ENTER) && (diameter.text
    != "") && (difference.text != "")) {
    recordIt(e);
    }

  • 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

  • How to trigger button using shortcut keys

    Hi Friends i want to trigger a button in java swings using keyboard keys.
    for ex: a button called "Enter" either i click mouse or i press ALT+E to trigger it.
    Plz give me sample coding if u have
    By
    vinod

    Try looking at the tutorials...
    http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html

  • The problem I have since I upgraded to Mavericks version 10.9.1 The problem appears only with Mail not with other programs, not even with my browser. When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command   to e

    the problem I have since I upgraded to Mavericks version 10.9.1
    The problem appears only with Mail not with other programs, not even with my browser.
    When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
    As I have a problem with my eyes, This is a serious matter for me.
    When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
    Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but  he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • Using PgDn key on eBay browsing screens results in a 2-step jerky display to move from one screenful to another - this problem is not apparent on other websites

    This problem has been apparent for some time in Firefox and has not been fixed in version 22. The scrolling using PgDn key works smoothly in Internet Explorer.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Also try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • How to use Control Key with other key as Ctrl+C

    I am using this code to access Shift key + C
    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isShiftDown() && (KEv.getKeyCode() == KEv.VK_C))
    //Shift + C key down
    Please tell me how to do with Control Key?
    Vishwajeet

    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isControlDown && (KEv.getKeyCode() == KEv.VK_C))
    //Cntrl + C key down
    //if u want to create a key stroke for keys with contrl combination use CTRL_MASK.

  • On key Press Trigger

    Hi,
    Im using forms 6i. I have a text item. I want to restrict user to enter only the letter 'A'.
    we can acheive this using when-validate-item trigger, but it allows to enter other letters or numbers. the restriction takes place when the item is validated.
    what i exactly need is, if the user press any key except 'A' then(while pressing other keys) the validation msg
    should come.
    i.e, the text item should not allow to enter any letter except 'A'.
    what to do?
    Thanks in Advance
    Sankar

    Sankar,
    So write in the WHEN-VALIDATE-ITEM trigger,
         IF UPPER(:<block_name>.<item_name>) <> 'A' THEN
              :<block_name>.<item_name> := NULL;
              RAISE FORM_TRIGGER_FAILURE;
         END IF;This will clear all characters other than A, a.
    Regards,
    Manu.
    If my response or the response of another was helpful, please mark it accordingly

  • Preview.app crashes whenever I use a key command

    I've had this very annoying problem for quite a while now, and so far I haven't been able to find a solution for it.
    Whenever I use a key command in Preview.app it either freezes or crashes or both. I can use all the menu options, just not trigger them with a key command.
    So I can use the app just fine, just so long as I remember to not use the key commands, but it's just that having been using apple key commands since 1986 it's really hard to not acidentally hit any of them while in Preview.app, and every so often I accidentally do … sometimes losing unsaved changes in the process.
    I'm not sure when the problem first occurred, but it dates back to Lion at least and it's still there in Mountain Lion as well.
    I thought it might be some extension or some background app clashing with Preview.app, but when starting up holding shift the problem remains.
    And the problem is local to my user account only, and Preview.app works just fine in other user accounts.
    So I figured I'd just trash the Preview.app prefs and all would be well, but no go. Unless there are some more hidden prefs of some kind that I don't know about.
    So, something local to my user account only screws up key commands in Preview.app only, and I can't figure out what or how to solve it.
    I may end up having to migrate the contents and settings of my account to a new user account to solve this, but that soundsa lot like surrendering doesn't it? ;-)
    And I thought I'd give it one more try to figure this out before I put myself through a migration process. ;-)
    Ideas anyone?

    Ha! Fixed it!
    Kept reading all "Preview+plist" threads and found this one: https://discussions.apple.com/message/17195650#17195650
    And sure enough, trashing ~/Library/Containers/com.apple.Preview/ reset the preferences for Preview.app and now all key commands work without crashing.
    But if erasing that folder, and more importantly the plist in it, did reset the preferences, that would suggest the preferences were being saved there. So I now changed the prefs and quit the app, and then trashed the containers folder again, and restarted the app. But strangely the prefs remained. So I thought, well if the prefs were being stored there, maybe erasing that plist made Preview reinstate the regular plist in the regular Preferences folder? But no go, as there's still no regular Preview plist in the regular Preferences folder.
    So now, there's no regular plist, and erasing the Containers folder no longer resets the prefs, but changes to prefs are still being saved somewhere … so where the **** are they being saved now? It's like they just keep burrowing down further into the ground with every attempt to erase them. What the **** is going on? ;-)
    Anyways, the initial problem is solved, so … maybe I should just let the mystery remain? ;-)

  • 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

  • Navigation in multi row field using ENTER key

    Contents of the field are deleted when I use ENTER key in a multi line field.
    Any solution?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nadeem Ameer ():
    Contents of the field are deleted when I use ENTER key in a multi line field.
    Any solution?<HR></BLOCKQUOTE>
    the normal that when you press an Enter key
    in a field which is a multi line field the cursor is moving to the next line.
    sol:verify that you don't write any wrong code in the key-enter trigger
    & check that you set the multi_line property of that item to yes.
    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.

Maybe you are looking for

  • Opening multiple files with a single click?

    I have searched this topic here and online elsewhere, but haven't gotten an answer. I teach English, and I download multiple student documents to grade. I want to just open all of them and go through one at a time quickly... like a stack of papers on

  • Are not mutually convertible in a Unicode program

    Hi guys, I'm getting error: "LS_EDIDD-SDATA and LS_STRUCTURE are not mutually convertible in Unicode Program" I have PRKST which is Amount field in LS_STRUCTURE, which causes this problem. But if I change type of PRKST to CHAR15, then it doesn't give

  • New Mac Pro & Need to backup e-mails/mailboxes/etc...

    Hey all... Just got a new Mac Pro and I need to know what the sure fire way is to copy over my mail.app information from the older Mac. I know there is a FAQ on the topic but for some reason I remember trying to back-up my mail data (including emails

  • Have to log on to open Query in BEX Browser

    We upgraded to SAP GUI 710. We sign on to the BEX Browser and when we go to open any workbook, we have to sign on again. Has anyone encountered this or have a solution to this? Thanks, Russ

  • Regarding all_rows hint

    Hi, I have a sql query which is taking too long so when i keep /* all_rows */ it is taking same time..may i know reason why? 2.When i see the plan for a query it is performing full_table scan. which is taking too long ..is there any hint to convert t