Home » Developer & Programmer » Forms » how use F2-key and Please see my code and give me idea (merged)
how use F2-key and Please see my code and give me idea (merged) [message #162563] Sat, 11 March 2006 04:57 Go to next message
mfa786
Messages: 210
Registered: February 2006
Location: karachi
Senior Member
hi master

sir how i use f-key i write code in key-f2 bot system not give result and show error frm-41008

please give me idea how i use Ctrl,Alt,f-Key and other key in my applicatin when use press f2 key then save my data

Thanking you

Aamir
Re: how use F2-key [message #162591 is a reply to message #162563] Sat, 11 March 2006 10:47 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quote:

FRM-41008: Undefined function key. Press %s for list of valid keys.

Cause: You pressed an undefined function key.

Action: Press [Show Keys] to determine which function key you should have pressed.

Level: >25

Type: Error
So, did you press an undefined function key?

Basically, it is quite easy to redefine a function key; for example, create a dummy form based on the 'dept' table of Scott's schema. Create a block-level trigger KEY-F2 and its only line would be 'execute_query;'. In Property Palette of the trigger set "Display in 'Keyboard Help" to YES and enter "Keyboard Help text" (for example, 'F2 = execute query').

When the form is run, go to Help menu - Keys and you should see it there, saying that user should press <Shift + Ctrl + F2> to execute F2's trigger code.

What happens if you follow this scenario? Do you still get an error? If so, which one?
your code not give response Re: how use F2-key [message #162862 is a reply to message #162591] Mon, 13 March 2006 22:37 Go to previous messageGo to next message
mfa786
Messages: 210
Registered: February 2006
Location: karachi
Senior Member
hi master

thanks for your reply

but sir i Tried Your code that no response

and my problum still

please give me any other idea or code

thanking you
Please see my code and give me idea [message #162894 is a reply to message #162563] Tue, 14 March 2006 00:44 Go to previous messageGo to next message
mfa786
Messages: 210
Registered: February 2006
Location: karachi
Senior Member


Hi master;

first i use F2-key event and put only this code
go_block(‘emp’);
Execute_query;
but system give me this error FRM-41008 then i use

on-error event but no result

Sir I use this code on-error event




DECLARE errnum NUMBER := ERROR_CODE;
errtxt VARCHAR2(80) := ERROR_TEXT;
errtyp VARCHAR2(3) := ERROR_TYPE;
BEGIN IF errtyp=’FRM’ and errnum = 41008 THEN
go_block(‘emp’);
Execute_query;
END IF;
END;

sir give me idea
Aamir
Re: Please see my code and give me idea [message #162913 is a reply to message #162894] Tue, 14 March 2006 01:56 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
If I remember well, you've already had this error before - it says that you pressed an undefined key. Did you no read the follow-up to your last topic?
Re: Please see my code and give me idea [message #163067 is a reply to message #162894] Tue, 14 March 2006 19:58 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Which part of Littlefoot's suggestion did not work? Did you follow his directions exactly?

David
Previous Topic: Problem with subclassing of an Object Group
Next Topic: Can we do that?
Goto Forum:
  


Current Time: Fri Sep 20 09:37:51 CDT 2024