Help

Table Of Contents
FILEMAKER PRO HELP 1014
Set Field By Name [If ( Customers::Country = "Japan" ; Customers::National
Statistics ; Customers::World Statistics ); Sum ( Invoices::Grand Total )]
Example 2
Demonstrates when to use Set Field By Name instead of Set Field to simplify scripts.
#With Set Field, an If statement with multiple Else If steps is needed
#to determine which field on the Customers table to update
#with information from Credit Collection::Phone Number.
If [Credit Collection::Call Location = "Work"]
Set Field [Customers::Work Phone; Credit Collection::Phone Number]
Else If [Credit Collection::Call Location = "Home" ]
Set Field [Customers::Home Phone; Credit Collection::Phone Number]
Else If [Credit Collection::Call Location = "Mobile" ]
Set Field [Customers::Mobile Phone; Credit Collection::Phone Number]
End If
#A single Set Field By Name script step can perform the same task
#by using a calculation to determine the target field.
Set Field By Name [GetFieldName ( Evaluate ( Credit Collection::Call
Location & " Phone" ) ); Credit Collection::Phone Number]
Related topics
Script steps reference (alphabetical list)
Script steps reference (category list)
Set Next Serial Value
Purpose
Resets the next serial value in an auto-entry serial number field.
Format
Set Next Serial Value [<table::field>; <value or formula>]
Options
Select Specify target field or click Specify to specify the serial number field on which the
script step will operate. The field you specify must be defined as an auto-entry serial
number field.
Calculated result: Click Specify to enter the next serial value or create a calculation to
determine the next serial value.
Compatibility
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script Yes