Script Steps Reference
Table Of Contents
- Contents
- Script steps reference (alphabetical list)
- About script steps
- Control script steps
- Navigation script steps
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Device
- Insert From Index
- Insert From Last Visited
- Insert From URL
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Audio/Video
- Insert PDF
- Insert File
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Glossary
Control script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 14
Perform Script On Server
Purpose
Performs a script on the server that is hosting the current file.
Format
Perform Script On Server [Wait for completion; "<script name>"; Parameter:
<parameter>]
Options
• To select a script, click Specify and choose the script from the list.
For Optional script parameter, type the text you want to use or click Edit and use the Specify
Calculation dialog box to build a more complex parameter.
• Wait for completion pauses the script on the client until the sub-script called by Perform
Script On Server is completed on the host. Wait for completion must be selected to pass a
script result or error code from the host to the client. Use the Get(ScriptResult) function to
capture a result or the Get(LastError) function to capture an error code.
Compatibility
Originated in
FileMaker Pro 13.0
Description
The current file must be hosted on FileMaker Server. Otherwise, Perform Script On Server returns
an error. Scripts performed on the host are treated as FileMaker
Server scheduled scripts.
Scripts performed by Perform Script On Server:
• are not aware of the client’s current layout or record. If necessary, use the Go to Layout
script step and the Go to Record/Request/Page script step to specify which layout and
record to act on.
• can only access global variables that are defined after the script begins running on the host.
• support script parameters and script results up to 1 million characters.
Note If records are locked by a client, scripts performed on the host cannot access uncommitted
data or change the contents of those records.
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script No
FileMaker Go Yes
Custom Web Publishing Yes
FileMaker WebDirect Yes
Runtime solution No