Scripts Flashcards
Perform Script [“script name”; Parameter: parameter]
Control Script Steps
Performs a script that is defined in the current file or in another FileMaker Pro file.
Perform Script On Server [Wait for completion; “script name”; Parameter: parameter]
Control Script Steps
Performs a script on the server that is hosting the current file.
*Perform Script on Server is not aware of the client’s current layout or record
Pause/Resume Script [Indefinitely/Duration (seconds) n]
Control Script Steps
Pauses a script indefinitely or for a specified length of time so the user can perform other tasks in the current window.
Exit Script [Result: value or formula]
Control Script Steps
Forces the running script, sub-script, or external script to stop immediately. If used in a sub-script, returns to the main script with or without an optional script result.
Halt Script
Control Script Steps
Forces all running scripts, sub-scripts, or external scripts to stop immediately
If [Boolean calculation]
Evaluates a Boolean calculation and performs a conditional action based on that evaluation.
Else If [Boolean calculation]
Evaluates a Boolean calculation and performs a conditional action based on that evaluation, like the If script step.
Else
Performs an alternate set of script steps when an If script step or Else If script step evaluates to false.
End If
Marks the end of an If script step structure
Loop
Repeats a set of script steps to perform a batch processes such as exporting contents from all records in a found set.
Ex. Copies the contents of the Customers::Work Phone to Customer::Day Contact in all records.
Go to Record/Request/Page [First]
Loop
Set Field [Customers::Day Contact; Customers::Work Phone]
Go to Record/Request/Page [Next; Exit after last] End Loop
Exit Loop If
Exit Loop If [Boolean calculation]
End Loop
Marks the end of a Loop script structure.
Allow User Abort [on or off]
Prevents users from stopping a script if set to Off
Set Error Capture [on or off]
Suppresses or enables normal FileMaker Pro alert messages if set to On
Set Variable [variable name {[repitition number]}; Value: value or formula]
Control Script Steps
Sets a local or global variable to a specified value.
$local
$$global
Set Script Animation [on or off]
Control Script Steps
Enables or disables animations while a script is running
*Off by default
Install OnTimer Script [“script” ; Parameter : script parameter Interval : number]
Control Script Steps
Runs a specified script at the specified interval. Installs a timer on the active window. After the specified interval has passed, the next time the application is idle, runs the specified script.
Go to Layout [“layout name or layout number”]
Navigation script steps
Switches to a specified layout
Note: The “Go to Layout” script step can only take you to layouts defined in the same file as the script itself. To go to layouts in an external file, define a script in that file using the Go to Layout script step, and call that script from the first file using the “Perform script” script step.