Script Steps Reference
Table Of Contents
- Contents
- About script steps
- Script steps reference (alphabetical list)
- Control script steps
- Perform Script
- Pause/Resume Script
- Exit Script
- Halt Script
- If
- Else If
- Else
- End If
- Loop
- Exit Loop If
- End Loop
- Allow User Abort
- Set Error Capture
- Set Variable
- Install OnTimer Script
- Navigation script steps
- Go to Layout
- Go to Record/Request/Page
- Go to Related Record
- Go to Portal Row
- Go to Object
- Go to Field
- Go to Next Field
- Go to Previous Field
- Enter Browse Mode
- Enter Find Mode
- Enter Preview Mode
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Index
- Insert From Last Visited
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Object (Windows)
- Insert File
- Update Link (Windows)
- 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
FILEMAKER SCRIPT STEPS REFERENCE 152
• You can send html data to a web viewer by including the data in a URL, using the
following format:
data:[<mediatype>][;base64],<data>
Where the following syntax applies:
dataurl = "data:" [ mediatype ] [ ";base64" ] "," data
mediatype = [ type "/" subtype ] *( ";" parameter )
data = *urlchar
parameter = attribute "=" value
More information about the “data URL scheme” can be found on the web.
• In FileMaker Pro 8.5, data URLs will work on Mac OS_X but not in Windows. In addition,
FileMaker
Pro supports only UTF-16 character encoding. Character data encoded using
other methods will not display the target of the URL.
Examples
The following example resets the web viewer named “Web Viewer 1” to its originally specified web
address:
Set Web Viewer [Object Name: "Web Viewer 1"; Action: Reset]
The following example displays the FileMaker, Inc. homepage in the active web viewer, or displays
an error message if the active object is not a web viewer:
If [GetLayoutObjectAttribute( Get (ActiveLayoutObjectName);
"objectType") = "web viewer"]
Set Web Viewer [Object Name: Get (ActiveLayoutObjectName);
URL: "http://www.filemaker.com"]
Else
Show Custom Dialog ["This object is not a web viewer."]
End If
The following example uses the data URL scheme to display a small icon in a web viewer named
WV2:
Set Web Viewer [Object Name: "WV2"; Action: URL "data:image/
gif;base64,R0lGODlhFwAMAKEAAL+/v///
AAAAUwAAACH5BAEAAAAALAAAAAAXAAwAAAI7hBGHapHcXJKPumizpigI+QliSH0XIjokWJ6oB
4+qt0Zmaqpjesxz7st1YD8ZEbhJajAuDgfSYTx60wIAOw=="]
Related topics
Script steps reference (alphabetical list)
Contents
Open URL
Purpose
Allows the user to open a URL.
Format
Open URL [No dialog; <URL>]