How do I perform an action on return key press in an inputListOfValues?

I know about the autoSubmit attribute, but I do not want to perform an action on a tab character or when exiting focus. Instead, I want to perform the same action as pressing a button when the user presses the return key in the input field. For example, an inputListOfValues for a search input, and a search button. When the user presses the return key, I would like the search to be performed. I'm sure that this can be done, I'm just not sure how. Thanks for any info.

I did something similar, on an input box, not on an inputListOfValues, but I assume it should work the same way more or less. I got it from
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_event.htm#DAFBJGAH
I used it for my login page so the user doesn't have to click on Login, just press enter after entering the password. I just had to map the corresponding method binding.
BTW, the link above doesn't tell you have to add the javascript to the page. What I did was add an af:resource element inside of af:document.
Hope this helps.

Similar Messages

  • How to handle form close event or escape key press event for user defined f

    Experts,
    Please let me know how to handle form close event or escape key press event for user defined form...
    Thanks & Regards,
    Pravin.

    Hi
    You can catch the form close event like this
    If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
          Try
                   SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
          Catch ex As Exception
                    SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
          End If
    Hope this helps
    Regards
    Arun

  • Perform Client Action (SCCM) returns "Failed to refresh Client"

    Hey folks,
    I am using the System Center Orchestrator since a few days. I have the following Idea: Start virtual machines in SCVMM which are offline and to perform a client action (via SCCM) to roll out the new updates our company released.
    For the beginning I test it with one virtual machine. The machine starts and after a delay of 80 seconds the process "Perform Client Action" also does. However I get a few error variants. For the first time I get the error, that the access is denied.
    So I changed the connection options to the following:
    - Authentication Level: PacketIntegrity
    - Impersonation Level: Impersonate
    - Enable Privileges: False
    - Locale: MS_407 (Germany)
    - Timeout (Seconds): 20
    - Username: ourdomain\the_admin_domain_ user_on_the_client
    - Password: mypass
    After this change I don´t get the error about the access, but another one, which says "Failed to refresh client". So I tried different variants, changed the Authentication Level, Impersonation Level etc. and disable the firewall on the client,
    but I only got one of the explained errors..
    Can anybody give me a hint to resolve this error? Which reasons could the error "Failed to refresh client" have?
    Many thanks for your help,
    Simon

    Hi,
    have you already looked at
    http://technet.microsoft.com/en-us/library/hh967538.aspx
    "This activity connects to the client computer using a remote WMI connection and does not connect to the Configuration Manager Site server. Specific firewall settings are a prerequisite for this activity to function correctly. For more information about
    remote WMI see Connecting to WMI on a Remote Computer in the Microsoft MSDN Library (http://go.microsoft.com/fwlink/?linkID=184817).
    Connecting remotely using WMI also requires appropriate credentials. If the account used for the Orchestrator Management Service does not have rights to access WMI on the target computer you will need to specify an account that does by using the optional
    properties on the Connection tab. For more information about WMI security and connection settings, see
    Securing a Remote WMI Connection in the Microsoft MSDN Library (http://go.microsoft.com/fwlink/?linkID=144681). "
    I think you need to check the account for the Runbook Service.
    Regards,
    Stefan
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • How do you clear the buffer of excess key presses, in Java?

    Right now, in the game I am working on, if the user presses a key multiple times the actions will be performed as many times as it registers, even though I disallow key presses during the time that the action is taking place.
    For example, a move of 1 space can be carried out with a key press. While the character is moving, key presses are not allowed. However, if you just press the key 5 or 25 times, the character will just keep moving, once he's done with the first one.
    What I need to do is clear the buffer of key presses after an action has taken place, so that the excess keys are not registered. I know the commands to do so in C++, but not in Java.

    Well, I think you've got what I was saying backwards, or I'm not understanding what you are asking correctly.
    it is suppposed to return if isMoving is true, not false. If isMoving is true, it means that the moving animation, and actions are taking place, Which is a process that take about a second, for the player to move one space.
    Here's the code where I process the keypresses
    private void processKey(KeyEvent e) {
        if (isMoving) {return;}
        int keyCode = e.getKeyCode();
        if (!isPaused && !gameOver) {
            isMoving = true;
          if (keyCode == KeyEvent.VK_UP) {
            player.move(player.NE);
          else if (keyCode == KeyEvent.VK_DOWN) {
            player.move(player.SW);
          else if (keyCode == KeyEvent.VK_LEFT) {
            player.move(player.NW);
          else if (keyCode == KeyEvent.VK_RIGHT) {
            player.move(player.SE);
            isMoving = false;
    }And in case I need to clear up what I want to happen, and the results I'm seeing. The player, in this case, moves one space in a direction, with a single press of an arrow key. That functionality is working fine, as intended. However, I don't want you to press the key twice quickly and move two spaces. I don't want you to hold down an arrow key and move continually.
    That part of the functionality is what is not working.
    As I understand my code, pressing the key once should set isMoving to true and, therefore further presses shouldn't register until isMoving is false again, which shouldn't happen until the player moves have finished.
    But, the way that it is working now is that if I press the key 2, 3 or 20 times, as soon as one move is finished another begins. Are the key presses just sitting in the buffer somewhere waiting for isMoving to become false again? And if so, is there a function I can call to clear that buffer after a move is finished?

  • To trigger event or action on "TAB" key press on web dynpro view

    Hi, I need to trigger event on "TAB" key press on web dynpro view , is it possible?How?

    Hi Dipak
    What Madhu said is correct. Tab key is pre-configured to move cursor from 1 field to next field. we can not create an event on tab key press.
    Regards
    Gaurav

  • How do I perform an action on a document in a library, before my Event Receiver is fired?

    My scenario:
    Currently when a document is uploaded into a document library, it gets its metadata from the document. But then there is a need to change the title property to satisfy a naming convention which basically concatenates a combination of the information in
    other columns in the document library...right now, there is already a SP designer workflow that is doing this and updating the title field (this was done previously by someone else). Now I want to add an event receiver to the library which will change
    the "name" property of the document. The name will be changed to match the title field (I think I already know how to do this part).
    Here is my problem...if I create an Event Receiver (ItemAdded), my code will not work cause the workflow needs to fire and complete its task before my code can grab the value from the title and copy it into the name. So my question is this....is there
    a way in SP that i can maybe write custom code to address the entire scenario? If so, how do I do this? I read somewhere that I cannot or should not combine a workflow and an Event Receiver...I really appreciate it if I can be pointed in the right direction.

    I think you can use ItemAdding event to update your fields. This works better for you instead of ItemAdded event.
    Bala

  • How do I perform an action just before someone saves a data block?

    Hi,
    I need a trigger to attach to a datablock to perform some processing before the record is saved. I can't find anything suitable - I can see WHEN-VALIDATE-RECORD but this can run without you saving can't it? The code must only be executed when the user saves.
    Can anyone help?
    (Forms 6i)
    Thanks Adam

    Whatever you do, DO NOT use a KEY-COMMIT trigger !
    There are many ways a commit can be performed without firing that trigger.
    There is also POST-FORMS-COMMIT, which despite its name, fires before commit, ie if form_trigger failure is raised in it, then the commit does not happen.

  • How to use's mail's "perform mail action with message"

    I can't for the life of me figure out how to use "perform mail action with message", I basically want to create a script that get's used on a rule from Mail, but nothing I try will work.
    This is what I started with...
    tell application "Mail"
    perform mail action with message msgs for rule theRule
    end
    end
    This doesn't compile i've seen an example of it being used like this...
    using terms from application "Mail"
    perform mail action with message msgs for rule theRule
    end perform
    end using
    this also doesn't compile, so I'm not sure what it's wanting

    This is one of those annoying things about programming - you have to arrange and spell things exactly right (this gets worse if you have fat fingers). You can look at the dictionary for Mail to see the specifics - in your example you are missing an "s" at the end of the word "message":
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">tell application "Mail"
    perform mail action with messages msgs for rule theRule
    end tell
    </pre>

  • How to "Performing an Action on Multiple Selected Records" using Struts-JSP

    Hi all:
    How to do "Performing an Action on Multiple Selected Records" through using Struts/JSP solution that is original MVC/UIX customizing example by Jheadstart.
    I know how to reason by analogy through tutorial guide on
    Model and Control layer of MVC , but for View layer that is torment to me !
    have any idea ?
    thanks a lot .

    Ting Rung,
    In the table in the JSP page you add a checkbox like this:
    <td class="fixed">
    <input type="checkbox" name="multiselect" value="<%=index%>"/>
    </td>
    This will render a checkbox in each row, with index number of that row as value.
    When you submit the page the request contains the multiselect parameter when at least one row has the checkbox checked.
    You can get the value of the multiselect parameter by calling sessionData.getRequestParameterValues("multiselect") in your action. The value is a string array containing the index numbers of the rows that have the checkboc checked.
    Steven Davelaar,
    JHeadstart Team.

  • In sqlserver 2005 there short cut ctrl+N, how can i perform same thing in sqlserver 2008 r2

    In sqlserver 2005 there was short cut ctrl+N, how can i perform same action in sqlserver 2008 r2

    In sqlserver 2005 there short cut ctrl+N, how can i perform same action in sqlserver 2008 r2
    ctrl+N still available in SQL Server 2008 R2, please refer below article for list of shortcut keys.
    http://technet.microsoft.com/en-us/library/ms174205.aspx
    Also refer below article for how to customize shortcut keys.
    http://technet.microsoft.com/en-us/library/ms174178(v=sql.105).aspx
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    Praveen Dsa | MCITP - Database Administrator 2008 |
    My Blog | My Page

  • I have been having an problem recently where my shift key will sometimes type capital Y for o apparent reason, and also my return key will enter a backslash. how can I correct this? it happened to me once before. I had to reinstall clean

    Recently my shift key has been for some unknown reason ben typing capital "y" when I use it, and YYI  don't know how to stop it. Also my return key has been adding a backslash after the return, and I am unsure how to remove that as well, I had this problem aout 6 months ago, and I had to wipe the drive and do a clean install before it fixed. I would not want to do that again, if at all possible.

    Have You found a fix for this(question mark)

  • How to create an EventListener for a specific keyboard press?

    Hello,
    I have been trying to figure out how to switch my actionscript3 from a mouse click to a keyboard press. I'm new to Flash, but the problem I keep coming to is that I need to have 3 separate keys programmed in to do three seperate outcomes. I have messed around with eventListeners for keyboard presses, but I cannot figure out how to have flash listen for a specific key press and then do an action based on that specific key press.
    Here is my actionscript. Any suggestions on how I can modify the mouse clicks to be keyboard presses, where key 's' = btn1 and triggers gotoAndPlay(2), 'g' = btn2 and triggers gotoAndPlay(3), 'k' = btn3 and triggers gotoAndPlay(4) as outline below. I also need my timer and writing to an exteral file to remain the same.
    stop();
    var startTime:Number=getTimer();
    var elapsedTime:Number;
    stream.writeUTFBytes("Item1,");
    function BTN1Action(eventObject:MouseEvent) {
         elapsedTime = getTimer() - startTime;
              stream.writeUTFBytes("Tar1,");
              stream.writeUTFBytes(elapsedTime.toString());
              stream.writeUTFBytes("\n");
              gotoAndPlay(2);
    function BTN2Action(eventObject:MouseEvent) {
              elapsedTime = getTimer() - startTime;
              stream.writeUTFBytes("Tar2,");
              stream.writeUTFBytes(elapsedTime.toString());
              stream.writeUTFBytes("\n");
              gotoAndPlay(3);
    function BTN3Action(eventObject:MouseEvent) {
              elapsedTime = getTimer() - startTime;
              stream.writeUTFBytes("Tar3,");
              stream.writeUTFBytes(elapsedTime.toString());
              stream.writeUTFBytes("\n");
              gotoAndPlay(4);
    BTN1.addEventListener(MouseEvent.CLICK, BTN1Action);
    BTN2.addEventListener(MouseEvent.CLICK, BTN2Action);
    BTN3.addEventListener(MouseEvent.CLICK, BTN3Action);
    Any assistance with this is greatly appriciated. 

    Assuming you want to monitor key press on the button BTN1, you can do following:
    // Add a key up event listener on the button (or on the source where the key press needs to be captured)
    BTN1.addEventListener(KeyPress.KEYUP, BTN1KeyUpAction);
    // BTN1KeyUpAction sample, you can modify this
    function BTN1KeyUpAction(e:KeyboardEvent):void {
        if(e.keyCode == Keyboard.S) {
        gotoAndPlay(2);

  • RETURN key

    Hi,
    I have to write a script in which I should use the following command line :
    RECOVER DATABASE using backup controlfile until cancel;
    generaly when you issue this (out of a script) it will return :
    {RET;AUTO;CANCEL}
    Which means you should answer with any of RETURN KEY; AUTO or CANCEL choice.
    My question is how in my script I can give RETURN KEY as answer ?
    I hope my question is enough clear.
    Thanks for helps.

    This is neither a SQL or PL/SQL question, and would be best asked on the General Database Discussions forum. Or maybe the Recovery Manager (RMAN) forum.

  • When using the measure tool the imputed scale resets to 1to1 as soon as you perform another action. How do you get the scale to lock?

    When using the measure tool the imputed scale resets to 1to1 as soon as you perform another action. How do you get the scale to lock?

    Hi there - I think I am having problems associated withg Cause 9 in that in google mail I have another pop email address associated so that I can send using this email address, but then I have both addresses setup seperately in BIS. When I receive a mail from GMAIL I receive a duplicate with "received by: unknown" in the header. I had gmail setup so that it would send using by pop email address as default.
    In your answer the settings for the two filters you recommend creating are broken links and I canot actually see them. What are they?
    Also What do you recommend setup wise with gmail and a pop account. Some people say it is better to get gmail to receive the pop mail account and run the whole account from there. Blackberry doesn't seem to like this setup very much. Should I completely dissociate the pop account and to try and clarify the distinction between the two? Or should I setup a second gmail account and have that poll my pop account and then have the blackberry feed off these two gmail accounts? The reason I am considering this option is gmail provides a lot of storage and online continuity and this would effectively persist my account.
    Your help would be much appreciated.. I have had blackberry woes now for over a month and I have spent hours with various support personel, tried deleteing and sending down new service books etc etc but had no luck yet.
    thanks,
    Nathan 

  • In Settings Contacts My Info - I tapped on a name in the contact list in error. I wanted to undo that action to have no name there, but all I am able to do is change the contact name. How do I delete the name and return

    In Settings>Mail, Contacts, Calendars>Contacts - I tapped on My Info and mistakenly tapped on a name in my contacts list. I did not wish to make any changes, but cannot undo this action. All I can do, apparently, is change to a different name. How do I undo this action? Thanks.

    In Settings>Mail, Contacts, Calendars>Contacts - I tapped on My Info and mistakenly tapped on a name in my contacts list. I did not wish to make any changes, but cannot undo this action. All I can do, apparently, is change to a different name. How do I undo this action? Thanks.

Maybe you are looking for

  • How can you set up more than one device on iTunes. I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices.

    How can you set up more than one device on iTunes? I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices. I have all my music/videos on iTunes on my mac book pro. Can you set up separate folders for each device and drop in wha

  • Role Import - Issue

    Hi All, We have a Logical System Group for ECC. Now this group has 3 connectors. I am uploading the roles into GRC system from one of the 3 connectors defined under logical system group. I downloaded the Role authorization file and Role attributes fi

  • Help required for Hilbert Space Filing Curve problem

    Can someone suggest the algorithm for the following problem: Given an N � N array A, generate the index of each location A[i][j] according to Hilbert Space Filling curve. The Hilbert curve generates the indices recursively as follows - for a 2 � 2 sq

  • MM Pricing: Account and Accrual Keys

    Hi ! In a calculation schema we can assign Account Keys and Accrual Keys to condition types. I am noticing that if I assign a Accrual Key, the Account Key is ignored. Is this a correct observation? If I assign a Accrual Key do I have to leave Account

  • Windows 8.1 Moving Desktop Icons Problem

    I just installed Windows 8.1 and I'm very happy with it. There is just one problem I have and I hope you can help me resolve it. I can't move my desktop icons. Windows is newly installed and I don't have any third-party software that could mess up ev