Instant Web Publishing Guide

Table Of Contents
Chapter 4
|
Designing a database for Instant Web Publishing 35
Script Steps
The script steps below function differently on the web than in the desktop application. For information on
all script steps, see FileMaker
Pro Help.
Script step Behavior in Instant Web Publishing
Perform Script Scripts cannot perform in other files, unless the files are open and shared with Instant
Web Publishing on the host or server machine.
Allow User Abort Determines how unsupported script steps are handled. Enable to stop scripts from
continuing, and disable to skip over unsupported steps. See above for more details.
Set Error Capture This is always enabled (On) with Instant Web Publishing. Therefore, alert messages
are always suppressed when scripts are run.
Pause/Resume Script The script pauses until the user clicks Continue or executes the Resume script step by
clicking a scripted button, or the session times out.
Sort Sorts must be saved with the script to execute in Instant Web Publishing.
Open URL Opens a complete URL from a text or calculation field in a new browser window
(URL must contain “http://” if the target URL starts with “http://”).
Go to Field In Browse mode, switches a record into editing mode and sets the insertion point in
the specified field.
Commit Records/Requests Submits the record to the database.
New Window Does not open a new physical browser window, but instead opens a new virtual
window within the existing browser window. Although each virtual window can
display a different layout, table, found set, or sort order as is possible in
FileMaker
Pro windows, web users can only view one virtual window at a time.
Select Window Brings the specified virtual window to the front.
Close Window Closes the specified or current virtual window to reveal the window underneath it.
Re-Login Lets the user log into the database using a different account and password without
closing and reopening the file. However, for web users you must select the Perform
without dialog checkbox and specify an account name and password in this script step.
Refresh Window Updates the content area of the browser window. Select Flush cached join results to
update the display of dynamic or complex related field content.
Set Web Viewer The Reset action resets a web viewer to its originally specified web address, but it
does not clear the web viewer’s Back and Forward history. The Reload action reloads
the web page using the most recently set URL. This URL is either the one initially
defined for the web viewer or the one most recently set with the Go to URL action,
not necessarily the URL of the currently displayed web page.
When using the Go Back and Go Forward actions, Set Web Viewer behaves as an
unsupported script step as described above. For these actions, the web viewer
displays the web page of the most recently set URL and the Get(LastError) function
returns “Command is unknown.”
Exit Application Closes all virtual windows, ends the user’s session, and takes the user back to the
Database Homepage.