Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Howdy howdy...

 

Quick question: Is it possible to assign a global variable as a name in the Perform Script command, e.g., Perform Script [Specified: By name: $$_Blivet ; Parameter: ] ? I don't see anything in the documentation ( https://fmhelp.filemaker.com/help/16/fmp/en/index.html#page/FMP_Help/perform-script.html ) about it and I couldn't get it to work as is or with using Evaluate ($$_Blivet) either, so is it "do-able" or no?

 

Cheers,

Rich

Posted (edited)

Hmmm...

Your profile says version 19, yet you point to a help page for version 16.

Perform Script by Name is an option available in version 17 and higher, so it's not clear where we stand. Also:

2 hours ago, WF7A said:

I couldn't get it to work as is

is not a good description of a problem. What exactly did happen? If there was an error message, please reproduce it verbatim.

In general, if you are in version 17 or higher, and the $$_Blivet variable contains the name of the script (as string), you should be able to enter $$_Blivet into the calculation window and be done. The Evaluate() function has no role to play here.

Do  note that when using this option you are responsible for updating the process that sets the variable if you modify the script's name.

 

Edited by comment
Posted (edited)

Actually, I'm running v20.1.2.204, but the newest version isn't available in this site's Account / Profile's pop-up menu. I grabbed the help menu link from v16 'cause I assumed Perform Script wouldn't have changed in the last handful of versions. (My mistake for assuming _anything_.)

I'm beginning to think, though, that I may have to reinstall this version to see if there's a bug since when I pull up the available scripts, there isn't a Perform Script By Name choice. (See below.) I also sometimes can't access the "blue dot" on the right side of a command to enter parameters--I open and close the Show or Hide Steps Pane but to no avail; I have to quit FMP and reboot it for it to come back.

I've also included the error message I get when I try running Perform Script with a global variable.

Screenshot 2023-07-24 at 1.12.15 PM.png

Screenshot 2023-07-24 at 1.14.00 PM.png

Screenshot 2023-07-24 at 1.22.04 PM.png

Edited by WF7A
Posted (edited)

The error message suggests that the variable does not contain the correct script name. We don't see how you set the variable, nor a full list of your script names, so...

Does the attached test file work for you?

 

test.fmp12

Edited by comment

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