I have an text field in an oracle apex form. A user can type in a search query and hit the "Search" button to submit the page. I also want to allow the user to just be able to hit the enter key to search.
On the text field I have the option "Submit when Enter Pressed" set to Yes. However this is not working. I think it is because I have other processes attached to other buttons on the page that are used to also submit the form for other purposes.
My question is, is there anyway to define specifically what process gets called when enter is pressed from a specific text field?
When you submit a page by pressing Enter in an item with "Submit when Enter pressed" set to Yes, the page is submitted with the Request value set to the name of the item. You can therefore make the process conditional on the value of Request being the item name.
Related
Hello we are using oracle ADF 12c. We have some popups with tables blocks and at the top of each table column, there is data filter/search box. Whenever a data is entered in the filter box and "Enter" is pressed the popup gets closed automatically. Next time the popup is opened, the filtered data appears
The problem which I see is that by pressing "Enter", automatically "OK" button is clicked. How can we prevent this to happen and let the popup just refresh the table block only when "Enter" is pressed.
This works very well if the table block is not in a popup, by pressing enter, the blocks gets refreshed and data is appeared but doesn't work in popup and we need to filter data in table blocks of popups also.
Make sure that the popup property autoCancel is set to false. Then I can only assume you use an af:dialog of type OK or OKCANCEL. You can use the type NONE and handle the OK and CANCEL button yourself, just as any other regular button.
Add actionListeners to the buttons, and inside the listeners, you close the popup.
I have a small problem that I cannot resolve because im new to Livewire
I have a form with a text input with a search button.
The user types a word, press enter and the search button finds the result on database... and with that result I enable the save button.
when the user press enter again I save that word on a table.
the problem later is when the user change that word. I press the enter key again and it tries to save and not to search the word...
how can I reset or something when the text input change? without executing it on every key press?
thanks !!
I have found my answer.. it was not on hydrate or dehydrate.. it was on updated function of the property, where I reset all inputs.
thanks for you and me
I'm having a stressful issue with Oracle Apex. After pressing submit on a button (which is set to submit page) I would like validations to occur and then after that a message to appear as text into a display only text field. So when the page submits and "refreshes" the fields are cleared and the display only field := 'successful addition' or whatever. However, the page submits successfully but the after submit process to add the text into the display only field doesn't work. Do you guys know a way around this?
One aproach is to set the source of your DISPLAY_ONLY item to be your TEXT_FIELD item.
For more sophisticated solutions you can use Branch or Process.
For example: my TEXT_FIELD is named: P10_SOURCE
Thank you, all.
I've solved it by altering the sequence of validations and processes.
I discovered this behavior in Oracle APEX 4.2: you create a page with form elements and now when you press Enter in a textbox (text field), the page submits, even though you have "Submit when Enter pressed" set to No and haven't made any dynamic actions or other javascript checking for the keycode 13.
This can also end up making it look like you submitted twice: first with a blank/empty request, and then with the actual request. Interestingly, the first blank request is the only one Firefox sees, but Chrome and IE see both requests.
It turns out if you have exactly one text field on your page, APEX will cause the page to submit. I found the solution here: http://deneskubicek.blogspot.com/2008/06/textfield-item-submiting-page.html
Just create another text field and give it the following in the HTML Form Element attributes: "style="display:none". Voila, all set!
I have a requirement and I dont know how to start?
My client has an Oracle Form (.fmx), when you open the .fmx file a dialog asking for username and password is open.
After inserting the username and password and pressing the Enter key a new form is open with an input asking for a specific ID.
What I need to do is to set up the username and password and hit enter automatically (using a script or something else)
how can I make that posible?
Note: what to do ? type username and pass hit enter, next windows loads,set focus to the id input and type the id value
It sounds like you want something to automatically fill in the fields and press a button. You can do this by using the Windows SendKeys API. There are various ways to do it with VBScript/PowerShell/AutoHotKey/AutoIt. Pick your poison.
I would probably do it in AutoHotKey because you can have it compile the script as an EXE to hide the username and password it enters.
You can have it search for the Window and focus it:
http://www.autohotkey.com/docs/commands/WinActivate.htm
Then send keystrokes and button clicks to it:
http://www.autohotkey.com/docs/commands/Send.htm
You can navigate the form by sending they Alt + hotkey of the form field. The hotkeys are normally underlined when you press the alt key on a form. So use this technique to focus the first field, and then either use it again or send the tab key to change focus to other fields. I would suggest avoiding use of tab and use the Alt + hotkey approach to select send input to all fields and to focus the form submission button.