User manual

Table Of Contents
Using formulas and functions
11-13
For example, LayoutNames (“Clients”) always returns the
names of the layouts in the Clients file. If you have a field named File,
LayoutNames (File) returns the names of the layouts in the Clients
file when you type Clients in the File field.
External functions
Use external functions to access FileMaker Pro plug-ins such as
FileMaker Pro Web Companion. Plug-ins add features to
FileMaker Pro. For more information, see “Setting up plug-ins” on
page A-4.
Enabled plug-ins that support external functions appear in the list of
functions in the Specify Calculation dialog box (when you choose
View External functions or View all by type from the list). If there are no
plug-ins enabled, or the ones enabled do not support external
functions, you see only the generic external function definition:
External (name, parameter).
FileMaker Pro Web Companion external functions
When you publish a database using FileMaker Pro Web Companion,
use FileMaker Pro Web Companion external functions to:
1 check the version of the Web companion
1 capture information about visitors to your database
1 translate information in your database to HTML or HTTP
Note The following functions are only available if FileMaker Pro
Web Companion is installed and enabled on your computer. See
chapter 14 for more information about the Web Companion.
If third-party plug-ins are enabled, other external functions might
also appear.
Syntax Definition
DatabaseNames Returns the names of the currently opened
databases. (Uses no parameters.)
FieldBounds (database name,
layout name, field name)
Returns the location and size of a specified
field.
FieldNames (database name,
layout name)
Returns the names of fields in the database
and layout you specify. Or, type two quotes
("") in place of a layout name to return the
names of all fields in the specified database.
FieldRepetitions (database
name, layout name, field name)
Returns the number of repetitions and
orientation of a specified repeating field.
FieldStyle (database name,
layout name, field name)
Returns:
1 how a specified field is formatted on a
layout (for example, as radio buttons)
1 whether a value list is associated with the field.
FieldType (database name,
field name)
Returns the field definition for a specified
field.
LayoutNames (database name) Returns the names of layouts in a specified
database file.
RelationInfo (database name,
relationship name)
Returns the name of the related file for a
specified relationship.
RelationNames (database
name)
Returns the relationships defined in a
specified database file.
ScriptNames (database name) Returns the scripts defined in a specified
database file.
ValueListItems (database
name, value list name)
Returns the values defined for a specified
value list.
ValueListNames (database
name)
Returns the value lists defined in a specified
database file.
Syntax Definition
External ("Web-Version", 0) Returns the version of FileMaker Pro Web
Companion that loads when you open
FileMaker Pro
External ("Web-
ClientAddress", 0)
Returns the domain name (for example,
www.filemaker.com) of a Web user whose HTTP
request is currently being processed by
FileMaker Pro Web Companion. Returns the Web
user’s IP address if the domain name is not available.