Jump to content

This topic is 4383 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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

This topic is 4383 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.