Capturing ENTER key in WD4A

Hi all,
I m getting an input from the user in an Inputfield. I also have a table with two columns.
The textfield is used to perform wildcard search (filter) for the table. That is, if i give a character like 'A', then the records which start with the character 'A' must be shown in the table when i press teh ENTER key..
I have got this outptu when i click a button. But i want to get the same output, when i give 'A' and press ENTER key..
How to acheive the same in WD4A?
Regards,
Shanthi

hi Shanthi,
for the corresponding Enter key , make a action say act in the EventPropery of the element.
in the Onactionact,method in the Methods tab , write the same piece of code , which u r writting in the Button
u wud be able to do it nw
regards,
amit

Similar Messages

  • Capturing Enter Key Press

    Hi
      Is there a way where we can capture the Enter Key press of the Keyboard and call an event on the Enter Key Press??
    For fields such as input field there is onEnter field where an event can be called, but we have a requirement where in we need to call an event on click of enter key, irrespective of where the focus on the page is on.
    Any inpus on this will be helpful.
    Thanks & Regards,
    Gayathri Shanbhag

    Hi Gayathri,
    See if the following link helps:
    https://cw.sdn.sap.com/cw/docs/DOC-107045
    Regards,
    Himanshu

  • Capture ENTER key on numeric keypad

    I have several chemistry tutorials where users type something and then have it evaluated by pressing the ENTER key. This works fine for the ENTER key on the main part of the keyboard, but does not work for the ENTER key for the numeric keypad on keyboards with the two ENTER keys. How do I capture the ENTER key on the numeric keypad? In other words, how do I do the equivalent of the following for that key?  
    if the key = RETURN then
    Thanks

    Try checking:
    if _key.keyCode = 36 then ...

  • Capturing Enter key event from text box

    In my application, there are a number of text boxes. I want to create a feature where an enter key even is seen and specific function executed depending on which text box was in focus when the enter key was pressed. Currently I am able to capture an enter key event on the whole page. How do I do that specifically for a text box?
    This application is done in HTML, javascript and Adobe AIR.
    Thanks
    Binu
    www.verseview.info

    Hi
    That's true that Flex4.5 SDK under Flash builder Burito doesn't listen Enter key in Text Area for KeyUp or KeyDown event.
    Here I found a work around you can use.
    Add an eventlistener to the component in actionscript and set the useCapture=true next to eventlistener function. Now you can listen enter key for KeyUp or KeyDown Event
    Hope this helps
    Rush-me

  • Capture enter key press in h:inputtext

    hi,
    i have a h:inputText component in my jsf page. i need to capture the enter key pressed for this component. how can this be done.
    thanks in advance.

    You can use Javascript for this. In the onkeypress event, check if the keycode is 13 (the enter key) and handle accordingly.
    onkeypress="if (event.keyCode == 13) alert('Enter pressed!');"

  • Capture 'Enter' key event

    Hi,
    Is there any way we can capture the event when a user presses the enter key inside a text field?

    Hi andrewquay
    you can capture the enter key by adding the following code in the textfield's change event.
    if(xfa.event.change == "\u000a")
    xfa.host.messageBox("enter key is pressed");
    mail: [email protected]

  • Problem capturing "Enter Key" within 2 paragraph in JSP

    I create a textarea for customer to enter their data. Something the data contain 2 paragraph with Enter Key involve. Then, i store the data into my database. Once i re-display the data back to customer, the data never show in 2 paragraph ?
    who know.... pls pls help..... in JSP how am i going to do, so that the data disply in 2 paragraph.

    Are you displaying the data again in TextArea? If not then you need to take care of '\r\n'. Split the data for '\r\n' and display the data in two paragraphs.
    String wholeData="Your_Paragraph1\r\nYour_Paragraph2";
    StringTokenizer st = new StringTokenizer(wholeData,"\r\n");
    while(st.hasMoreTokens()) our.print(st.nextToken()+"<br>");Hope this helps.
    Sudha

  • Capturing Enter key in ALV

    Hi Experts,
    Am using an editable alv. I want to perform some actions when Enter key is pressed.
    I did this in DOMODIFY. But this makes the scroll bar in initial position. Kindly help me on this.
    Regards,
    Vijayakumar.

    Hi vijayakumar,
    You can refer this link for info about ENTER key event trigger. Could you please post what you want to perform when Enter key is pressed.
    Link: [http://wiki.sdn.sap.com/wiki/display/ABAP/InteractiveEditableOOALVgridwithdynamicitab,FCATandENTERkeyeventtrigger]
    Regards,
    Anand G

  • Capturing the enter key

    I want to take some action when the enter key is pressed in a textbox. I suppose I need to identify the enter key when it is pressed and then call some other method. please advise.

    actually, u should use the KeyLIstener
    The keycode (you will need this later) is VK_ENTERIf its a TextField, the reply re : ActionListener was correct.

  • Flex 4 does not dispatch keyboard events for ENTER key.

    Hello everyone. I think I have a strange problem with Flex 4 Beta (4.0.0.8909). My application has had event listener for keyUp event for a month now and suddenly (two days ago) I've noticed that keyUp event is not dispatched for ENTER (ALT also) key. Anyone know why? By the way, I've tried this with keyDown event, also 4.0.0.8847 version of SDK - still the same: no keyboard events for ENTER (and ALT) key.
    Here is the sample application that has got this issue:
    <s:Application
       xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/halo"
       minWidth="640" minHeight="480"
       keyUp="application1_keyUpHandler (event)">
       <fx:Script>
          <![CDATA[
             import mx.controls.Alert;
             protected function application1_keyUpHandler (event: KeyboardEvent):void
                Alert.show ("Key up: " + event.keyCode);
          ]]>
       </fx:Script>
       <s:layout>
          <s:BasicLayout/>
       </s:layout>
       <s:TextArea verticalCenter="0" horizontalCenter="0" width="200"/>
    </s:Application>
    If you run this application and try typing anything in a TextArea you will get alerts with key codes. However, if you press ENTER (or ALT), you will get no alert.
    I'm pretty sure the code above is right so that means there is a bug in latest nightly builds of SDK (i would swhitch to an older build if i knew which one does not have this bug).
    Any ideas?

    Flex harUI wrote:
    That's true, but in this case, I think the text editing code is eating ENTER key in order to prevent parents from seeing it and acting on it (like a submit button).  We'll see if we can find a way around that.
    You can get the ENTER key now by listening in capture phase.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui
    The enter key isn't being disposed of by textedit, the attached example code works without error if you a- remove the alert box and b-set the focus to your text area on initialisation. I agree that pressing the enter key then calling a dialog box will result in the enter key being "gobbled up" as  the enter key is overridden by the dialog box code.
    I think the first suggestion should be to anyone don't use dialogboxes for testing code. If for some reason debugging isn't desirable instead of a trace statement a simple label  can be used as a 'fake' trace.
    David
    Message was edited by: David_F57: I worded this wrong, imho there is no need for a work around, the textarea component works as it should. When intercepting 'system' keycodes there is a need to consider the effect of the intercept and code appropriately to that end.

  • Enter Key Event in Editable ALV Grid

    Hi all,
    I am trying to create and editable ALV grid using the REUSE ALV FM.
    On the grid after changing a value, if I press enter key the pai is not triggered. I have tried the various example programs (BCALV*) but could not find anything relevant.
    Basically I need similar functionality to normal module pool programming as in validations on screen done when enter key is pressed after screen entry.
    Is it possible to capture the Enter keypress on the ALV grid?

    Hello Preet
    I can only tell you how I would solve this using the ALV grid control (CL_GUI_ALV_GRID) because I have abandoned using ALV function modules.
    The problem with running through PAI is whether the focus (i.e. the cursor) is still on the control or already on the (surrounding) main program. If the control has the focus, you do not run through PAI.
    I would add a "Refresh" button to the toolbar of the ALV list. Normally, this button is already there or you only have to make it visible.
    When the user pushes this button you catch the corresponding user-command and call the CHECK_DATA_CHANGED method to see if values have been changed on the editable grid. If so, the previous method will fire event DATA_CHANGED.
    Now, in the event handler method (e.g. HANDLE_DATA_CHANGED) you receive as input a data change object (CL_ALV_CHANGED_DATA_PROTOCOL). This object contains all changed values. These values you will need to make your checks.
    I assume that the logic will be similar using ALV function modules.
    Regards
       Uwe

  • Handling 'enter key' event in alv using classes

    Hello all,
        i have a scenario where i have a grid from which i have to select a row and press 'enter' key, then the row would be added to grid on top of it. we have developed this grids using control and classes.
        please any one tell me how would i get the enter key code.
    Thanks,
    krishnam raju N

    HI Raju
    just go through these
    check the sample program.
    <b>BALV_POPUP_TO_SELECT
    ENTER is nothing but selecting the record.
    </b>
    Re: ALV  'ENTER' key
    and go through this code
    constants :
    C_PF_STATUS TYPE SLIS_FORMNAME VALUE 'F_SET_PF_STATUS'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = V_REPID
    I_CALLBACK_PF_STATUS_SET = C_PF_STATUS
    I_CALLBACK_USER_COMMAND = P_USER_COMMAND IS_LAYOUT = WA_LAYOUT
    IT_FIELDCAT = IT_FIELDCAT[]
    IT_EXCLUDING = IT_EXTAB[]
    IT_SORT = IT_SORT[]
    TABLES
    T_OUTTAB = P_ZBCAR50
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2.
    *& Form F_SET_PF_STATUS
    Set PF_STATUS STANDARD modifying the standard toolbar
    by excluding some buttons
    -->P_IT_EXTAB -- TABLE OF EXCLUDING FUNCTIONS
    FORM F_SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
    CLEAR : WA_EXTAB,
    IT_EXTAB.
    *--Set the Modified PF status for the ALV.
    SET PF-STATUS 'STATUS_01' EXCLUDING RT_EXTAB.
    ENDFORM. " SET_PF_STATUS
    3.
    *& Form f_user_command
    Handle user action on ALV toolbar
    FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
    DATA : L_ANSWER TYPE C.
    RS_SELFIELD-REFRESH = C_X.
    IF R_UCOMM = 'ENTR'.
    Do your processing here.
    ENDIF
    and go through these links
    <b>how to identify pressing ENTER on ALV
    How to capture the event in ALV grid display?
    Re: ALV-Grid: No reaction to Enter-Button
    </b>
    IF IT HELPS REWARD WITH POINTS
    Regards Rk
    Message was edited by:
            Rk Pasupuleti

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

  • Capturing enter button in JSF

    Hi ,
    I am using JSF with tomahawk in my application.
    I have a form with one textfield and one submit button.
    I am using tomahawk and javascript to populate a hidden textfield.
    My problem is that when the user types in something int eh textfield and presses the "enter" key instead of the submit button, the form doesn't get submitted and is not populating the hidden field.
    Because of this when we later hit the submit button, it still has a problem.
    What is the work around for this?
    Is there away to capture the enter key and submit the form or is there a better way to do this?

    Define your form with a on key press event:
    <h:form id="yourForm" onkeypress="if (event.keyCode == 13) {javascript:submitForm(); return false;}; return true;">The javascript function is:
    function submitForm(){
         if (event.keyCode == 13){
              document.getElementById('yourForm:submitButtonId').click();
              return false;
         return true;
    }submitButtonId is the id of the button that needs to be triggered when you press enter key. Hope this should solve your problem.
    SirG

  • Blue "Change" button does not respond to enter key (OS X)

    After entering a new Time in the "Edit Capture Time" screen you select change and the new time is applied. This could be done by selecting the "change" button with the mouse or by hitting the return key or the enter key (since "change" is the blue highlighted button). But in Lightroom 3 and now in Lightroom 4B the enter key doesn't work. Can you please fix this bug. Thanks!

    Just to be sure, I updated the program as follows. Click on the mouse to request focus and then hit enter key.
    Click on the mouse prints the String "enter key pressed". Then press the Enter key..no action activated.
    var button : SwingButton;
    Stage {
    title: "MyApp"
    visible: true
    scene: Scene {
    width: 100
    height: 100
    content: [
    button = SwingButton {
    text: "Button"
    action: function() {
    println("enter key pressed");
    button.requestFocus();
    onKeyPressed : function(event : KeyEvent):Void
    println("enter key pressed");
    }

Maybe you are looking for

  • Install windows 8 on an existing arch installation

    Hi Friends, I don't know if this is the correct place to ask but after many hours of googling, I am asking this question. I had two operating systems installed on my computer which I dual booted with grub: Windows 7 and Arch linux (Archlinux is still

  • URGENT : Program to convert flat file to XML file.

    Hello,        Good Morning. I want an urgent program to convert a flat file seperated by '/' to an XML file format and store that in the the application server. If any one has done such a developement, could you please send me the code. The flat file

  • Output XML with a default namespace using XQuery

    I'm having a problem with namespaces in an XQuery within ALSB. We receive XML from a file which doesn't have any namespace and have to transform it into a different structure, giving it a default namespace such as below: Input XML <inputRoot>      <i

  • ICloud is more limiting than what I was able to do on iDisk

    iCloud is more limiting than what I was able to do on iDisk (part of MobileMe)?  Why would Apple take these services away?  Apple PLEASE bring them back.  Specifically Support for non-iWork Files Web browser access and control of all files not just i

  • Propagation Ant task - OfflineCombine

    Hi, I am using the propagation ant task (OfflineCombine) to combine to combine two imported inventories. When running the task I get two errors: [offlineCombine] ERROR: Could not load adapter configuration file wsrp_adapter.properties. [offlineCombin