Key in trigger

Dear All,
if i enter one text in one field at that time same text will display another fielf in forms 10g . how to do that
for example
field A i enter a at the same time i can see field B it show a
regards,
Apple

use synchronize with item property but ur both items must exists in same block AND Synchronize item cannot be database item
else
u can use triggers WHEN-VALIDATE-ITEM or post-change trigger with similar code
:my_sync_item := :my_actual_item;Baig
[My Oracle Blog|http://baigsorcl.blogspot.com/]

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;

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

  • Key-F* Trigger

    I have created a key-F3 trigger at the form level to respond to the F3 key. The only way that the trigger is invoked is with the shift+ctrl+F3 key.
    Is there a way to make the trigger respond to just F3?
    Thanks.

    It depends on what Forms resource file you (and your users) are using.
    If you are in web forms, it is fmrusw.res, and you can edit the file using a text editor. If you are using client/server Forms 6i, you need Oracle Terminal to change the file.
    But changing the file is not a good idea, because it affects every user using Forms, and every form they use.
    If you are using the PC version of the resource file, then the original F3 was a Duplicate Field function. And if that is the case, you can just create a Key-Dup-Item trigger instead of a Key-F3 trigger in your form, and pressing F3 will run whatever code you put into that trigger.
    If you are using the Oracle Web Forms version, it appears there is no substitute, so you would need to change the fmrweb.res file.

Maybe you are looking for

  • Function Modules or BAPI for CK91N transaction Please

    Hi, To upate CK91N transaction , Is there any function module or BAPI exist? Thanks, Krishna

  • Problem of authorization in every Web connection

    In first, sorry for my english, i'm french. I have a problem with a windows of authorization who appear in every first web connection. She disappears after the first choice, but my problem comes that during the launch of Chrome I made the error "bloc

  • How to register External Adaptor Engine in SAP PI 7.0 to select ADE in IB?

    Hi,    I am Sreeramulu Konjeti, I installed PI 7.0 as standard alone system.But Adapter engine is not working, thats why i installed Adapter Engine separately...even I registered Adapter Engine in SLD...But i am un able to see that Adaptor Engine in

  • Ken burns effect won't die

    I want to globally turn off the Ken Burns effect for my 722 slides in my iMove slide show. I have clicked on Project Properties, Timing, Fit in Frame, apply to all. But still it won't go away. I really don't want to do one at a time. What else can I

  • Interactive Report Filter Problem

    Hello, I ran into a problem with an interactive report today. When the report first loads, no issue. If a filter is added, an error is returned. The error is actually generated by an assertion routine that raises and exception if a NULL value was pas