Home » Developer & Programmer » Forms » How to detect when ENTER key pressed (Oracle forms 10G)
How to detect when ENTER key pressed [message #446179] Fri, 05 March 2010 20:15 Go to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

I have 2 text fields as search criteria and a push button to search. When the user enter any on first field (or in any text field) and press ENTER key, I want to execute the search.

I tried the key-next-item trigger, but it's firing when I press TAB key.

How can I detect ENTER key?
Re: How to detect when ENTER key pressed [message #446188 is a reply to message #446179] Sat, 06 March 2010 01:16 Go to previous messageGo to next message
tamzidulamin
Messages: 132
Registered: October 2009
Location: Dhaka
Senior Member


See KEY-ENTER trigger....



Tamzidul Amin.
Re: How to detect when ENTER key pressed [message #446248 is a reply to message #446188] Sat, 06 March 2010 23:15 Go to previous messageGo to next message
tamzidulamin
Messages: 132
Registered: October 2009
Location: Dhaka
Senior Member
Dear,

you can try with
KEY_EVENT Registered Property
by using java.

Tamzidul Amin.
Re: How to detect when ENTER key pressed [message #447542 is a reply to message #446179] Mon, 15 March 2010 23:06 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Wency,

Did you get the 'key-enter' trigger to work?

David
Re: How to detect when ENTER key pressed [message #447566 is a reply to message #447542] Tue, 16 March 2010 02:24 Go to previous messageGo to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

No David. No trigger supports this one.
Re: How to detect when ENTER key pressed [message #447615 is a reply to message #446179] Tue, 16 March 2010 12:07 Go to previous messageGo to next message
Kaeluan
Messages: 179
Registered: May 2005
Location: Montreal, Quebec
Senior Member
Hi,

I don`t know you version of forms, but if you working with Forms 10g by default the key-enter will never execute. This is because of the defaut configuration on application server. By default pressing enter will only move you to the next field and will not execute the key-enter.

You will have to modify the file fmrweb.res on the application server. This is the ressource file that contain the key definition in webforms.

Look for the following line in the file:
10 : 0 : "Return" : 27 : "Return"

and replace it by:
10 : 0 : "Return" : 75 : "Return"


If you have acces to metalink, search for document ID = 209671.1

hope it help
Re: How to detect when ENTER key pressed [message #447624 is a reply to message #447615] Tue, 16 March 2010 19:34 Go to previous messageGo to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

I use forms 10G.

Very interesting post Kaeluan, thank you. Although I don't have access on our configuration server right now, it's good thing to know that there is a feature on that.

Thanks a lot!
Re: How to detect when ENTER key pressed [message #513874 is a reply to message #446179] Wed, 29 June 2011 16:32 Go to previous messageGo to next message
kiranmaraka
Messages: 1
Registered: June 2011
Junior Member
It worked for me in Forms 10g

Navigation: button--> property pallete --> Default Button = Yes

[Updated on: Wed, 29 June 2011 16:34]

Report message to a moderator

Re: How to detect when ENTER key pressed [message #513924 is a reply to message #447615] Thu, 30 June 2011 03:24 Go to previous message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
sir,

can we define new key combination as well. if yes, how.


Regards
Athar
Previous Topic: Reports Problem in 10g
Next Topic: pl help me
Goto Forum:
  


Current Time: Fri Sep 30 08:57:54 CDT 2016

Total time taken to generate the page: 0.10994 seconds