Home » Developer & Programmer » Forms » CALL_FORM
CALL_FORM [message #79402] Thu, 06 June 2002 14:35 Go to next message
Tyler
Messages: 123
Registered: January 2002
Senior Member
Hello All,

My issue is that if I have a form open and I'm currently using another form and then I 'call' the other form, it opens a new copy instead of just 'getting' the open one. Is there a way to check to see if the form is open and if it is, then get it, and if it's not, then open it???

Thanks
T
Re: CALL_FORM [message #79453 is a reply to message #79402] Tue, 11 June 2002 10:06 Go to previous message
rosey
Messages: 13
Registered: May 2002
Junior Member
Try this:

1. create a flag variable v_flag and initialize it to 'close'.

DECLARE
v_flag VARCHAR2(5) := 'close';

2. When you're calling the form:
IF v_flag = 'close' THEN
CALL_FORM ('FORM_NAME');
v_flag := 'open';
ELSE
GO_FORM ('FORM_NAME');

hope that helps!
Rosey.
Previous Topic: Reports Templates
Next Topic: forms 6i Book
Goto Forum:
  


Current Time: Thu Apr 25 05:08:50 CDT 2024