January 31, 201312 yr Hello! Thank you for this very helpful community I am using the OnLayoutExit trigger on one of my databases. On the same layout I'm using a go to related record script that goes to another layout. 1. With OnLayoutExit ON the Go to related record button doesn't work properly 2. With OnLayoutExit OFF the Go to related record button works properly I searched around and I didn't find a solution for this. What do you recommend? Getting rid of the OnLayoutExit script reduces efficiency in my database, I want to avoid having to turn it off. Do I have to create a specific script for each GTRR button and suppress the triggered script?
January 31, 201312 yr Hi, Just add the a global variable to your script, for example: Avoid that something happens when you leave the layout after click of a button: Set Variable [$$noTRIGGER]=1 ...your script... Set Variable [$$noTRIGGER]="" // reset In your OnLayoutExit script add on top If [$$noTRIGGER = 1] exit script End If ..your script If you just want to use the button with GTTRR without extra script you are also able to set the $$noTRIGGER via elegantly: Use the window name field: Let ( $noTRIGGER = 1 ; "" ), but you'd need some point to reset $noTRIGGER - maybe on layout (re-)entry. Hope this will help Best, Alexander
Create an account or sign in to comment