Home » Developer & Programmer » Forms » How to see which was the previous form
How to see which was the previous form [message #301084] Tue, 19 February 2008 03:00 Go to next message
isha1812
Messages: 16
Registered: January 2008
Junior Member
Hi

Is there any system variable which tells the previous form.. i.e. the form from which the current form is opened
Re: How to see which was the previous form [message #301265 is a reply to message #301084] Tue, 19 February 2008 22:15 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I don't think so. Store the name of the current form in a global variable before you do the call and then read it after.

David
Re: How to see which was the previous form [message #304713 is a reply to message #301084] Thu, 06 March 2008 05:53 Go to previous messageGo to next message
toughboy
Messages: 5
Registered: February 2008
Location: India
Junior Member
Hi

you can use below code in called form.

b:=GET_APPLICATION_PROPERTY(CALLING_FORM);
messsage(b);

Raj
Re: How to see which was the previous form [message #304716 is a reply to message #304713] Thu, 06 March 2008 06:00 Go to previous messageGo to next message
isha1812
Messages: 16
Registered: January 2008
Junior Member
Thanks!!
i will just try this
Re: How to see which was the previous form [message #304820 is a reply to message #304716] Thu, 06 March 2008 17:24 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Remember
CALLING_FORM
- Returns the name of the calling form if the current form was invoked by the CALL_FORM built-in. If the current form is not a called form, Form Builder returns NULL.

You will have to test to see what is returned when you use 'open_form' or 'new_form'.

David
Previous Topic: Login Form
Next Topic: webutil
Goto Forum:
  


Current Time: Sun Feb 09 22:19:00 CST 2025