spankalee Posted July 26, 2005 Posted July 26, 2005 So you can change to a layout based on a calculation, but I can't find anyway to call a script by a calculation. I'd like to store a script name in a record, and when a button is pressed on that record call that script. Anyway to do this? I'm about to try using the MacExample plugin with XMpl_StartScript
Ender Posted July 26, 2005 Posted July 26, 2005 There's no equivelant built-in way to do this with scripts. You might use a series of If-Else statements in a main calling script that checks the values of a field and branches accordingly: If [ gScriptToCall = "Go to Main" ] Perform Script [ Go to Main ] Else If [ gScriptToCall = "Go to Personnel" ] Perform Script [ Go to Personnel ] ... End If
spankalee Posted July 26, 2005 Author Posted July 26, 2005 Yeah, I figured that might be the answer, but I don't think an if is gonna work for what I want to do. I'm gonna try the XMpl_StartScript, but I wonder what the best way to trigger it is. With a Set Field? Thanks.
Recommended Posts
This topic is 7407 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