Normal Topic On Element Exit (Read 696 times)
Wilder
Member
*
Offline



Posts: 25
Joined: Jun 11th, 2015
On Element Exit
Jun 17th, 2015 at 9:47pm
Print Post Print Post  
I have a screen that is used to input import parameters and am using "on element Exit" as the trigger.
The program behind the element will not run unless there is a "DUMMY" element on the screen.

As if On Element Exit is not running if there is not way to exit the field.

Had some unused field elements on the screen and everything was working.  Removed the unused field elements and everything quit working. 

Put a Dummy filed on the screen after the trigger element and everything works now.

Is this a know problem or have I found something new?

Foye
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: On Element Exit
Reply #1 - Jun 18th, 2015 at 7:31pm
Print Post Print Post  
Hello,

If there is no element after the current one in the tab order, pressing tab or enter will not leave the element so On Element Exit will not fire. If you were to press Shift Tab or click into another element, the On Element Exit event would fire as you would be leaving the last element.

What you can do if you do not want to modify the behavoir of your form or use a command button, is to add a small 1x1 unbound element that is the last element in the tab order. This way when you press tab, focus has a place to go and the On Element Exit event will fire.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged