panchristo Posted September 22, 2010 Posted September 22, 2010 I'm not quite sure if "Interrupting triggers" is a correct title,so here's the question: When you have a OnRecordLoad script trigger set to perform a Refresh script, is it possible to trace if another script is already running and avoid executing the command in order to freeze the window and minimize flicker?
bcooney Posted September 22, 2010 Posted September 22, 2010 Scripts do not run concurrently. Why do you need a Refresh in an OnRecordLoad?
David Jondreau Posted September 22, 2010 Posted September 22, 2010 When I have a script that trigger another script that I don't actually want to run, I include a Set Variable[$$triggerOff;1] step at the start and a Set Variable[$$triggerOff; ""] at the end. In the triggered script, I add: If[$$triggerOff] Exit Script[] End If This comes up for me frequently with the New Window[] script step which triggers on LayoutLoad scripts.
panchristo Posted September 22, 2010 Author Posted September 22, 2010 The onrecordload is used to refresh the screen and update a global variable for a record row hilighter.
panchristo Posted September 22, 2010 Author Posted September 22, 2010 When I have a script that trigger another script that I don't actually want to run, I include a Set Variable[$$triggerOff;1] step at the start and a Set Variable[$$triggerOff; ""] at the end. In the triggered script, I add: If[$$triggerOff] Exit Script[] End If This comes up for me frequently with the New Window[] script step which triggers on LayoutLoad scripts. Hmm, sounds like a nice solution, I'll look into it further, THANKS!
Recommended Posts
This topic is 5176 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 accountSign in
Already have an account? Sign in here.
Sign In Now