SeedCodeComplete3

Object Names

Layout Object Names in SeedCode Complete

Object naming is an important part of SeedCode Complete and is important to much of its functionality. ObjectNavigation relies heavily on Object Names. We also use Object Names to determine if an Object is in focus or if a certain Slide Panel is at the front using the GetLayoutObjectAttribute() function. Changing these names can break references in scripts and on objects themselves like the Hide calculation so should generally be avoided.

Copying and Duplicating Named Layout Objects

FileMaker enforces that Object names are unique on a particular layout, so there's no question which Object is being references, so if you Copy or Duplicate an Object on a layout, a suffix like "2" or"copy" will be added to the Object Name likely breaking any references to that object from any scripts or calculations. It's not uncommon to do this and then delete the original properly named object, even for experienced developers, so it's a good idea to double check your object names as you go.

Using the expression LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ) ) will produce a list of objects so you can scan for any troublemakers in the data viewer.

Looking For Objects With Unintended Names

Although far from foolproof, we've attempted to mitigate this issue for our navigation routine with the helper script Get Object Name (cell; object) This script will attempt to find the actual object based on the desired name, and return it for the Go To Object step, etc.. You can pass this script two values (so it uses the #parameters method for passing these parameters. The cell parameter is the name of the enclosing object to help narrow the search.

Looking For Objects With Unintended Names

(855) SEEDCODE
[email protected]
Follow us: