Is it possible - "pust enter key" and "execute go button"

Hi guys,
I want to execute the go button when I push the enter key from keyboard...
Is it possible?
Regards.

hi mate - i think i know what you're trying to do... you're trying to "set focus" on the GO button so on "enter" the go button automatically fires off.
couple of problems with this (from what i see).
1. if you have multiple prompts on the dashboard then you have more than one "GO" button to click on... which one should you default to?
2. targeting the Go button using javascript would be a custom job and burn time, traversing the DOM to find the right "GO" button to set focus on....
... if possible I would just say "it can't be done" to the end user... is that an option?

Similar Messages

  • Problem with Enter key and JOptionPane in 1.4

    Hi,
    I had a problem with an application I was working on.
    In this application, pressing [Enter] anywhere within the focused window would submit the information entered into the form that was contained within the frame.
    The application would then try to validate the data. If it was found to be invalid, it would pop up a JOptionPane informing the user of that fact.
    By default, pressing [Enter] when a JOptionPane is up will activate the focused button (in most cases, the [OK] button) thus dismissing the dialog.
    In JDK 1.3 this worked fine. But in JDK 1.4, this has the result of dismissing the dialog and opping it up again. This is because the [Enter] key still works on the frame behind the JOptionPane and thus tries to validate it again, which results in another invalid dialog msg popping up.
    The only way to get out is to use the mouse or the Esc key.
    Now, in the application I put in a workaround that I was not very happy with. So, to make sure it wasn't the application itself, I created a test which demonstrates that it still misbehaves.
    Here it is.
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import javax.swing.AbstractAction;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JTextField;
    import javax.swing.KeyStroke;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    import javax.swing.WindowConstants;
    * @author avromf
    public class FocusProblemTest extends AbstractAction
         private static JFrame frame;
         public FocusProblemTest()
              super();
              putValue(NAME, "Test");
         public void actionPerformed(ActionEvent e)
              JOptionPane.showMessageDialog(frame, "This is a test.");
         public static void main(String[] args)
              FocusProblemTest action= new FocusProblemTest();
              try
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              catch (Exception e)
                   e.printStackTrace();
              frame= new JFrame("Test");
              frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
              Container contents= frame.getContentPane();
              contents.setLayout(new FlowLayout());
              JTextField field= new JTextField("Test");
              field.setColumns(30);
              JButton  button= new JButton(action);
              KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, true);
              button.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(enterKey, "test");
              button.getActionMap().put("test", action);
              contents.add(field);
              contents.add(button);
              frame.pack();
              frame.setVisible(true);
    }Does anyone have any solution to this problem?

    I know that focus management has changed alot.
    Based on my experimentation a while back, in 1.4 it still believes that the JFrame is the window in focus, even though a JOptionPane is currently in front of it (unless I misinterpreted what was going on). Thus, the frame seems to get the keyboard event and re-invoke the action.
    A.F.

  • Skip Enter Key and focus a field

    Hi All
    I need to :
    1) skip pressing the enter key to refresh the screen after selecting a ralio button
    2) focus a paticular field after selecting a radio button
    Please tell me the tricks to perform these - I have looked up the help and SDN for these - but sofar - not much useful info found
    Thanks in advance.

    Hi Liem,
    Refer below thread and in that see the link of help.sap.com
    Re: Set Variant in Program
    Regards,
    Atish

  • Use Enter key to execute report.

    I have a report that needs to be executed in background.It has a selection screen.The program should get executed when user presses 'ENTER' while he is inside the selection screen.At present,when 'ENTER' key is pressed,only validation is done.To execute we are  either pressing 'F8'  key or click execute button in screen.
    Now how to trap the 'ENTER' key press in  a report?

    Hi Jayaprakash,
    All PAI processing will depend on the Function Code that has been triggered at the selection screen.
    The ENTER key has no function code, whereas the "Execute" button has the function code 'ONLI'. SO what can be done is, when the user hits the ENTER key, we can programmatically set the function code to 'ONLI'. I shall give you a very small peice of code to illustrate my point.
    ===================================
    tables sscrfields.
    parameters p_vblen like vbak-vbeln obligatory.
    at selection-screen.
    if sscrfields-ucomm eq space.
    sscrfields-ucomm = 'ONLI'.
    endif.
    start-of-selection.
    write p_vblen.
    ===================================
    The above code will trigger the report output on hitting the ENTER key at the selection screen.
    What you only have to note here is that unlike with screen processing, in selection-screen processing, the function code will be made available in the field UCOMM of the structure SSCRFIELDS. However, you will have to declare this structure in your program ( using the TABLES statement as shown above ).
    Hope the explanation has been clear enough to drive the point home for you. Please get back to me otherwise.
    Regards,
    Anand Mandalika.

  • I removed the ENTER key and can't get it back on

    Hi,
    Approximately 2 months ago i removed a few keys off my Macbook Pro to clean them. I managed to replace all of them except for the ENTER key.
    Underneath the casing there are 2 plastic bases which scissor. These bases attach via hooks on the main keyboard. I managed to get one back on but i can't get the other base back on. The enter key itself still works but without the housing on top.
    Went i went to the genius bar i was told because t was out of warranty they would charge me or if i went back to the retailer (Tesco) they would fix it within the 6 year european consumer law. The genius said that he could see it had not been mistreated and it shouldn't be a problem. When i consequently called Tesco they told me they wouldn't as it was user damage and that i should go back to Apple because when Tesco arrange repairs they get Apple to do them anyway.
    Im a little tired of heading backward and forward between the two companies and no one is helping. I just want my key back on.
    I have a mid 2012 Macbook Pro. i5 Processor, 4GB Ram, 500GB HDD.

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).<br />
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.<br />
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Clearing the history causes the enter key and search button not to work

    If I clear my history and set my browser to never remember or suggest websites, the search button doesn't work. I can click on it but nothing happens. In addition, if I simply use the enter key from my keyboard, that doesn't work either. I have to reset firefox and then the new version will work (but if I go back and change all my history settings again and then it stops working). Please help.

    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.
    Did this fix your problems? Please report back to us!

  • Enter key and GridControl !!

    I need to go to the next cell in the same row when Enter is pressed. Any ideas as to how to do it. By default pressing the Enter key will move the row selection down. I would like to change this.

    hi gina,
    as stated above if you have a text field and this is the only item on the page then the browser default behaviour is to submit the page if the user hits enter.
    if the search item is not the only item on the page then the browser will not submit the page but treat the item as a normal text item.
    so if you want the user to be able to submit the page by hitting enter after filling the field then use the item with submit item type.

  • How to use enter key instead of save button in tabular form?

    Hello,
    is there a way to save data entered into a tabular form by clicken enter instead of "submit/save" button?
    We got it working for normal forms but not for tab. forms
    Regards
    Friedrich

    Hi Friedrich,
    try to enter
    onkeypress="return submitEnter(this,event)"into "Element Attributes" of your tabular form column.
    If you hit enter, the page will be submitted with request set to the id of the tabular form column.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Possible bug with TREAT and EXECUTE IMMEDIATE

    Hello, i experienced a strange behavior which seems to be a bug.
    Consider following definitions:
    CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT (
      DummyProperty NUMBER
    ) NOT FINAL;
    CREATE OR REPLACE TYPE T_Child UNDER T_Base (
      AnotherDummyProperty  NUMBER
    CREATE OR REPLACE FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER IS
    BEGIN
      -- some specific validation is done here, not important for the example
      RETURN NULL;
    END;
    CREATE OR REPLACE PROCEDURE ValidateIt (iValue T_Child) IS
      lResult NUMBER;
    BEGIN
      -- The principle used here is that each client can have its own implementation of validation function, and when it does not exist, we do not care.
      -- In reality we put functions and procedures into packages, I narrowed it to a minimal working example.
      BEGIN
        EXECUTE IMMEDIATE 'BEGIN :lResult := SpecificValidation(:iValue); END;'
          USING OUT lResult, IN iValue;
      EXCEPTION WHEN OTHERS THEN
        IF INSTR(SQLERRM, 'PLS-00201') = 0 THEN
          RAISE;
        END IF;
      END;
    END;
    CREATE OR REPLACE PROCEDURE Process (iValue T_Base) IS
    BEGIN
      -- in fact we know that iValue must be of typ T_Child, it is checked using IS OF ( ) operator and exception is raised if this check fails
      -- This does not work for some reason.
      -- It fails in EXECUTE IMMEDIATE with PLS-00306. I don't really get why, because ValidateIt accepts a value of type T_Child and it passes it to the validation procedure, which also expects value of type T_Child.
      ValidateIt(TREAT(iValue AS T_Child));
    END;
    CREATE OR REPLACE PROCEDURE Process2 (iValue T_Base) IS
      lChild  T_Child;
    BEGIN
      -- The only difference here is that result of TREAT is saved to a variable.
      -- This works as expected.
      lChild := TREAT(iValue AS T_Child);
      ValidateIt(lChild);
    END;
    In reality it is much more complex, I narrowed it to a minimal working example.
    Now when running this:
    DECLARE
      lItem T_Base := T_Child(5, 2);
    BEGIN
      BEGIN
        -- This call will end up with PLS-00306 error.
        Process(lItem);
        dbms_output.put_line('Process completed successfully.');
      EXCEPTION WHEN OTHERS THEN
        dbms_output.put_line('Exception when calling Process.');
        dbms_output.put_line(SQLERRM);
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
      END;
      BEGIN
        Process2(lItem);
        dbms_output.put_line('Process2 completed successfully.');
      EXCEPTION WHEN OTHERS THEN
        dbms_output.put_line('Exception when calling Process2.');
        dbms_output.put_line(SQLERRM);
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
      END;
    END;
    then call to Process fails with PLS-00306 on EXECUTE IMMEDIATE.
    The only difference between Process and Process2 is that in Process2, result of TREAT is saved to a variable of type T_Child.
    Is this behavior documented somwhere or is it a bug?

    That's interesting. I would say it is, or should be, a bug.
    Also interesting is, when I re-write your example to eliminate dynamic SQL and instead rely on dynamic method dispatch, the problem goes away... first, the changes:
    drop type T_Child;
    drop type T_Base
    CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT ( 
      DummyProperty NUMBER 
    ) NOT FINAL
    CREATE OR REPLACE TYPE T_Child UNDER T_Base ( 
      AnotherDummyProperty  NUMBER 
    create or replace type T_Base_Processor as object (
      dummyProperty    number
    , static FUNCTION GetClientProcessor(iClientId varchar2) RETURN T_Base_Processor
    , member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
    , member PROCEDURE ValidateIt (iValue T_Child)
    , member PROCEDURE Process (iValue T_Base)
    , member PROCEDURE Process2 (iValue T_Base)
    ) NOT FINAL
    create or replace type T_Another_Processor under T_Base_Processor (
      overriding member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
    create or replace type body T_Base_Processor
    is
      static FUNCTION GetClientProcessor(iClientId varchar2) RETURN T_Base_Processor IS
    BEGIN
      return    case
            when upper(iClientId) = 'ADMINISTRATOR' then
                new T_Another_Processor(null)
            else
                new T_Base_Processor(null)
            end;
    END;
      member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER IS 
    BEGIN 
      -- some specific validation is done here, not important for the example 
      dbms_output.put_line('T_Base_Processor.SpecificValidation');
      RETURN NULL; 
    END; 
      member PROCEDURE ValidateIt (iValue T_Child) IS 
      lResult NUMBER; 
    BEGIN 
      -- No more need for dynamic SQL, instead rely on dynamic dispatch
      lResult := SpecificValidation(iValue);
    END; 
      member PROCEDURE Process (iValue T_Base) IS 
    BEGIN 
      -- in fact we know that iValue must be of typ T_Child, it is checked using IS OF ( ) operator and exception is raised if this check fails 
      -- This does not work for some reason. 
      -- It fails in EXECUTE IMMEDIATE with PLS-00306. I don't really get why, because ValidateIt accepts a value of type T_Child and it passes it to the validation procedure, which also expects value of type T_Child. 
      ValidateIt(TREAT(iValue AS T_Child)); 
    END; 
      member PROCEDURE Process2 (iValue T_Base) IS 
      lChild  T_Child; 
    BEGIN 
      -- The only difference here is that result of TREAT is saved to a variable. 
      -- This works as expected. 
      lChild := TREAT(iValue AS T_Child); 
      ValidateIt(lChild); 
    END;
    end;
    create or replace type body T_Another_Processor
    is
      overriding member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
    is
    begin
      -- some other specific validation is done here, not important for the example 
      -- You could even call the overridden method as well using
      --   treat(self as T_Base_Processor).SpecificValidation(iValue)
      dbms_output.put_line('T_Another_Processor.SpecificValidation');
      RETURN NULL; 
    end;
    end;
    And again with slight modifications, your test block:
    DECLARE 
      lProcessor T_Base_Processor := T_Base_Processor.getClientProcessor('JOE');
      lItem T_Base := T_Child(5, 2); 
    BEGIN 
      BEGIN 
        -- This call no longer throws a PLS-00306 error. 
        lProcessor.Process(lItem); 
        dbms_output.put_line('Process completed successfully.'); 
      EXCEPTION WHEN OTHERS THEN 
        dbms_output.put_line('Exception when calling Process.'); 
        dbms_output.put_line(SQLERRM); 
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE); 
      END; 
      -- Demonstrate dynamic dispatch by choosing a different processor
      lProcessor := T_Base_Processor.getClientProcessor('ADMINISTRATOR');
      BEGIN 
        lProcessor.Process2(lItem); 
        dbms_output.put_line('Process2 completed successfully.'); 
      EXCEPTION WHEN OTHERS THEN 
        dbms_output.put_line('Exception when calling Process2.'); 
        dbms_output.put_line(SQLERRM); 
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE); 
      END; 
    END; 
    T_Base_Processor.SpecificValidation
    Process completed successfully.
    T_Another_Processor.SpecificValidation
    Process2 completed successfully.
    Gerard

  • Problem in enter-query and execute-query in TEMPLATE.fmb in Oracle Apps R11

    I have created the form using TEMPLATE.fmb in Oracle Apps R11i. There is 2 problems listed below when it queries the records:-
    1) Cannot query the record by the specific value e.g. Cannot retrieve the PO records by entering the specific PO number.
    2) Always display the message 'Do you want to save the record?' whenever the <ENTER-QUERY> key (i.e. F11) is pressed.
    HOWEVER, it works fine for ALL records without entering any specific values.
    Does anybody help to solve these two problems? Any hints? Thanks for any helps.

    try setting the block status to query or record
    status to new prior to getting in the enter-query
    mode.
    Thanks
    TapashHi Tapash, Dun understand.. please give more details.. Thanks.

  • How to make the enter key act as a button?

    I have a CREATE and UPDATE button and I would like the user just to be able to press enter and perform the create or update as appropriate as if the button was pressed.
    Thanks in advance for your help.
    Greg

    Greg,
    Use the following so you don't loose the delete message:
    <script type="text/javascript">
    //<![CDATA[
       htmldb_delete_message='"DELETE_CONFIRM_MSG"';
       document.onkeypress = keyHandler;
       function keyHandler(e) {
          var keycode;
          var id = $v('PXX_ID');
          if(window.event){keycode = window.event.keyCode;
          }else if(e){keycode = e.which;
          }else{return true;}
          if (keycode == 13){
             if (id) {
                doSubmit('UPDATE');
             } else {
                doSubmit('INSERT');
             return false;
          }else{
             return true;
    //]]>
    </script>What is the name of your primary key item?
    Are you getting any JavaScript errors?
    Did anything happen?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • Execute (Quit and Execute Query) button not showing up ...

    Hi Gurus,
    I recently installed SAPGUI on a different laptop which never had before.Everythng was fine but when I open BEx and start a new query, I do not see the green circle with check mark on it. This button is used to execute the query.
    I did uninstall and re-install it, but it never helped. Please help ASAP. I will assign points.
    Rgds,

    Hi Matt,
    It could be that the image has gone missing from the server. In a region's Region Header or Region Footer, add in:
    &lt;img src="#IMAGE_PREFIX#themes/theme_3/button_xp_center_FFFFFF.gif" alt="" width="4" height="24" /&gt;Do you see the image?
    #LINK# is created from the button name, usually as: doSubmit('BUTTONNAME'). #LABEL# is the label you have set for the button. Neither should affect the image display as that is actually part of the TD tag itself.
    Andy

  • Enter Key works same as button click

    .

    Tharpa,
    You can make your search field a text field with submit. This will submit the page and make the request the name of the item when the user presses enter while this field has focus.
    I cannot currently look at a 3.2 instance and be more descriptive about how you can do this, but if i remember correctly it was a sub option of the text field.
    Thanks,
    Tyson Jouglet

  • Set enter key always on search button

    hi  , there are three submit button:'return home'\'search'\'clear'
    i want the the point is always in 'search' button.  but now if you click anywhere , it points to 'return home' submit button.
    please help me thanks.

    https://community.oracle.com/message/3876134#3876134
    https://community.oracle.com/message/1061834#1061834

  • Since upgrading to Firefox 10.0.2 my AVG extension has had to be disabled, as after typing in any web address in the address bar, the enter key had no effect and I could not go to the site without pressing the Reload arrow on right.

    I have recently upgraded Firefox to the latest version 10.0.2. After that I could not enter any website address and press the enter key and get to the website, nor could I select a website from the dropdown list of previously visited websites. The only way I could get there was by pressing the arrow on the right side of the address box (Reload current page). Once I disabled the AVG extension, everything worked normally. As soon as I enabled the AVG extension, it stopped working again.

    Follow these steps for the controls to work:
    # Start > Programs > Mozilla Firefox > Mozilla Firefox
    # Find the “Tools” menu at the top of the browser window and select “Add-ons”.
    # Click on the “Extensions” icon to make sure you’re in the correct option menu.
    # Locate “AVG Safe Search” and click on the containing line to highlight and select the add-on.
    # Click the “Disable” button and close the Add-ons window.
    # Close down any Firefox windows you may have open.
    # That’s It – You’re Done!

Maybe you are looking for

  • How do I use an external hard drive as my primary itunes library?

    I am trying to move my primary itunes folder to an external hard drive to free up space on my C drive.  I moved all applicable folders and made the appropriate changes so that all the music and movies would play from their new location.  But, when I

  • How to change read-directory when using file adapter

    Hi, I'm deploying BPEL process to read files from a directory. I want to change the directory where to read dynamically. This can be achieved by using a file header variable. I know how to do this. But, the problem for me is that I can not find a pla

  • IBooks app - no longer available

    I have tried numerous times to download the "iBook app" from the App Store for my iPad but I continuously receive the message that is no longer available. Is this for real, or is it just a temporary App Store glitch? If no longer available,what is th

  • Need help converting Excel IF statement into CASE WHEN statement for Oracle

    Hi, Hope someone can help I have tried various ways of getting this to work, to no avail! Bascially I have some figures that are minus figures, and I need to add them together to get a movement figure, but I need to treat the minus figures as minus,

  • Get_texts_from_transaction

    How to use this function? Thanks.