Hitting the "Enter" Key

Hi,
I have a bsp page with few text fields and a submit button. When i use the mouse to click on the submit button its ok but when i use the enter key the page will just refresh and all data that is entered will disappear. I tried using onFocus and still its not working. But when i use the same onfocus statement in normal HTML page the onfocus works but when i have that exact code in BSP it wont work.
Any advice would be greatly appreciated.
i tried the search but most of them are HTMLB and i am just using simple HTML and java script combination to attain what is needed
thanks!

what i would like to happen is after entering the employee number and the user hits the enter key it will submit the form as if the "Submit" button was clicked.
when i click on submit button it works fine, if u just hit the enter key the page will just refresh.
I went to debug mode and when i hit enter, oninputprocessing is not called at all
Here is the HTML
form name=mainform method="POST" onsubmit="return CheckInput(this)
Employee Number (8 digits):
input type=text    name="EMPNO"  onKeyPress="checkEnter(event)"
input type=submit name="onInputProcessing(Display_User)" value="Submit"     
Here is the oninputprocessing
CASE event_id.
  WHEN 'Display_User'.
      request_info-actnreq = 'N'.
      request_info-empid = empno.
      application->setrequest( EXPORTING request_info_t = request_info
                     runtime = runtime
                   IMPORTING
                     return = return ).
      IF return-type = 'S'.
        navigation->goto_page( 'DisplayUser.htm' ).
      ENDIF.
  WHEN 'Cancel'.
DATA: v_url1 type string value 'http://...',
   v_url2 type string value '..../'.
data: v_url type string.
   concatenate v_url1 v_url2 into v_url.
    navigation->goto_page( v_url ).
  WHEN OTHERS.
        request_info-actnreq = 'N'.
      request_info-empid = empno.
      application->setrequest( EXPORTING request_info_t = request_info
                     runtime = runtime
                   IMPORTING
                     return = return ).
      IF return-type = 'S'.
        navigation->goto_page( 'DisplayUser.htm' ).
      ENDIF.
ENDCASE.
thanks!
Ryan
Message was edited by:
        Ryan Luna
Message was edited by:
        Ryan Luna
Message was edited by:
        Ryan Luna
Message was edited by:
        Ryan Luna
Message was edited by:
        Ryan Luna
Message was edited by:
        Ryan Luna

