Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi

when using the perform script step within an existing script, is it possible to select the new script to perform dynamically via a variable?

My thinking is as follows:-

My initial script sets variables and calls various dialog boxes:-

I then plan to have various different scripts set up for the various reports I need to export

so if

$$Variable=1 then perform script1

$$Variable=2 then perform script2

Regards

Dave

Posted

Sure. It would be a series of:

If [ $$variable = 1 ]

Perform Script [ some script ]

Else If [ $$variable = 2 ]

Perform Script [ some other script ]

Else

Beep

Show Custom Dialog [ "Script name error" ]

End If

I highly recommend an Else to tell you if your variable tests match no scripts.

There is no way (yet) in native FileMaker to "perform script by name" (though, oddly enough, external tools like AppleScript, or any other tool which can call a FileMaker script, all call FileMaker scripts by name; so that is another option; though then totally dependent on knowing the name).

This topic is 5095 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.