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... :(

Similar Messages

  • 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

  • KEY-EXEQRY trigger and FROM CLAUSE QUERY problem

    Hi,
    I have a form designed in Oracle Forms6i. I have two block on it, BlockA and BlockB.
    When BlockA is queried with some data to search, I need to build the FROM CLAUSE QUERY for BlockB. It uses the same WHERE condition as I used to search BlockA.
    I am building the FROM CLAUSE QUERY and executing query for BlockB on KEY-EXEQRY trigger of BlockA.
    It works fine, if first time, I query the BlockA without any specific data. But it gives me error 'ORA-01008: not all variables bound' if I query the BlockA with specific data very first time.
    Please advise.
    Thanx
    Zaaf

    No, I am not using any substitution variables. To get the LAST_QUERY for BlockA, I am using Get_Block_Property.
    But now I switched it to :system.LAST_QUERY and it worked.
    Thank you!

  • 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.

  • Pressing enter query function key more than once displays past search key

    At present, in Oracle Forms this is what's happening:
    1. User presses entery-query (F7)
    2. User searches for employee name smith. Plases %Smith% in the employee name field.
    3. User presses execute-query (F8)
    4. All employee names with "Smith" is displayed.
    5. User presses enter-query again (F7). Screen is cleared.
    6. User presses enter-query for the 2nd time (F7). %Smith% appears on the employee name field.
    The problem is the user do not want %Smith% to appear the second time they press enter-query. If you guys have any idea or have experienced this, please let me know.
    Thanks.

    You are experiencing the default query last criteria functionality. When you execute the ENTER_QUERY built-in while in enter query mode, it will show the last query criteria. To override this, you could create a KEY-ENTQRY trigger on your block and give it code similar to:
    IF :SYSTEM.MODE != 'ENTER-QUERY' THEN
      ENTER_QUERY;
    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

  • 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;

  • 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.

  • 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-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

  • 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.

  • 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

Maybe you are looking for

  • How can I open a keynote file that was made in Keynote Beta and downloaded from the web?

    I have Keynote version 5.3 I want to edit a Keynote presentation made originally in Keynote Beta on the web. When I download it in .key it wont let me edit the file because it says I need a newer version of Keynote. When I try to download Keynote 6.0

  • What is happening in this CC thing?

    This is starting to turn into the complete fiasco I have been dreading. Not only do half the applications in CC 2014 fail to install properly but I am also concerned about the multiple stacked versions it seems to be installing. I fail to understand

  • Macbook calendar does not sync to my other devices

    I recently noticed that when I was editing events on my Macbook calendar it was not syncing to my other devices. If I edit the event and close out of the calendar and open it again the change does not stay, it goes back to what it previously said. I

  • How to change background color in online editor

    How to change background color in online editor

  • Synchronization failure on XMLType column

    Hi!, We're using Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bit Production on Solaris After creating a table with one schema-based XMLType column, we created a context index on it with the ctxsys.path_section_group as its sole para