'ENTER' key for Submit Button

Hi,
I have 1 inputfield , 1 dropdown and 1 submit button in a page. I want to execute submit button always when you click 'ENTER'.
Now when i click enter from inputField it process something and in background there is no event triggered.But from dropdownbox nothing happens when i click 'ENTER' key.
Is there any way to assigne 'ENTER' key to the submit button(<htmlb:button) always?
Thanks in advance
AP

Hi,
  It looks like SubmitOnEnter is not available in my verions of htmlb. I just looked into some javacode,
I have 2 page, Initial and Report,
Initial page has the code,
<script>
document.onkeydown=function(){
if(event.keyCode==13){document.forms.initial.submit()}}
</script>
    <htmlb:form id     = "initial"
                method = "post"
                action = "Report.htm" >\
      <htmlb:inputField id            = "TranNumber"
                        type          = "string"
                        value         = "<%= INIT-TranNumber %>" />
      <htmlb:button id      = "SUBMITVALUES"
                    text    = "EXECUTE"
                    onClick = "HandleSubmit" />
</htmlb:form>
Report page captures it as,
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
  DATA: EVENT TYPE REF TO CL_HTMLB_EVENT.
  EVENT = CL_HTMLB_MANAGER=>GET_EVENT( runtime->server->request ).
  IF EVENT IS NOT INITIAL.
    CASE EVENT->ID.
      WHEN 'SUBMITVALUES'.
        DATA: TranNumber TYPE REF TO CL_HTMLB_INPUTFIELD.
         TranNumber ?= CL_HTMLB_MANAGER=>GET_DATA(
                      request = runtime->server->request
                      name    = 'inputField'
                      id      = 'TranNumber').
    ENDCASE.
  ENDIF.
ENDIF.
Basically the no event is not fired. so it is not coming into the Case.
How to handle this?
Thank you
AP