Similar Messages

  • How to prevent numericstepper from setting the value to the defined Maximum when a number greater than maximum is entered in by keyboard and user hits the "Enter" key.

    I need to set the Maximum so that the use can use the mouse to change the value of numericstepper (and not go over a certain number), but at the same time I have to allow the user to enter their value by typing in the text field. When the user enters a number greater than the Maximum, I disable the "Ok" button of the dialog and show a red warning(error message). The issue is that the user can hit "Enter" and numeric stepper would set the value to the Maximum and the dialog box would close and the rest of code would run. I want the numericstepper not to change the value and keep showing the warning even if the user hits the "Enter".
    Note: Setting maxChar does not help since my maximum is 1000, and user might enter 5555
    I would appreciate the help.

    Thanks for trying to help, But
    The issue is that if I set the maximum value of stepper 1 greater than the max value that I want, then the user can select an invalid value(of myMax + 1) when he clicks on the UP arrow of the numeric stepper(which is not acceptable for what I am working on).
    I need to preserve the users invalid number, while not letting the user to select an invalid number by clicking UP key.
    I noticed that when the user enters a number greater than the Maximum, and then click on the down arrow, it would set the value to 1 less than the maximum. This is not acceptable either.

  • When I hit the enter key

    I want some fields be populated. For instance When I enter the car's number, it the textboxes related to car such as brand-model etc should come,if of course has been entered in advance..How this can be done?
    Thanks.

    hi Deniz,
        follow the logic ....
         IN PAI of screen
        select the required values from the ztable according to the car's number ,
       and keep it in a work area .
        IN PBO ....
          pass the values of the work area to the needed fields .
       this will definately work when you hit enter ..do not forget to specify enter in your GUI-status and handle the code as well in the PBO .
    Do not forget to reward points if helpful ..!
    Regards,
    Ranjita

  • I can no longer use the address bar to change websites. I can block text with the mouse and input a new URL but when I hit the enter key or left click on the right arrow it has no effect and the page does not change.

    Also Ctrl+Enter no longer adds www+.com to words entered in the address bar. I can use bookmarks to change to other web sites or my password manager. Re-booting my laptop makes no difference. Please help.

    Hey CaptRobyn,
    Have you tried starting Firefox in Safe Mode? Hold down "shift" while Firefox is starting up. It might be related to an extension. Then you should read [[Troubleshooting extensions and themes]].
    Hopefully this helps!

  • When I type an address in the location bar and hit Enter nothing happens. I must click the arrow button at the end of the location bar. How do I fix it so that the Enter key works?

    When I type a web address in the location bar and hit enter nothing happens. In order to go to the website I've typed in, I must click the arrow button at the end of the location bar. How do I make it so that hitting the enter key takes me to the web page.
    == This happened ==
    Every time Firefox opened
    == Since Firefox 4 Beta installed an update

    The AVG addon seems to have caused the problem for me. I had it disabled and everything worked. Then I updated to AVG 2011 and the problem occurred. It seems to have reenabled itself after the update.
    Just disabling it solved the problem.

  • The enter key to login pages no longer works in Firefox 5

    After upgrading to Firefox 5 hitting the enter key after entering my password on login page does nothing. Before it would submit the page. This was a problem with the beta, too, and I had to downgrade to 4 to fix it. That works fine in 4.

    Yes, this is a stupid behaviour. I have it too. Also, in textboxes it doesn't give me new line.
    The form sending you can solve via hitting Ctrl + Enter.

  • Reprogramming the "Enter" key

    Hi,
    On my PowerBook G4 Titanium's keyboard the normal position of the right-hand Command/Apple Key is an "Enter" key instead. I think it is meant to be used with num-lock as a calculator input (with some letter keys converting to number keys). I never use it for this and often times hit the "Enter" key by mistake as part of a keyboard shortcut key-combination. This has gotten pretty annoying and has resulted in many shall we say "mixed signals" between me and my PB. So is there anyway to re-program the "Enter" key to be the Command Key I know it was born to be?

    The enter/return key is broken. Take it to an Apple store or AASP.

  • Using Firefox 4, my net emails are sometimes sent without my hitting the send key, before I am finished typing.

    Using Firefox 4, my net emails are sometimes sent without my hitting the send key, before I am finished typing. I appear that they send when I hit the "enter" key for a new paragraph. I want to have them send only when I hit the "Send" key.

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • The "Enter" key keeps starting and stopping itunes songs...

    Hey, everytime I hit the enter key for example in Safari to enter a webpage, my itunes songs keep starting and stopping like I have the itunes window active... Does anyone know a solution for this? I tryed reinstalling and no luck...
    Thanks

    What are the system specs for your pc? It seems it's to slow to play iphone's 720p HD videos. QT 7.7.3 is the latest for windows but VLC Player will play these videos too.

  • SelectManyChoice-Hitting the "Enter" button when "ALL" is highlighted

    Hi,
    We have noticed the behavior that, while using the keyboard for navigation, highlighting the "ALL" option in the selectManyChoice component and hitting the "Enter" key, doesn't select anything.
    Whereas, highlighting any of the items in the list and hitting "Enter" selects that item.
    I have observed that hitting the "Space" key or Ctrl + "A" selects all the items. Is there any way to ensure that hitting "Enter" on "ALL" selects all the items in the list?
    Thanks, Sruthi

    Hi,
    what you describe is the default behavior for check boxes. To use "Enter" you would need to intercept the keyboard key, which is difficult as the checkbox is embedded in the component. So without testing I would say that no, there is no option for this
    Frank

  • Assigning the 'Enter' Key?

    Hello there,
    I've created a form using Flash and would like to make it so
    that the users of the form can simply hit the 'Enter' key and their
    data submitted; instead of having to click the 'Submit' button.
    Thanks in advance,
    Kristopher (UK).

    Look up the Key class in the Help - specifically Key >
    ENTER
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Since I updated my iPad 2 to OS 8, when I hit the home key, I get a "sign in to iCloud" message. When I enter my password, it doesn't take it but Settings shows I'm signed in to iCloud.....not sure why

    since I updated my iPad 2 to OS 8, when I hit the home key, I get the message "sign in to iCloud". I enter my password but it doesn't take it. When I go into settings, it sows iCloud is on. Nor'easters sure how to stop this

    Try signing out and signing back into iCloud. This worked for me.

  • HT201178 when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    Everywhere that I've checked it is not possible to do this. I would like to even do this using the vkb. I hate having to stretch my thumb all the way up just to send a message. It's messaging, not a report or email. Seems backwards. Hopefully some day Apple can add this option.

  • Create record by the enter key

    I have a form with 10 items. Looks like this
    P16_ID hidden
    P16_Created_on Date Picker
    P16_Order_No Text Field
    P16_Origin Display as Text(saves state)
    P16_Destination Display as Text(saves state)
    P16_Bill_To_Location Display as Text(save state)
    P16_Rate Text Field
    P16_Code Select List
    P16_Carrier Select List
    P16_Weight Text Field(always submits page when enter pressed)
    I want the people to be able to key in the information and after the weight hit enter and it submits the page. Then it allows you to key in your next loads then when you get to weight hit enter again and so on. I do not want to have to use the create button because that takes longer to key the information in when you have to take your hands off of the keyboard and click create. The problem I keep getting is a branching error and the always submit page when enter pressed don't seem to work. I have version 1.6. Please help

    I believe that APEX submits a page when the enter key is press by default. However, I noticed that when you have a hidden field present in the form you get the branching error message. .
    If you change your hidden fields to regular text fields, this will take care of the problem. Of course, this may not be the best on your form, showing your ID on a regular text field.
    I am not sure if APEX developers intended to have it like this or if this is a bug.
    I hope this helps.

  • Why doesn't the enter key respond when saving a web page?

    go to save a web page, complete and when i press the enter key it doesn't work. i have to move the mouse pointer to the save button and click it that way but it slower this way. why won't it let me just push the enter button on my keyboard to save?
    any way to fix this?

    The '''<u>S</u>ave''' button has focus in the Save As window for me, and hitting either Enter or S will work.
    But if I change the File <u>n</u>ame or select a different file Type I have to use the mouse to save it; the focus is away from the Save button.
    If it doesn't work that way for you, see how it works when using the '''Firefox SafeMode'''.
    https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode

Maybe you are looking for

  • To use Java Script in WebDynpro

    Hi, i am trying to do a webdynpro application where in, if i click on the button it should trigger the java script.how could i do that

  • Simple GUI script with a list

    Good day As my first Powershell project i'd like to write a script which will present to the user a GUI with a list of servers. The user then chooses a server and on click of the OK button connects to it with MSTSC. The window can look like this: Pro

  • How do i remove a document that is stuck in the Q?

    I cannot print on my 110 series printer because a document that I previosly set to print is stuck in the Q. How do I remove it from the Q?

  • Stay in Safe Boot AFTER RESTART to finish an update?

    It's often been recommended here to do an OS update while in Safe Boot. If you go this route wouldn't it make sense, since, as I understand it, *the installation is still finishing up after the restart*, to do the restart, when prompted, while remain

  • Xul drag and drop function doesn't work Firefox 17 ESR but works in Firefox 10 ESR

    I am having a problem with a xul drag and drop function designed for selenium rc and selenium IDE. It works in Firefox 10 ESR but does not work in Firefox 17 ESR. the code used for the draganddrop function is added below: Selenium.prototype.doXulDrag