Using "Enter /Return" Key to submit a query

All:
I could not find any straight forward solution to my problem. I have report that has a search column (text) and I limit records based on the value entered in this text item. I have a "go" button that initiate the fetch. However, how do I achieve the same functionality when I press the enter key. Currently, when I press the enter key, it reports the following:
ERR-1777: Page 5 provided no page to branch to. Please report this error to your application administrator.
Restart Application
Any help would be appreciated.
Thanks

Rajesh - If the only two ways to submit the page are to use the button or to press the Enter key in a text field, then you can simply remove the when-button-pressed condition from the page branch. Then the branch will fire now matter how the page is submitted. As it is now, the branch does not fire when the Enter key submits the page so the engine looks for the next branch that could be a candidate but fails to find one and you see the error message.
Sometimes you need a page that is submitted by the Enter key to be handled as if a certain button (or "request" value) were pressed. In these cases, you can use javascript to make the Enter key set the request value to your liking. One way is to put code like the following in the page's HTML Header attribute, using "GO" as the request value in this example:< script type="text/javascript">
<!--
function submitenter(e)
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13)
   doSubmit('GO');
   return false;
else
   return true;
//-->
</script>With this code, a page submitted with the Enter key would have a request value of "GO" and could be treated the same way as if a button with a request value of "GO" submitted the page.
Scott