Similar Messages

  • Using Enter key to submit a form, Attn: Didier

    Hi,
    I have an ADF form on my page and want to use Enter key to submit the form. I submit the form using a CommandLink which has a method bound to it as its action in a managed bean. I have set submitCL as the Id of this CommandLink and has set this in my form:
    <af:form defaultCommand="submitCL">
    but the Enter does not work. I'm using IE 7.0 and JDeveloper 10.1.3.2.
    Thanks in advance,
    S/\EE|)

    Hi Saeed,
    not sure if this is related or not, but I would test it with another browser as IE is not supported. See http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.3/install.html#browsers
    Also, when the command button is in the header facet of a table or treeTable, the value of defaultCommand must also contain the table or treeTable ID.
    For example: <af:form defaultCommand="theTreeTableId:submitCL" ...>Regards,
    Didier.

  • Associate "Enter" key with a button

    Hello,
    We have forms which a user fills in and then hits a button to get the result in report.
    I know that on text items you can set "Submit when enter pressed ", but forms contain date pickers, select lists etc.
    So, I was wondering if there is anyway I can associate "Enter" key with a button request.
    Thanks in advance for all replies

    Hi,
    If you add below to page JavaScript your page is submitted when you hit enter
    apex.jQuery(document).keydown(function(evt){
    if($f_Enter(evt)){
      doSubmit("BUTTON_REQUEST");
      return false;
    return true;
    });Change BUTTON_REQUEST accordingly
    Regards,
    Jari

  • Accelerator keys for push buttons

    Hi,
    Does anyone know how can I define accelerator keys for push buttons. with ALT+underlined char. can I directly execute the button? If yes, how can we do that?
    Regards,
    Panneer

    Hi,
    As I know, GUI XT could be used to change the screen style. The pushbutton command could be used to add pushbutton.
    But after checking the material, I found it could only use SAP predefined accelerator keys which is in the PF-STATUS.
    FYI:
    Pushbutton
    Purpose With Pushbutton you can create your own pushbuttons within an R/3 screen or within the toolbar. You can make both the menu functions and the navigation to other transactions directly accessible with your own pushbuttons.
    Example
    Pushbutton (10,50) "Split Screen Editor" "SCMP"
    You create a pushbutton at row 10, column 50 with text Split Screen Editor. Clicking on the button invokes the internal code SCMP which then starts the Split Screen Editor.
    Internal codes How do I find the internal codes?
    Choose the desired function in the transaction menu and press F1 while the mouse cursor points to this function. Now the R/3 system displays the internal function code in a pop-up window
    Format Pushbutton (row,column) "Pushbutton text" "FCode" Process="..." 
    Adds a pushbutton on position (row,column). The pushbutton invokes the internal code FCode. This can be a code from the menu, e.g. SCMP, or a transaction code like /NFB01 or /OMM02.
    Process="..."  relates to the InputScript file. You can omit the "fcode" parameter if only "Enter" is needed in order to continue with the transaction.
    Pushbutton (Toolbar) "Pushbutton text" "FCode"
    Adds a pushbutton in the application toolbar. A free function key is assigned automatically and displayed in the quickinfo.
    *Pushbutton (Toolbar) "Pushbutton text" "FCode" "Fkey"*
    *Optionally you can specify a function key of your choice as an additional parameter Fkey using the format F1,..F12, ShiftF1,...,ShiftF12, CtrlF1,...,CtrlF12, ShiftCtrlF1,...,ShiftCtrlF12. If this function key is already in use the system chooses the next available number.*
    *example: Shift+F5  ->  F17, F3 -> F3* 
    Cheers

  • Is There a List of Keyboard Shortcuts for Adobe Digital Editions, I Found Two By Accident the "Arrow" Keys and the "Enter Key" for Turning Pages in an eBook...

    Hi  ??  :       Does Anyone Know If There is a List of Keyboard Shortcuts for Adobe Digital Editions, I Found/Discovered Two By Accident the “Arrow” Keys and the “Enter Key” for Turning Pages in an eBook...   Thanks
    I Did Look for this Keyboard Shortcuts in Adobe Digital Editions Help & FAQ Areas and Got the Run Around, Very Hard to Find How Use Adobe Products !!
    Microsoft Windows Vista & Win 7 Operating Systems
    Message was edited by: Al Adams

    Nope, I doubt it.  As I said:
    I disabled Aero theme, checked font scaling was 100% and rebooted Windows in between all of the steps to no avail.
    I've been reading a lot around this and it seems the arrow key problem is a red herring; I think it's just some kind of terminal preferences corruption.

  • Making Page look same in All Pixels & Writing code for Submit Button.

    Hello All,
    How to make the page look the same in all computers even though the pixels are different?
    Please help me in this regard.
    More Over if I want write the code for Submit button where the code should be written.
    Whether the code is different from normal ABAP coding?
    Warm Regards,
    SampathKumar G.

    Hi Sampath,
    You can trigger mandatory field checks in WDA as in R/3. For this you need to make the "state" property of your input field to "required".
    In addition to this you need to call the static method check_mandatory_attr_on_view of class cl_wd_dynamic_tool. This would then automatically verify if all the mandatory fields have been filled or not. It would then populate the error messages into an internal table and display them in the view. Also the mandatory fields which haven't been filled would be highlighted with a red border. You need to put the below coding into the action up on which you want to trigger the data chesks.
    data: lt_msg TYPE cl_wd_dynamic_tool=>t_check_result_message_tab,
              lo_view_controller TYPE REF TO if_wd_view_controller,
              lo_message_manager type ref to if_wd_message_manager.
      lo_view_controller ?= wd_this->wd_get_api( ).
      lo_message_manager = lo_view_controller->get_message_manager( ).
      cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
        EXPORTING
          view_controller = lo_view_controller
          display_messages = abap_true
        IMPORTING
          messages = lt_msg ).
    Regards,
    Uday

  • LifeCycle 8 Database update script for submit button

    I have a form that has numerous text fields for user inputs. I put a button on the form. This form is also populated with a SQL query when opened.
    When the user clicks the submit button, I need to capture the info entered in these fields, get one of the field value from the query when opened, and update a database record.
    How is that script done? Any sample scripts?
    Thanks in advance.

    I have a form that has numerous text fields for user inputs. I put a button on the form. This form is also populated with a SQL query when opened.
    When the user clicks the submit button, I need to capture the info entered in these fields, get one of the field value from the query when opened, and update a database record.
    How is that script done? Any sample scripts?
    Thanks in advance.

  • Adobe Acrobat X Pro - Javascript for submit button

    Hi,
    I am new to Adobe Acrobat X Pro and I have just designed a fillable form and enabled user rights for reader, for them to send the form back as a PDF. I created the form with a submit button and have mailto:[email protected] but I want to know if it is possible to create a button that will run a javascript to bring up a persons Mircosoft Outlook contacts, so they can choose who they want to send the completed form too.
    Any help would be greatly appreciated.
    Thanks.

    See post #7 and #10 in the following topic: http://forums.adobe.com/thread/793083?tstart=0

  • Where can i buy an enter key for a macbook pro 13" mid 2010?

    I accidentally messed up my enter key, and i believe i just broke the little thing that holds the metal bar or something...
    i was wondering where could i buy a replacement for it.
    thanks in advance

    Replacement keycaps can be found at replacementlaptopkeys.com.
    There is a YouTube instructional video on how to replace the keycap here:
    http://www.youtube.com/watch?v=JjRTQIfVTgU

  • How to text for Submit button in different languages.

    Hi All
    We have a requirement to add 'Submit Button' in iSupplier Portal's Standard Pages.
    We have substituted the controller to add the Submit button and it works fine also .
    Our Application has 7 different languages, so the requirement is to show the button Text w.r.t the
    language only .
    We have written the following code
    OASubmitButtonBean oasb= (OASubmitButtonBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,"BUTTON_SUBMIT");
    oasb.setID("IPOPrintReportButton");
    oasb.setUINodeName("IPOPrintReportButton");
    oasb.setEvent("IPOPrintReportButton");
    oasb.setText("IPO Print Report Button");
    //oasb.setTranslatableText("XXIPO","XXIPO_PRINT_REPORT_TXT");
    pageButtonBarBean2.addIndexedChild(oasb);
    when we have used setText method , we are getting the same name in every language. so we tried using setTranslatableText Method and gave it the Messages to set the Button Text. But Now button text is empty .
    Pls tell us how to achieve this requirement of having text in different languages on the button ..w.r.t the environment language. we have also defined same Message 'XXIPO_PRINT_REPORT_TXT' for other languages.
    naveen

    Hi Kumar
    Can u pls brief this a little more .
    Lets say I get the language as German in the Controller . Now how do i set the test for the submit button .
    Do u mean to say I should check like this:
    If (langaue is german )
    button.setText("German Submit")
    else if (langauge is netherland)
    button.setText("Netherland Submit")
    harcoding the vaues in the contorller??

  • Edit email for submit button and Javascript?

    How can I change an email address attached to a submit  button on a previously created form? 2) How can I see if JavaScript is being used with form? A prior team member created interactive forms with a submit button. Email address attached to button needs to be updated. I tried to edit in Acrobat Pro by double  clicking the button to access the properties panel, but it doesn't open. If I recreate the form to amend the address, my file size is about 1/3 of the original which leads me to believe there is JavaScript.

    Thank you. My version of Adobe Acrobat Pro X  Tools- Forms edits in
    LiveCycle Designer after the form has been created and saved.. There is no
    other edit option as shown in the screen print below. The action wizard in
    Pro doesn't seem to apply in this case. I had tried right clicking the
    button in both Pro and LiveCycle previously to no avail. However, when the
    form opens in LiveCycle, I just figured out that there is an object window
    that allowed me to modify the email address.
    However, I don't understand the file size difference or even how to find
    the JS. We both used the same original word docx. His file size is 47K and
    my recreated file is 19K, a big difference. I didn't compress mine. Any
    thoughts on what is causing the difference? The forms are on a client's
    website for external users to complete so load time is still important.
    Thanks,Vickie
    On Fri, May 23, 2014 at 4:24 AM, Gilad D (try67)

  • Delete Record Behavior doesn't wait for Submit button

    I have master / detail page set.  From the detail set there are links to delete or update a record.  When I click the link to delete the record, it goes to the   confirmation page with the correct record.  Now, when I add the delete record server behavior and a submit button, this is what happens.  As soon as I click the link to go to the delete confirm page, the record deletes and the page redirects to the page I put in the server behavior.  It doesn't show the confirm page and doesn't wait for me to hit the confirm button.  The page runs and successfully deletes the page from the DB.
    How do I get it to wait until I hit the submit button?

    You need to surround your delete query with an "If" statement that checks for a confirmation variable of some sort, then when the user clicks the confirmation link you can pass the necessary variable and the ID of the record the delete query is expecting.
    As an alternative you could use a JS alert fuction to ask the user if they are sure they want to delete the record and then allwo the delet to run after confirmation. To do this you could use code like this...
    <input type="submit" name="DELETE" value="DELETE"
       onclick="return confirm('Are you SURE you want to DELETE this record?')">
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • Two actions for submit button

    Hi
    I'm new to modifying pdfs so please excuse me.  I have a form with a submit button and the action associated is
    I want to add this script:
    but the form will only do 1 action in the event node.  So how can I make it show the message box and then do the submit? please note that the forum removed the script tags

    Hello,
    You can link your button actionListener to a manageBean method and into this method, call your to ExecuteWithParams binding operation like
    public void actionListener(ActionEvent actionEvent) {
         BindingContext bindingContext = BindingContext.getCurrent();
         BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
         OperationBinding opBinding1 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams1");
         opBinding1.execute();
         OperationBinding opBinding2 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams2");
         opBinding2.execute();
    }This also can be included into a valueChangeListener binded to an input component for example
    public void changeListener(ValueChangeEvent valueChangeEvent) {
         BindingContext bindingContext = BindingContext.getCurrent();
         BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
         OperationBinding opBinding1 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams1");
         opBinding1.execute();
         OperationBinding opBinding2 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams2");
         opBinding2.execute();
    }Jack

  • Function keys for Push buttons

    Hi All,
    I have one query in module-pool program,I need to assign Function keys to Push buttons in my programe,like for create(F7),dispaly(F6) and also I need to overwrite few standard function keys,
    any one please guide me.
    Thanks n regds,
    Sree.

    Hi,
    you want in more detail.....ok
    (1)u've created a screen -
    > added push buttons etc. -
    > given name to screen elements i.e pushbuttons etc.and also declared them in program
    (2) create its GUI status ,say STATUS_100---->here you have to assign Function codes ->like if in standard toolbar you want BACK,EXIT,CANC or whatever you want,for ex. for BACK u'll find its icon -> double click on it>give the Func code say F3,now u also wnt to enable Func Key F3 for this--> go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys-> so to F3 give the same func code as u gave to BACK icon button.
    similar approach u can use for pussbuttons:
    double click on push button> in screen painter attributes-> give the Func code to it ,say for CREATE button u give Func code NEW->come back to GUI status->similarly  go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys---> so to F7 give the same func code (NEW)  as u gave to CREATE push button.
    (3) In PBO of this screen create a module to set its PF status:
    In screen flow logic:
    PROCESS BEFORE OUTPUT.
    * To set pf-status and title
      MODULE status_0100.
    In Program:
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_100'.
      SET TITLEBAR 'TITLE_100'.
    ENDMODULE.
    Hope this much detail is quite clear!!!
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 5, 2009 10:35 AM

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

Maybe you are looking for

  • Battery and Icon Issues

    My battery is not holding a charge and shuts down when unplugged from the charger. In addition the icon at the top of the screen shows an X in the battery icon. When placed on percent or time remaining it still only will show the X. The computer is l

  • Oracle Linux 6 u3 Installation via FTP

    There is a need to install OS (Oracle Linux 6.3) via FTP. The installation process started fine, but after I'd finished with partitions layout and hit "next" on the window displaying "boot loader operating system list", error appeared. the error: "Un

  • Can't understand how autocommit works

    Hey, I can't get TopLink working the way I want. I use TopLink as JPA provider in GlassFish. I have a stateless session bean that manages persistence by itself (Bean Managed Persistence). One of the bean's methods does the following thing: UserTransa

  • Trouble uploading Photoshop elements to a new computer

    I am having trouble uploading Photoshop Elements 12 to a new computer.  I have the disk for Photoshop Elements 2, so I uploaded it to the new computer.  I transferred the Photoshop Elements 12 executable file to my new computer When I tried to execut

  • Fixing Gnome 3.8 Classic Mode

    I've abandoned the no longer supported Fallback mode as very few things are still working. I'm trying to get Classic mode to work the way I want it but have found that it is not conducive to customization. After many searches I still can't find answe