Home » Developer & Programmer » Forms » CAN ANY ONE HELP ? PLZZZZZZ
CAN ANY ONE HELP ? PLZZZZZZ [message #86117] Wed, 01 September 2004 20:35 Go to next message
domingo
Messages: 54
Registered: June 2004
Member
Hi

  In my form i have two blocks a, b.

  a--- master

  b --- details

 when in block a , i execute query b gets populated .

  I have a function key ie when user presses F7 key another form gets     called.

  when i am in block a and i press F7 key the other form is called .

but when i navigate to block b and try the same it gives me the error

FRM-41008:  Undefined function key.

  I have written the key trigger in both the blocks .

   Kindly tell me why is it happenning and how to get rid of it .

    Thanking you all in advance

    -- domingo 
Re: CAN ANY ONE HELP ? PLZZZZZZ [message #86119 is a reply to message #86117] Wed, 01 September 2004 21:34 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi Domingo,
Can you post the Code which you have written for F7 key & tell us in which trigger you have written it.

By default as you know F7 is menat for Key enterquery trigger.So have you changed the Key mappings in FMRPCWEB.RES file?

What you can do is to add the Following code in your Triggers before the call_form is executed:

If :System.Cursor_Block <> MASTER_BLK' Then
Go_Block( 'MASTER_BLK');
End If;

Call_form(Form_name.....);

Regards
Himanshu
Re: CAN ANY ONE HELP ? PLZZZZZZ [message #86123 is a reply to message #86119] Thu, 02 September 2004 00:23 Go to previous messageGo to next message
domingo
Messages: 54
Registered: June 2004
Member
Sorry Himanshu,
But its not working .
actually key F& trigger is written in master block and its working .
The code is pxg_page_np;
a procedure(program unit) which further calls the other form .
I have placed the same trigger(code) in block two (details).
I also added ur piece of code but still it is not working actually on pressing F& from detail block it is giving the error .
Plz help .
DOMINGO
Re: CAN ANY ONE HELP ? PLZZZZZZ [message #86137 is a reply to message #86123] Fri, 03 September 2004 01:24 Go to previous messageGo to next message
argya
Messages: 7
Registered: August 2004
Junior Member
Domingo
Do one thing ,
for both the blocks go in the on error trigger
write the following code ---

IF (err_type = 'FRM' and
err_code = 41008) then
call_the _procedure;
end if;
Hope it works
Thanks --
SHUBH
Re: CAN ANY ONE HELP ? PLZZZZZZ [message #86140 is a reply to message #86137] Fri, 03 September 2004 01:52 Go to previous message
domingo
Messages: 54
Registered: June 2004
Member
Thanks a lot shubh .
Its working
Domingo
Previous Topic: How can I send Report Output To Excel
Next Topic: PLZ HELP ME ! URGENT !
Goto Forum:
  


Current Time: Sun May 19 07:45:53 CDT 2024