Home » Developer & Programmer » Forms » I want Keypress Event Like Trigger (Oracle 10g, Developer 2000 Forms 6i)
I want Keypress Event Like Trigger [message #396514] Tue, 07 April 2009 01:24 Go to next message
expertsudhir
Messages: 26
Registered: October 2008
Location: Delhi, India
Junior Member

Dear All,

I want to write a trigger which must act like KeyPress event of Visual Basic.

Basically what I want is "when any value is changed in a text box then a trigger should be executed".

I tried with Key-Others, Key-Edit but didn't succeeded.

If you have the solution, please guide me.

Kumar Sudhir
Re: I want Keypress Event Like Trigger [message #396582 is a reply to message #396514] Tue, 07 April 2009 04:48 Go to previous messageGo to next message
rmoplusx
Messages: 19
Registered: February 2009
Junior Member
if you use another item on behalf of text item you can use list item and use when_validate_item trigger
Re: I want Keypress Event Like Trigger [message #397247 is a reply to message #396582] Thu, 09 April 2009 10:18 Go to previous messageGo to next message
expertsudhir
Messages: 26
Registered: October 2008
Location: Delhi, India
Junior Member

Exactly right.

But there is about 1000 of distinct data; according to which I need to filter from another table.

I need to use Text Box only.

I want : When press 1 then the trigger should fire, again if press say 6 then the trigger should fire, again if press backspace then the trigger should fire and so on.

Please help me.

And Experts are also advised to confirm whether it is possible or so I do not waste my time over it.

Thanx in advance.
Re: I want Keypress Event Like Trigger [message #397264 is a reply to message #397247] Thu, 09 April 2009 11:56 Go to previous messageGo to next message
amr_wafa
Messages: 9
Registered: January 2009
Junior Member
i'm not 100% sure about what what im going to say...but give it a try:

create a timer that copies the contents of the text_item_1 to the text_item_2 each time it expires lets say every 500 ms or something...

i think it will do the job, but also i think it will effect the performance of the form..

give it a try and let us know....

Eng. Amr
Re: I want Keypress Event Like Trigger [message #398028 is a reply to message #397247] Tue, 14 April 2009 23:30 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Oracle Forms is a block mode data handling system. It does not do "character by character". Use a Java thingy. There are examples, and links to examples, on the Oracle Forms web site.

David
Previous Topic: forms 10g book / documentation
Next Topic: Use the Selected items in Another Blocks
Goto Forum:
  


Current Time: Sat Dec 03 07:48:45 CST 2016

Total time taken to generate the page: 0.12035 seconds