|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
return to form - cannot trigger a New eventHi, I think this has come up before. I have an on load event in a form and it is enables so fires ok when the form is opened its in a loop and works each time the form is opened ... except There is a button on that form that opens a new window as a new process. when the process is complete then the window is closed and the user is returned to the original form. I want to run some code at that point on the original form. on load does not fire here. I've tries all other events that sound as if they might, eg 'on getting focus' but no joy, the events are enabled in the form properties actions. I can get on mouse move to run the code but this is OTT. IT keeps running when ever the user moved the mouse... any feedback much appreciated John John convey ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Better, faster, more powerful code. Learn how without leaving the office! http://www.4d.com/support/training.html To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
|
|
Re: return to form - cannot trigger a New eventHow about using the On Activate event? That should trigger an action
when the original form becomes the frontmost form. Allen john convey wrote: > > > Hi, > > > I think this has come up before. > > I have an on load event in a form and it is enables so fires ok when the > form is opened its in a loop and > works each time the form is opened ... except > > There is a button on that form that opens a new window as a new process. > when the process is complete > then the window is closed and the user is returned to the original form. > > I want to run some code at that point on the original form. > on load does not fire here. > > I've tries all other events that sound as if they might, eg 'on getting > focus' but no joy, > the events are enabled in the form properties actions. > I can get on mouse move to run the code but this is OTT. IT keeps > running when ever the user moved the mouse... > > any feedback much appreciated > > John > John convey > > ********************************************************************** > 4D Basics hosted by 4D, Inc. http://www.4D.com/ > > Better, faster, more powerful code.Learn how without leaving the office! > http://www.4d.com/support/training.html > > To Unsubscribe: mailto:4DBasics-off@... > ********************************************************************** > > ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Better, faster, more powerful code. Learn how without leaving the office! http://www.4d.com/support/training.html To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
|
|
Re: return to form - cannot trigger a New eventHi John,
On Load only fires when the form is "loaded", e.g. when opening it for the first time or when moving from record to record. It does not fire when the window is activated. As Allen said, you can use On Activate but remember that will fire any time that window is activated (e.g. if the user minimizes the front-most one) so be sure to check if the other process is still running. Kind regards, Josh Fletcher john convey wrote: > I want to run some code at that point on the original form. > on load does not fire here. -- Josh Fletcher Technical Services Team Member 4D, Inc. ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Better, faster, more powerful code. Learn how without leaving the office! http://www.4d.com/support/training.html To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
|
|
Re: return to form - cannot trigger a New eventJosh,
thanks for that. I see seem to be able to do this by not running as a new process and calling then command however it would be better if it were a process so will try this > so be sure to check if the other process is still running. thanks thats a very good point .... John john convey sci-do communications On 6 May 2008, at 16:56, Josh Fletcher (4D, Inc.) wrote: > Hi John, > > On Load only fires when the form is "loaded", e.g. when opening it for > the first time or when moving from record to record. It does not fire > when the window is activated. > > As Allen said, you can use On Activate but remember that will fire any > time that window is activated (e.g. if the user minimizes the front- > most > one) so be sure to check if the other process is still running. > > Kind regards, > > Josh Fletcher > > john convey wrote: >> I want to run some code at that point on the original form. >> on load does not fire here. > > -- > Josh Fletcher > Technical Services Team Member > 4D, Inc. > > ********************************************************************** > 4D Basics hosted by 4D, Inc. http://www.4D.com/ > > Better, faster, more powerful code. > Learn how without leaving the office! > http://www.4d.com/support/training.html > > To Unsubscribe: mailto:4DBasics-off@... > ********************************************************************** > > ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Better, faster, more powerful code. Learn how without leaving the office! http://www.4d.com/support/training.html To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
| Free Forum Powered by Nabble | Forum Help |