Script Steps Reference

Table Of Contents
Fields script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 57
value in Entry Options is not changed, and may not be in sequence with the newly
reserialized records.
If the field to be replaced was set up for auto-entry of a serial number and Prohibit
modification of value is not selected, FileMaker Pro will still put sequential numbers in
the selected field, but will do so starting with the next number to be automatically
entered.
Replace with calculated result displays the Specify Calculation dialog box, where you
can enter a calculation to be used as the replacement value.
Compatibility
This script step is also supported in web publishing and in a FileMaker Server scheduled script.
Notes
This script step can also be used to reserialize a field in every record in the current
found set.
When you use the Replace Field Contents script step, the data must be committed first
before the operation is performed, or you may get unexpected results. For example, if a
field value is modified and a replace is attempted before the data is committed, then the
replace will be based on the old data rather than the modified data. (For more
information about committing data, see
Committing data in records.)
Examples
Sort Records [Restore]
Go to Record/Request/Page [First]
Replace Field Contents [No dialog; script examples::Serial Number; Serial
numbers]
Relookup Field Contents
Purpose
Copies new values from the lookup source field into the records that make up the current found set.
Format
Relookup Field Contents [No dialog; <table::field>]
Options
Perform without dialog prevents a dialog box from displaying when the script step
executes that lets the user confirm field information.
Select Go to target field or click Specify to specify the field that is the target of the
relookup operation. FileMaker
Pro moves the cursor to the field you specify. This must be
the match field for the relationship upon which the lookup is based, not the Lookup source
or target field. If no field is selected, Relookup Field Contents returns an error code that can
be captured with the
Get(LastError) function.