Key triggers in forms

How at add key triggers in Forms.For example : When users click function key "F2" then it should save the record.
Thanks
Saritha

hi,
there are two ways to do it,
one is to re-map function keys using oracle terminal,
other is to use triggers that are already associated to the operations that
are performed by pressing these keys e.g.
F1 ---> Help
F9 ---> List of values
F4 ---> Duplicate record
you can use these triggers to redefine the function/operation of keys
by their associated triggers, like if you want 'F4' to save the data,
you will write 'COMMIT_FORM' or any code you want, on trigger
KEY-DUPLICATE-RECORD which is fired while 'F4' key is pressed,
since this trigger is associated with 'Duplicate record' event.
once you write the code on this trigger at form level, it will perform
the required operation on activation.
regards,
aamir.

Similar Messages

  • Key mapping for forms on web

    Presently we are using forms 4.5. We have got costomise key
    mapping for operating through forms. Now we want to start forms
    on web (Intranet). Earlier we use to change key mapping through
    oracle*terminal. I require help in knowing how to customise key
    mapping in forms 6i / oracle 8.1.7.

    Hi,
    Boy, I have some good news to you: Oracle*Terminal is no longer
    needed.
    WordPad (or your favorite text editor) is your tool from now on.
    Keyboard files are located in $ORACLE_HOME\FORMS60.
    Simply ignore the binary file fmrusw.res when you run Forms on
    the Web. FMRWEB.RES is the one that is used, and it's pure ASCII.
    There are some comments in the file itself.
    The keys are the same as the Motif version of Forms.
    If you prefer the Windows keys, simply use FMRPCWEB.RES instead.
    How? Check under $ORACLE_HOME\FORMS60\SERVER for your
    formsweb.cfg, go to User Parameters and replace the
    otherparams=
    line with
    otherparams=term=%forms60%\fmrpcweb.res
    Now, anyone can define the Function-0 till Function-9 key
    combinations, in order to use KEY-F0 till KEY-F9 triggers.
    Hope this helps,
    Pedro das Neves
    [email protected]

  • Key binding in Forms 6i

    Hi All,
    I have a problem with key binding. I have tried different permutations of changing the key binding using the Oracle Terminal on FMRUSW.RES FILE to no avail. I have edited the keys of windows-sqlforms normal and used USER DEFINED KEY 2, etc but when I try to generate the file it gives the error 'failed to find action for user defined key 2 for an entry in "normal" in sqlforms. I have even gone to the extent of merely changing the bindings of the old entries to see whether it would work. It would give no error when generating but in the application the triggers did not work. I have even changed the Product Actions by inserting the code in the actions column but without any success.
    What I really want is for example to execute the key triggers in the application e.g. F2 would fire the trigger 'execute query', F3 to fire trigger 'copy', etc.
    I will appreciate any help I can get. Please note that I have gone through the numerous materials on the subject but they have not solved the problem.
    Thanks.
    Tunde

    Hi,
    I coded the key mapping as follows:
    I created a menu item. To call the code, you have to give a name for an accelerator key in the property palette for the menu item e.g. "start_menu".
    Let's say, to invoke the menu item, you have to press "Ctrl+E". So you have to set the key mapping in your *.res-file like this:
    69 : 2 : "Ctrl+E"           : 85 : "start_menu"
    Explaination:
    69: Code for "Ctrl+E"
    2: Java Modifier Number for "Control"
    85: Forms function number ("User Defined Key 3", look at the file I send to you !)
    I don't know, if that's the solution, because you wanted to map F1, F2...., but it shouldn't be a problem to switch my solution to F-keys. But perhaps, some of the Forms functions (e.g. F7 for Enter-Query-Mode) won't work then.
    Hope this helps.
    Regards,
    Markus

  • Primary Key in tabular form is not a number

    I created a table called tblRegions.
    The primary key is RegionCode(VarChar2) - example - USA.
    I then tried to create an updateable Tabular Form using tblRegions, but it won't let me choose the primary key as an updateable field.

    O.K.
    1. create a trigger which will populate a real primary key out of a sequence - search internet
    on triggers and sequences in oracle
    2. use this primary key for tabular form processing
    3. if you need a manually entered pseudo (fake) primary key, you can handle this column
    as any other - tabular form will not complain about it
    4. you may create a constraint on your table, which will take care this column is allways
    populated and unique - this is not the nicest way since it involves processing and the errors
    you gat may not look user friendly. However, this is the most secure and easiest way -
    you don't need to write any code on the application side to handle eventual errors.
    Search internet on constraints.
    5. you may decide to create a manual validation process to fetch the eventual errors
    before you commit the changes to the database. This forum is full of the threads on
    the topic "tabular form" and "manual creation of tabular forms". If you are new to apex,
    you should stay away from that for the first (this is only my opinion).
    Denes Kubicek

  • Key triggeres animation

    So I'm working on my first java based game to work on my basic gui skills. I'm want it so that when the up key is pushed a shot is fired (just a circle). I'm not sure how to approach it though, whether to use graphics2d to create a fillarc and make it visible when the button is pushed, or have it created when the up key is pushed. But the problem I find with the latter is that I would have to make an inner class in the paintcomponent and it needs to be in the default constructer. So i was wondering if anyone could help me with this problem?

    Okay so I figured a way to do a key triggered animation. I used space instead of up and had it change a boolean shot to true(when pressed) and while shot is true, the x and y coordinates of the shot (beginning at the end of the gun) are either incremented or decremented and added to the x and y of the fillarc() method in order to animate the shot in a certain direction, but now when I press space the game freezes completely. I can't figure it out, can anyone tell me why this is happening?
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class Book_Game extends JFrame{
        Home_Base home = new Home_Base();
        public Book_Game(){
            add(home);
            home.setFocusable(true);
        public static void main(String[] args){
            Book_Game frame = new Book_Game();
            frame.setSize(600, 500);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        class Home_Base extends JPanel{
            //Gun & Base -> values obtained through print out of getHeight() and getWidth() methods
           private int BaseH = (int)(464*.85);
           private int radius = (int)(464/8);
           private int GunY = 464;
           private int GunXcenter = (int)(584/2);
           private int GunX = GunXcenter - radius;
           private int GunYlength = GunY - 100;
           private int GunXlength = 584 + (int)(radius*1.6);
           private int angle = 0;
           //Random Object for a random integer
           Random r = new Random();
          //Enemy fire coordinates in random positions above Base's gun
           private int EnemyFireX = r.nextInt(584);
           private int EnemyFireY = r.nextInt(GunY - 150);
           private boolean shot = false;
           private int shotX = 0;
           private int shotY = 0;
           //Gun angle X & Y for shot direction
           private int GangleX = 0;
           private int GangleY = 0;
           public Home_Base(){
                javax.swing.Timer timer = new javax.swing.Timer(500, new TimerListener());
                timer.start();
                addKeyListener(new KeyAdapter(){
                        public void keyPressed(KeyEvent e){
                            switch(e.getKeyCode()){
                                case KeyEvent.VK_RIGHT : angle += 5; break;
                                case KeyEvent.VK_LEFT  : angle -= 5; break;
                                case KeyEvent.VK_SPACE : shot = true;
                            repaint(GunXcenter - 100, GunY - 100, 200, 200);
            protected void paintComponent(Graphics g){
                super.paintComponent(g); // clear the screen
                Graphics2D g2 = (Graphics2D)g;
                //Gun Base
                g2.fillArc(GunX, GunY - radius, radius * 2, radius * 2, 0, 180);
                //Buildings
                g2.fillRect(0, BaseH, radius/2, GunY - BaseH);
                //Fire
                int EnemyFire = (int)(Math.min(getWidth(), getHeight()) * 0.04);
                //Fill in the Enemies Fire
                if((EnemyFireY+(2*EnemyFire))<BaseH){
                    EnemyFireY += 10;
                }else if((EnemyFireY+(2*EnemyFire))>=BaseH){
                    EnemyFireX = r.nextInt(584);
                    EnemyFireY = r.nextInt(GunY - 150);
                g2.fillArc(EnemyFireX, EnemyFireY, 2*EnemyFire, 2*EnemyFire, 0, 360);
                //shot
                //x & y locations of the tip of the gun
                int EndofGunXcenter = GunXcenter - (EnemyFire/2);
                int EndofGunYcenter = GunYlength - (EnemyFire/2);
                while(shot != false){
                    GangleY -= angle;
                    if(angle < 0){
                        GangleX -= angle;
                    }else
                    if(angle > 0){
                        GangleX += angle;
                    g2.fillArc(EndofGunXcenter + GangleX , EndofGunYcenter + GangleY, EnemyFire, EnemyFire, 0, 360);
                //gun
                AffineTransform af = new AffineTransform();
                af.translate(GunXcenter, getSize().height );
                af.rotate(Math.toRadians(angle));
                g2.transform(af);
                g2.drawLine(0, 0, 0,  -100 );
                class TimerListener implements ActionListener{
                    public void actionPerformed(ActionEvent e){
                        repaint();
    }

  • How to change key on runtime form in application server

    How it is possible reconfigure key on froms in application server ????
    List Values on Client = key "F9"
    List values on Application = key "CTRL + L"
    and so on.....
    can j have the same on client version like apllication ???
    Thank You !!

    Mike,
    the fmrweb.res file in the forms90 directory controls the behavior of Forms function keys. There is a file called fmrpcweb.res in the same directory that you can use to bring back client/server key mapping to Forms on teh Web.
    1. rename fmrweb.res to something different
    2. Make a copy of fmrpcweb.re and name it fmrweb.res
    Frank

  • KEY CAPTURING IN FORM BUILDER

    DOES ANY BODY KNOWS HOW TO CAPTURE KEYS
    IN ORACLE FORM BUILDER..SO THAT WE CAN USE OUR OWN HOT KEYS TO ACCESS DIFFERENT OBJECTS LIKE TAB PAGES THROUGH HOT KEYS.
    IF ANY BODY KNOWS THE PROCEDURE PLEASE TELL ME IN DETAIL
    THANX

    Please don't use all capitals ... that is 'shouting' and is not liked by participants as it is harder to read.
    To answer your question, open forms builder, go to any block, select an item and on the property palette, under functional, click on Access Key - press F1 for help - its all there. I don't know about TABs.

  • How to press the enter key then execution Form?

    Using:SAP B1 UI Form for C#
    How to press the enter key then execution Form?
    thanks
    Edited by: JackyChang on Jul 5, 2010 5:35 AM

    Hi JackyChang,
    Use the SendKeys method.
    VB Sample
    oApplication.SendKeys("{ENTER}")
    Regards,
    Vítor Vieira

  • KEY MAPPING in FORMS 6i

    Hi Friends,
    I'm working with Forms 6i, WinXP, Oracle DB 10g in C/S mode. I want to map the keys i.e. I want to write triggers which will define the action of some function keys. I installed oracle terminal, I modified FMRUSW.RES accordingly. Still not getting the result. If there is anyone who already have worked on this please notify my mistake. I will describe the steps in detail if u want.
    Pls help,
    Regards,
    Pragati.

    Hi,
    I coded the key mapping as follows:
    I created a menu item. To call the code, you have to give a name for an accelerator key in the property palette for the menu item e.g. "start_menu".
    Let's say, to invoke the menu item, you have to press "Ctrl+E". So you have to set the key mapping in your *.res-file like this:
    69 : 2 : "Ctrl+E"           : 85 : "start_menu"
    Explaination:
    69: Code for "Ctrl+E"
    2: Java Modifier Number for "Control"
    85: Forms function number ("User Defined Key 3", look at the file I send to you !)
    I don't know, if that's the solution, because you wanted to map F1, F2...., but it shouldn't be a problem to switch my solution to F-keys. But perhaps, some of the Forms functions (e.g. F7 for Enter-Query-Mode) won't work then.
    Hope this helps.
    Regards,
    Markus

  • Function keys Triggers

    Guyz,
    Kindly correct me the function keys associated with triggers in oracle forms 6i.
    F1= (Display properties of an Item ID)
    F2= ?
    F3= ? (KEY_CLRFRM OR KEY_CRLREC) ?
    F4= ?
    F5= (KEY-MENU)
    F6= ?
    F7= (KEY-ENTQRY)
    F8= (KEY-EXEQRY)
    F9= ?
    F0= (KEY COMMIT)Regards
    Moazam

    I think this is help you..
    Ctrl+E          Edit
    Ctrl+F1          Show Keys
    Ctrl+H          Help
    Ctrl+L          Down
    Ctrl+P          Up
    Ctrl+PageDown          Next Block
    Ctrl+PageUp          Previous Block
    Ctrl+Q          Exit
    Down          Down
    F10          Commit
    F2          List Tab Pages
    F3          Duplicate Item
    F4          Duplicate Record
    F5          Block Menu
    F6          Insert Record
    F7          Enter Query
    F8          Execute Query
    F9          List of Values
    PageDown          Scroll Down
    PageUp          Scroll Up
    Shift+Ctrl+PageD          Next Set of Records
    Shift+Down          Next Record
    Shift+F1          Display Error
    Shift+F2          Count Query
    Shift+F3          Next Primary Key
    Shift+F4          Clear Record
    Shift+F5          Clear Block
    Shift+F6          Delete Record
    Shift+F7          Clear Form
    Shift+F8          Print
    Shift+Tab          Previous Field
    Shift+Up          Previous Record
    Tab          Next Field
    Up          Up

  • Triggers in forms

    when form builder is opened, which trigger will fire first and last?

    ok, just kidding.
    You mean forms runtime, not form builder.
    First there are triggers like PRE-FORM, ON-LOGON, WHEN-NEW-FORM-INSTANCE
    Last there are POST-FORM, maybe KEY-EXIT (when you close the form per shortcut)

  • Key Mapping in Forms 10g

    Dear All,
    I have migrated forms 3.0 in unix to forms 10g in windows 2003 server.
    In my older version, '+' key is mapped to do COMMIT. I want to map the same key in forms 10g. i tried the same in my frmweb.res. Pls find the mapping done by me below.
    *107 : 0 : "Add" : 36 : "Commit"*
    This works fine.
    The Issue is ... My cursor is in a text item .... I entered some data and press " + " key to save. The data is saved but at the same time the data in the text item is erased and + is getting replaced in the text item. I dont want my data to be erased and replaced with "+" symbol.
    How to map the "+" just for COMMIT and should not replace the data in the text item ?
    Can anyone help me to solve this issue...
    Thanks in Advance
    Sharf

    Unfortunately, sometimes the role of the developer is to educate the user/management what can/can't and should/shouldn't be done. If I were in your postition, I would make every effort to educate the user/management this this is a REALLY bad idea and encourage them to use the standard key mapping or use a modifed key mapping that uses just the F-Keys.
    The problem you have to overcome is that you have to not only tell Forms to do something different when the '+' key is pressed, but you have to have a listener in your application that is listening for the '+' key and supress the '+' character. To my knowledge, this cannot be done with native Forms built-ins. You would have to write your own Java solution (JavaBean or Pluggable Java Component [PJC]) to suppress the '+'. I have found that if you can provide the user/management with a cost estimate associated with the effort needed to code a particular feature. Once they realize the level effort and more importantly the cost associated with coding a particular feature, they typically will change their mind and see reason.
    I know this is not what you wanted to hear, but I hope it will help anyway. :(
    Craig...
    Edited by: CraigB on Aug 2, 2010 2:05 PM
    Edited by: CraigB on Aug 2, 2010 2:07 PM

  • How can I be able to create a primary key in a Form on a Table with Report?

    When I click the "Create" button, a form appears allowing me type in data for those columns. But primary key is not there. I really need to specify my primary key here also. Because the primary key for this table is a Serial Number, not just a sequence number.
    I noticed that when I created this page earlier, the primary key was ruled out by default. I wish there is a way to accomplish this. Thanks!

    Hello,
    >> a pk field is not null implicit …
    I’m not sure I understand your statement. Every item, including the one holds the primary key, is null for a new form. The question is, when you are filling the form, how to populate this field. The APEX wizard assumes this field will be populated by the system, hence it hides it from the user, however it’s a valid situation where the primary field is filled by the user.
    As primary field should not be changed, hence the productive advice by Martin. If the form displays an existing record, the primary field item should be set to Read Only.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • Smart Form: Which Action triggered the form?

    Hi all,
    we are using a Smart Form that should show information depending on which action triggered it. The Smart From is called by one class that does some preparation logic (Parent CL_SF_PROCESSING_PPF, Method EXEC_SMART_FORM). This class is started by several actions.
    I know I could have several classes, one per action. But in case of changes, I would have to change all classes.
    Is there a way to determine in the class which action was used to call it?
    Thanks for your help,
    Timo
    Message was edited by:
            Timo Koch (rephrased question)

    Hi,
    I'm facing the same issue, for the moment the best answer is to read the value of the GUID from PARAMETER values.
    DATA: para TYPE tpara-paramid VALUE 'TRIGGERGUID'.
    GET PARAMETER ID para FIELD wv_ppf_guid.
    IF sy-subrc <> 0.
      MESSAGE 'Parameter not found' TYPE 'I'.
    ENDIF.
    SELECT SINGLE * FROM ppfttrigg INTO ws_ppfttrigg
    WHERE os_guid = wv_ppf_guid.
    The problem is on creation mode, the guid is filled but the table is not, I'm trying to get info through class cl_manager_ppf but I haven't found yet ...
    Regards,
    Guillaume Mackowiak.

  • Key Mapping for Forms

    Hi All,
    I have 100+ forms, I want to disable some keys in them. e.g. Key-Menu, key-duprec. I can not put a trigger with trigger text 'null;' in each form or inherit an object group and generate again. Can I do something global to remove these key mappings?
    Regards
    Mona

    Mona,
    just an idea: maybe you can create your own keyboard file (.res -file) and assign 'harmless' values to
    Key-menu and key-duprec. Then use the term= tag when you call a form, eg:
    form=<yourform> term=<yourterm-file>
    kind regards,
    Ivan
    >Hi All,
    I have 100+ forms, I want to disable some keys in them. e.g. Key-Menu, key-duprec. I can not put a trigger with trigger text 'null;' in each form or inherit an object group and generate again. Can I do something global to remove these key mappings?
    Regards
    Mona

Maybe you are looking for

  • I want to use iCloud to give my employees tasks

    I need to give my employee a task while they are out of the office. I was thinking I could use icloud to put events in the calender with phone numbers from address book. Can you link ical with address book by adding contacts to ical in an event? Am I

  • Unable to unlock external drive or repair (but can change password)

    I have a Freecom 1TB USB 2 external drive with a single partition with Filevault 2 encryption enabled. The Mac Air detects the drive and prompts for the password to unlock. Prior to this problem it was retrieved automatically from my Keychain (entry

  • Design Premium creative suite crashing

    i have recently bought design premium student edition but after a few days of working fine all of my adobe software suddenly started crashing before it loads. (just after clicking on the icon) the error message is: adobe photoshop CS4 has stopped wor

  • Status updates history period default

    Hi Is there any way to change the default status updates history date range from 3 months please?  Currently as the status approver for a major change program I'm getting several hundred tasks to approve every day across multiple project plans; the p

  • Displaying KM content using Webdynpro Tree Application

    Hi, I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree? Does any body have code samples related