Script Steps Reference

Table Of Contents
60 FileMaker Script Steps Reference
Description
In Browse mode, makes a duplicate of the current record. In Find mode, duplicates the
current find request.
If the record has a field set up for automatic entry of values, Duplicate Record does not
duplicate the value in the field of the current record. In that case, FileMaker Pro generates
and enters a new value for the duplicated record.
To use the Duplicate Record/Request script step with portal rows, first use the Go to Portal
Row script step on page 33, and then use the Duplicate Record/Request step. Using the
Duplicate Record/Request step when a portal row is selected will duplicate the selected
row in the related table. This option is only available when the option to allow creation of
related records has been enabled for the relationship.
Example
Perform Find [Restore]
Go to Record/Request/Page [Last]
Duplicate Record/Request
Delete Record/Request
Format
Delete Record/Request [No dialog]
Options
Perform without dialog prevents the deletion confirmation dialog box from displaying
when the script step executes.
Web compatibility
This script step is web-compatible.
Description
In Browse mode, deletes the current record. In Find mode, deletes the current find request.
Important You cannot undo a Delete Record/Request script step.
To delete Do this
A master record Make sure that the record you want to delete is active (use navigation script steps),
and then use Delete Record/Request. If the current layout contains a portal
, use Exit
Record/Request to make sure that no related record
is selected, then use Delete
Record/Request.
A related record Use the Delete Portal Row script step on page 61. If Delete Record/Request
executes when a related field
in a portal is selected, the user sees a dialog box that
asks whether the master record or related record
should be deleted. (Note that Allow
deletion of portal records must also be selected in the Portal Setup dialog box to
enable deletion of related records.)
A find request Make sure that the find request you want to delete is active (use navigation script
steps), and then use Delete Record/Request.