Similar Messages

  • I can't open my mail unless I use the Enter/Return key or go to the File -Open Message

    Up until yesterday I could open an email just by double clicking the message. Now if I want to open a message I have to use the Enter/Return key or go into FILE and press Open Message.
    The only thing different since yesterday morning is that I decided to turn off File Vault --that process took all day but finally finished and that's when I ran into problems with mail.
    I've checked my mail settings and they are the same as before. Have OSX Yosemite 10.10.1 installed.

    ''SuperSluether [[#answer-671002|said]]''
    <blockquote>
    Is this problem in Firefox? It sounds as if you are referring to an email program such as Apple Mail or Mozilla Thunderbird. As far as I know, you can't open emails in Firefox with File > Open Message because there is no such option.
    </blockquote>
    Thank you for your response. I finally found out why this was happening. It had to do with the Trackpad settings for my Mac. I adjusted the track speed to a slower speed as it was set quite fast. This seems to have fixed the problem :)
    I’m not too computer savy so sometimes things can be a little confusing trying to figure out whats what and where to look for solutions.
    Thank you

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

  • Enter/return key issue.

    We have a new Macbook Pro and the enter/return key does not work with software unless we push the shift key at the same time. It only does this on one user as well. Other users on the computer the enter/return key works fine. As an example - if you are done with a sentence in Pages and you hit the enter/return button to go to the next line nothing happens unless you also hold the shift key down. Any ideas?

    I have found a solution that works in Excel 2011. But you can try to see if this solution would work for Pages also. Remember, where the instructions below refer to Excel substitute it with Pages instead. From what I am understanding you want to click the RETURN key and move down to the next line in the document. Hopefully it works.
    If you want to click the RETURN key and have the cursor go from the current cell to the the next row in Column A (i.e. The cursor is in cell B2, click RETURN, the cursor moves to A3) do the following:
    1) Click on the Apple logo in the upper left corner of your desktop.
    2) Click SYSTEM PREFERENCES.
    3) Click KEYBOARD.
    4) In the KEYBOARD box click KEYBOARD SHORTCUTS.
    5) Click APPLICATION SHORTCUTS from the left menu.
    6) Click the + (plus sign) that appears to the left of the Restore Defaults
    button.
    6) In the box that appears select EXCEL for the APPLICATION you want to apply this shortcut to. (if Excel does not appear on the list, click on OTHER at the bottom of the list, click MICROSOFT OFFICE, then click EXCEL).
    7) In the MENU TITLE field enter the name you would like to give this shortcut (i.e. ACTIVE CELL). Click the RETURN key(enter) to continue.
    The cursors will now appear in the KEYBOARD SHORTCUT field. Click the RETURN (enter) key once. The shortcut will now appear in the KEYBOARD SHORTCUT field.
    9) Click ADD.
    Now go into the spreadsheet and test the shortcut. Enter information into the spreadsheet into a number of cells in the same row (move between the cells either with the TAB key or RIGHT ARROW), When you are done entering your information, then click RETURN. The cursor should now move to the next row in COLUMN A (i.e. The cursor is in cell B2, click RETURN, the cursor moves to A3).
    Hope it works for you as well as it did for me.

  • OneNote 2013: Font changes when pressing Enter / Return key

    I have the same problem as this guy (who didn't get a relevant answer): http://social.technet.microsoft.com/Forums/office/en-US/233833f7-dde8-414d-bdca-604ed8d57667/onenote-2013-font-changes-when-pressing-enter-return-key?forum=officeitpro
    I set my default to Calibri 14, but every time I press enter (I make a lot of bullet lists) the font changes to Calibri 11. 

    Hi,
    Did you change the default font after you typed a few words in a note container?
    Setting the default font in Microsoft Office OneNote affects text that you type in new note containers only. It does not affect existing text or text that you add to existing note containers.
    If you want to change the font in an existing note container, you need to change it manually under
    Home tab > Basic Text.
    Thanks,
    Steve Fan
    TechNet Community Support

  • Need ENTER / return key on LEFT side of keyboard

    I need an enter / return key (or key combo) on left side of my keyboard. Any idea how to do that?
    Thanks, in advance!

    Startly's QuicKeys is probably the least troublesome way because some programs ignore the system settings.

  • ITS mobile - Enter / Return key function in windows mobile

    Hi,
    I am using ITSMOBILE with a RF gun. I have developed screens but when using ENTER key on the RF device, it does not work. I have checked in IE6 and it works. It seems it is an issue with the RF device.
    Does anyone have an idea to resolve this issue.
    Regards,
    Emmanuel

    Hi Ganesh,
    What browser are you using?
    In your situation I believe you are tryuing to use function keys with an Internet Explorer on Windows Mobile? Up to Windows Mobile 6.5, IE does not support the OnKeyPress Event.
    This issues needs to be solved by using an industry Browser which remaps the KeyPressed Events to javascript functions.
    You will need to use an Industrial Browser I.E the Motorola Symbol PocketBrowser which should be available with Symbol MC9090 device
    Then you can have the key mapping according to the technical manual of you Industrial Browser.
    Regards,
    Oisin
    Edited by: Oisin ONidh on Dec 21, 2011 3:57 PM

  • Enter/return key no go in safari

    i created a client login on my page:
    http://www.reelherofilms.com/
    if you enter the password:
    test
    and hit the return key on your keyboard it doesn't work in
    safari,
    only works if you hit the screen button "enter"
    it seems to work with both in firefox. i dont know about IE
    because im on a mac.
    any help?

    i will also add that its even inconsistent in FF..i just
    checked it again and it didn't work and i haven't even changed the
    code
    what is this madness?

  • Enter/Return Key

    Hi all, I have been using macs for years, but this is my first Macbook. I love it so far, but I do have a question about the return/enter key. Mine does not seem to function. I have to use the enter key located by the apple key. Is there some easy fix that I can do, or is this something that needs to be addressed by service?
    Thanks! I look forward to your responses.
    Annette

    Hi Annette,
    It's hard to say but judging by the fact that it's only that one key I would venture a guess that it's hardware related. If you have an Apple Store close by I'd take it in or if not give Apple a call and see what they say.
    As I say my guess is it'll be something that'll need repairing.

  • Enter/return key wont work

    I cant get it to work properly.It will only work with number lock on
    macbook pro   Mac OS X (10.4.8)  

    Is it the original Mac Pro keyboard ? Or is it a different USB keyboard ?
    I have exactly this when I try to use my old Bondi iMac keyboard in any other Mac, usually a PB.
    I'll try your fix tho !!

  • Uix: return key as accelerator?

    Hello!
    Is there any way to use the return key to submit a form in uix? Someone else on this board said there isn't two years ago, but I can't believe this, as this is an important improvement to every UI. Take Google, for example, and imagine how annyoing it would be to use the mouse for every search you start. I know that I can implement accelerators like Alt+S easily, but I want people to see the results when they just hit enter intuitively.
    I've tried to get this working using a client-side event handler:
    if(window.event.keyCode==13)
        SIMULATE_CLICK_ON_BUTTON;I could not figure out how to submit the form correctly, that is, I don't know what to fill in for SIMULATE_CLICK_ON_BUTTON. A simple frmDqu.submit() did something (I could see it in the browsers status bar), but the page was still the same.
    It would be nice if someone could help me here!
    Greetings,
    Michael

    Hi Michael,Hello!
    Thank you for your answers. I'll try to explain it a little bit better.
    What is your exact requirement,I have an application with many use cases. Most of them just manage DB tables, so they consist of one page for search and navigation (and another one for editing existing and creating new entries; there are also three data actions doing create, commit and rollback). I think it would be best to look at the search/nav page first however. I built it by dragging a 'search form' from the DataControls palette to the page. When I start the application, the table is visible, then I click on my 'search' button, the table disappears and the search form shows up. The first messageTextInput gets the focus. What I want the user to do is to just press, for example, |Tab||Tab| to jump to the third input, type text, hit |Enter|. This should invoke the 'execute' button, which is the first button in the search form and has its location left to the 'cancel' button within a page button bar inside the same labeledFieldLayout the messageTextInputs are in. I hope this is clearly enough, i have added the code at the bottom however..
    I should mention that I use the BLAF (Oracle) visual. Using a different style containing buttons instead of images like MINIMAL, there are default buttons.
    My hope was that I could use a small JavaScript in the keyPress event handler of the form to trigger the 'execute' button, as I mentioned in my first post. I know that the handler works, I just do not know how to simulate a click on the button (which is actually an <a>+<img> in the BLAF environment). So i would need a line of code I can put in the client-side event handler that 'clicks on the execute button' for me.
    which version of JDev
    or UIX you are currently using.I am using Oracle JDev 10g. The about box tells me:
    Version 9.0.5.2 build # 1618
    ADF UIX 2.2.8
    Thank you for the sample and the URL. They did not help me much though. This is the code of my page (I left out some of the event handlers):
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
          xmlns:ui="http://xmlns.oracle.com/uix/ui"
          xmlns:data="http://xmlns.oracle.com/uix/ui"
          xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
          xmlns:struts="http://xmlns.oracle.com/uix/struts"
          xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
          xmlns:myTemplate="http://www.telekom.de/">
      <templates xmlns="http://xmlns.oracle.com/uix/ui">
        <templateImport source="../mainApp.uit"/>
      </templates>
      <content>
        <struts:dataScope xmlns="http://xmlns.oracle.com/uix/ui"
                xmlns:data="http://xmlns.oracle.com/uix/ui">
          <provider></provider>
            <contents>
            <document>
              <metaContainer>
                <head title="Qualität DUST"/>
              </metaContainer>
              <contents>
                <body initialFocusId="start">
                  <contents>
                    <form name="frmDqu" method="post" onKeyPress="/*if(window.event.keyCode==13){submitForm(frmDqu,1); return false;}*/">
                      <contents>
                        <myTemplate:mainApp fensterTitel="Qualität DUST"
                                                    xmlns:myTemplate="http://www.telekom.de/">
                          <myTemplate:messageArea>
                            <flowLayout>
                              <contents>
                                <messageBox automatic="true" model="${data}"/>
                              </contents>
                            </flowLayout>
                          </myTemplate:messageArea>
                          <myTemplate:contentArea>
                            <flowLayout>
                              <contents>
                                <spacer height="10" width="10"/>
                                <flowLayout>
                                  <contents>
                                    <flowLayout rendered="${bindings.T1DquView1Iterator.findMode}">
                                      <contents>
                                        <header text="Suchkriterien eingeben" id="detail7">
                                          <contents>
                                            <labeledFieldLayout>
                                              <contents>
                                                <messageTextInput model="${bindings.DquQualnr}" columns="10" readOnly="false" required="no" maximumLength="3" id="start" disabled="false"/>
                                                <messageTextInput model="${bindings.DquQualitaet}" columns="10" readOnly="false" required="no" maximumLength="12" id="qualitaet"/>
                                                <spacer width="10" height="35"/>
                                                <pageButtonBar>
                                                  <contents>
                                                    <submitButton text="Suchen" event="action" accessKey="s" model="${bindings.Execute}" id="Execute01"/>
                                                    <submitButton text="Abbrechen" event="goCancel" accessKey="a" onClick="frmDqu.reset();"/>
                                                  </contents>
                                                </pageButtonBar>
                                              </contents>
                                            </labeledFieldLayout>
                                          </contents>
                                        </header>
                                      </contents>
                                    </flowLayout>
                                    <header text="Qualität DUST" rendered="${not bindings.T1DquView1Iterator.findMode}">
                                      <contents>
                                        <table model="${bindings.T1DquView1}" id="T1DquView112" partialRenderMode="multiple" partialTargets="_uixState" alternateText="Keine Datensätze gefunden.">
                                          <contents>
                                            <column>
                                              <columnFormat columnDataFormat="numberFormat"/>
                                              <columnHeader>
                                                <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.T1DquView1,'DquQualnr')}"/>
                                              </columnHeader>
                                              <contents>
                                                <textInput model="${uix.current.DquQualnr}" columns="10" readOnly="true">
                                                  <onSubmitValidater>
                                                    <decimal/>
                                                  </onSubmitValidater>
                                                </textInput>
                                              </contents>
                                            </column>
                                            <column>
                                              <columnHeader>
                                                <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.T1DquView1,'DquQualitaet')}"/>
                                              </columnHeader>
                                              <contents>
                                                <textInput model="${uix.current.DquQualitaet}" columns="10" readOnly="true"/>
                                              </contents>
                                            </column>
                                          </contents>
                                          <tableSelection>
                                            <singleSelection model="${bindings.T1DquView1Iterator}" text="Ausgewählte Reihe">
                                              <primaryClientAction>
                                                <firePartialAction targets="_uixState" source="T1DquView112" event="select"/>
                                              </primaryClientAction>
                                              <contents>
                                                <submitButton text="Korrigieren" event="goDetail" accessKey="k"/>
                                                <spacer width="5" height="10"/>
                                                <submitButton text="Löschen" event="goDelete" accessKey="l" onClick="return confirm('Soll der Datensatz gelöscht werden?')"/>
                                              </contents>
                                            </singleSelection>
                                          </tableSelection>
                                          <tableActions>
                                            <flowLayout>
                                              <contents>
                                                <submitButton text="|<" model="${bindings.First}" id="First14" event="action"/>
                                                <submitButton text="<" model="${bindings.PreviousSet}" id="PreviousSet15" event="action"/>
                                                <submitButton text=">" model="${bindings.NextSet}" id="NextSet16" event="action"/>
                                                <submitButton text=">|" model="${bindings.Last}" id="Last17" event="action"/>
                                              </contents>
                                            </flowLayout>
                                          </tableActions>
                                        </table>
                                        <spacer width="10" height="10"/>
                                        <separator/>
                                        <spacer width="10" height="10"/>
                                        <pageButtonBar>
                                          <contents>
                                            <submitButton text="Suchen" model="${bindings.Find}" id="Find13" event="action" accessKey="s"/>
                                            <submitButton text="Alle anzeigen" event="showAll" accessKey="a"/>
                                            <spacer width="50" height="10"/>
                                            <submitButton text="Neu anlegen" event="goNew" accessKey="n"/>
                                          </contents>
                                        </pageButtonBar>
                                      </contents>
                                    </header>
                                  </contents>
                                </flowLayout>
                              </contents>
                            </flowLayout>
                          </myTemplate:contentArea>
                        </myTemplate:mainApp>
                        <formValue name="${bindings.statetokenid}" value="${bindings.statetoken}" id="_uixState"/>
                      </contents>
                    </form>
                  </contents>
                </body>
              </contents>
            </document>
          </contents>
        <!--/dataScope-->
        </struts:dataScope>
      </content>
      <handlers>
        <event name="action" source="Execute11">
          <invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding" instance="${bindings.Execute}"/>
        </event>
        <event name="action" source="Find13">
          <invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding" instance="${bindings.Find}"/>
        </event>
        <event name="action" source="Execute01">
          <invoke method="doIt" instance="${bindings.Execute}" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding"/>
        </event>
        <event name="goCancel">
          <compound>
            <invoke method="doIt" instance="${bindings.Execute}" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding"/>
          </compound>
        </event>
      </handlers>
    </page>Bye,
    Michael

  • Using the return or enter key in the note

    In Snow Leopard I was able to create lists in the "Note" section at the bottom of the edit view of an event by hitting the enter/return key and typing the next item on the list below the previous. In Lion when I hit enter/return in "Note" it closes out my edit window as if I have finished editing rather than moving to a new line beneath the first. I am now sequentially typing items using / between each item to differentiate them. Can I change this somehow to go back to the old enter/return behavior?

    In QuicKeys, 'User Actions'>'Type Keystroke':
    In Automator you could have an Applescript step and use
    keystroke return
    I don't know if there is a direct method in Automator.

  • Enter vs Return key?

    Sorry if this has already been asked, but I was wondering - what is the difference between the return key and the enter key on my keyboard? For me - I hardly ever use the real "enter" key near the command key. I always use the regular enter key above the shift, but yet it is actually a "return"? I also noticed that holding the FN key while pushing return makes it the "enter" key because it is in the gray font on the key. Any info on the differences of these keys? Thanks!

    Not that I can tell (usually). It may make a difference in some applications, but I always use the Return key, too.

  • Return key not creating a new line when using the horizontal text tool

    Going through the adobe after effects 'classroom in a book' examples - when writing a line of single line using the horizontal text tool pressing return does not create the next line underneath, the cursor stays on the same line?
    Anybody out there had this problem?

    Hi Bill
    Thanks for replying!
    My OS is windows 7. I think it is the first time I have needed to put more than one line of text in an after effects layer. I am new to CS5.5 - after effects and I'm going through an adobe tutorial  'classroom in a book' series book.
    I thought about using a paragraph text box as you suggest but could not find the function in the tools menu.
    I have since tried clearing the cache out and restoring default layout but with no joy.
    I have used the return key for multiple line text in premier pro and it works perfectly ok.
    Cheers,
    Alan

  • Variable : Key date of the query

    Hello Everyone,
    I would like to share couple of points with you all during this cool holiday season.
    I need to use variable for a  time dependent hierarchy. I have a variable and selected that. Again I want to restrict this hierarchy by using variable for key date of the query.
    I can select a variable for the hierarchy. But I am not able to restrict the hierarchy.  When I choose a varaible for "key date of the query" system responed with an error message ' For characteristic 0Date, enter value in permitted format'. So I am not able to select a variable for "key date of the query " and restrict the hierarchy to choose a node.
    Please share your valuable inputs.
    Thanks in advance
    RJ

    Hello,
    what is the variable name that you are using to restrict the hierarchy date?
    Regards,
    Daniel

Maybe you are looking for

  • How to read ISO characters???

    Hi, I'm trying to read the headers of an email. In the "subject" section I have some words in french, imagine the subject is "Café" (whith the accented e). The content of the subject header is not "Café" instead it is: =?ISO-8859-1?Q?Caf=E9?=. The th

  • How to delete delete "Blank" version in MCSI

    Dear Experts, I have use OLIX to delete version in MCSI, but the info structure still contain data (SE16) with blank version. please tell me how to delete the blank version. Thank You

  • Transfer from one laptop to another

    I need to know what program I will need to transfer information and programs from one laptop to another. On my old Mac Pro I have some PC programs on it that I need to also transfer. I called Apple to take both into store and let them do this but the

  • Is Casio GzOne supported?

    Is Casio GzOne supported?

  • Il est momentanément impossible de traiter votre demande

    Bonjour, Itunes, menu Store / Voir mon compte, après la saisie de l'identifiant le compte s'affiche correctement mais impossible de faire quoi que ce soit. A chaque fois le même message : "Il est momentanément impossible de traiter votre demande. Veu