Script Steps Reference

Table Of Contents
Fields script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 92
Important For better performance in FileMaker WebDirect, be sure that Select entire contents is
selected.
Notes
Insert From URL supports UTF-8 only.
In FileMaker WebDirect:
If the With dialog option is On, this script step runs as if Automatically encode URL is
selected.
If Select entire contents is deselected, and Insert From URL inserts content into a text
field, the contents from the URL are appended to the text field. Multiple fetches can
result in unpredictable results and slower performance.
httppost and httpspost are custom schemes defined by FileMaker Pro that enable you to
send HTTP POST data. See About importing data using an HTTP request.
If the specified field doesn’t exist on the layout where the script is being performed, Insert
From URL returns an error code, which can be captured with the Get(LastError) function.
Example 1
Accesses a website and inserts a PDF into the Sales Report container field.
Insert from URL [With dialog: Off; Customers::Sales Report; “http://
www.filemaker.com/sales_report.pdf”]
Example 2
Inserts a map showing the customer's address in the Address Map container field.
Insert from URL [With dialog: Off; Customers::Address Map; "http://
maps.google.com/maps/api/staticmap?center=" & Customers::Address &
"&zoom=14&markers=" & Customers::Address & "&size=256x256&sensor=false"]
Example 3
Inserts the HTML code for http://www.apple.com.
Insert from URL [With dialog: Off; Customers::HTML Website Code; "http://
www.apple.com"]