Function overview
Prototype
EnclosingObjects (
_objectName )
Parameters
_objectName
Description
Tags:
Layout objects Layout
returns the list of all enclosing objects of a layout object, in reverse order. (smallest first)
Requires Agnès Barouh's CustomList
http://www.briandunning.com/cf/747
Not recursive
Examples
Sample input
fieldObjectName
Sample output
rectangleName¶PortalName¶TabName
Function code
/*
EnclosingObjects ( _objectName )
by Fabrice Nordmann
v.1, Dec 2007
returns the list of all enclosing objects of a layout object, in reverse order. (smallest first)
Requires Agnès Barouh's CustomList
http://www.briandunning.com/cf/747
Not recursive
*/
Let ( $x = _objectName
;
CustomList ( 1 ; ValueCount ( LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ))) ; "case ( not isempty ( $x ) ; getlayoutobjectattribute ( $x ; \"enclosingobject\" ) & let([ $x = getlayoutobjectattribute ( $x ; \"enclosingobject\" )];\"\"))" )
)
// ===================================
/*
This function is published on FileMaker Custom Functions
to check for updates and provide feedback and bug reports
please visit http://www.fmfunctions.com/fid/92
Prototype: EnclosingObjects( _objectName )
Function Author: Fabrice (http://www.fmfunctions.com/mid/37)
Last updated: 14 May 2009
Version: 1.2
*/
// ===================================
/*__LITBR__EnclosingObjects ( _objectName )__LITBR__by Fabrice Nordmann__LITBR____LITBR__v.1, Dec 2007__LITBR____LITBR__returns the list of all enclosing objects of a layout object, in reverse order. (smallest first)__LITBR____LITBR__Requires Agnès Barouh's CustomList__LITBR__http://www.briandunning.com/cf/747__LITBR____LITBR__Not recursive__LITBR__*/__LITBR____LITBR__Let ( $x = _objectName__LITBR__;__LITBR__CustomList ( 1 ; ValueCount ( LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ))) ; "case ( not isempty ( $x ) ; getlayoutobjectattribute ( $x ; \"enclosingobject\" ) & let([ $x = getlayoutobjectattribute ( $x ; \"enclosingobject\" )];\"\"))" )__LITBR__)__LITBR____LITBR__// ===================================__LITBR__/*__LITBR____LITBR__ This function is published on FileMaker Custom Functions__LITBR__ to check for updates and provide feedback and bug reports__LITBR__ please visit http://www.fmfunctions.com/fid/92__LITBR____LITBR__ Prototype: EnclosingObjects( _objectName )__LITBR__ Function Author: Fabrice (http://www.fmfunctions.com/mid/37)__LITBR__ Last updated: 14 May 2009__LITBR__ Version: 1.2__LITBR____LITBR__*/__LITBR__// ===================================
Login or register to comment
Create a new account with fmcustomfunctions.com or login to post a comment.