Functions Reference

Table Of Contents
Chapter 8
|
Logical functions 127
content - returns the content of the specified object as follows. For:
web viewers - returns the current content (such as HTML code)
fields - returns the field data formatted using the specified object's properties
text objects - returns the text (including text from merge fields)
graphics - returns image data such as Container data type
For all other objects, returns an empty string.
enclosingObject - returns objectName of the enclosing layout object. Otherwise,
returns an empty string. Only groups, tab panels, and portals can contain other objects.
containedObjects - returns a list of named objects contained within objectName.
Only groups, tab panels, and portals can contain other objects.
Notes
If objects are set to auto-resize, attributes returned are based on the resized bounds
of the object in its current state.
If objects are located above the tool bar or to the left of the status area, negative
coordinate values are returned.
The hasFocus, containsFocus, source, and content attributes behave
differently in Instant Web Publishing. For more information, see the FileMaker Instant
Web Publishing Guide, which is located in the folder where FileMaker Pro is installed.
Examples
GetLayoutObjectAttribute("CancelButton","objectType") returns group
(if the button does not have an action or script associated with it) or returns button group
(if the button has an action or script associated with it).
GetLayoutObjectAttribute("CancelButton","bounds") returns
138 24 391 38 0
GetNthRecord
Format
GetNthRecord(fieldName;recordNumber)
Parameters
fieldName - any related field or repeating field, or an expression that returns a field or a
repeating field.
recordNumber - the record number from which you want data.
Data type returned
text, number, date, time, timestamp, container