Script Steps Reference

Table Of Contents
Fields script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 89
Insert From Last Visited
Purpose
Pastes data from the last active record into the specified field in the current record or find request.
Format
Insert from Last Visited [Select; <table::field>]
Options
Select entire contents replaces the contents of a field. If you do not select this option,
Insert From Last Visited inserts the result at the insertion point or at the end of the field's
existing data.
Go to target field specifies the field to paste into.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
Use this script step to ensure consistency and automate data entry. The active record is the last
record where FileMaker
Pro performed some activity, such as pasting text or moving into a field with
the
Go to Field script step.
Notes
If the specified field does not exist on the layout where the script is being performed, Insert
From Last Visited returns an error code which can be captured with the Get(LastError)
function.
If you manually select field data before you run this script step in FileMaker WebDirect, the
script step performs as if you did not make a selection. To select field data before you run
this script step in FileMaker
WebDirect, use the Set Selection script step.
Example 1
Creates a new record and inserts the customer name from the last record that was viewed.
New Record/Request
Insert from Last Visited [Invoices::Customer Name]
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server Yes
FileMaker Go Yes
Custom Web Publishing Yes
FileMaker WebDirect Yes
Runtime solution Yes