NameFromID ( _ID ; _Type ; _File )
Rate this function: Average rating: 3.3 (4 votes) Discuss this Custom Function
Thomas Seidler, The Good Book Company
http://www.harmlesswise.com/it
Gets names from static FileMaker IDs for layouts, scripts, fields, tables, valuelists
Sample Input:
NameFromID ( 432 ; "Layout" ; "" )
assumes you ran sister function and stored the result:
IDFromName ( "Account: Data Entry" ; "Layout" ; "" )
|
|
Sample Output:
"Account: Data Entry"
432 |
|
Description:
Obvious thanks to Ray Cologon and bigging up the FileMaker 9 bible. Very heavy book and ideas. Good stuff. Thank you! I didn't want separate functions for Layouts, Scripts, Tables etc - one can do them all.
This function is kind of pointless without its twin sister -
NameFromID...
The big advantage of using FileMaker's internal IDs for layouts, fields and scripts is that the number *never* changes, you may change the layout name, but if you are internally referencing by the ID, you're fine, you can easily nick the current name using this function.
So you may have changed the layout/field order, but it's still got the same ID.
Any bugs tell me and i'll fix, but i've been using this for the last few months particularly with layouts.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
GroupRelationInfo ( FileTarget ; TableTarget ; Result ) |
| |
(Tue, Mar 16, 5:57am) |
| 2. |
GeoBox(latitude;longitude; radius) |
| |
(Mon, Mar 15, 11:04am) |
| 3. |
MonthNameList ( start; number; short ) |
| |
(Sun, Mar 14, 11:45pm) |
| 4. |
matchListAB( ListA ; ListB; match_Value; match_operator ; getN ) |
| |
(Sun, Mar 14, 10:29pm) |
| 5. |
Bin2Hex ( binary ) |
| |
(Sat, Mar 13, 10:08pm) |
| 6. |
SlideView (text) |
| |
(Sat, Mar 13, 8:40pm) |
| 7. |
HashFNV1a64 ( text ; empty ) |
| |
(Sat, Mar 13, 6:23pm) |
| 8. |
HashFNV1a32 ( text ; empty ) |
| |
(Sat, Mar 13, 5:55pm) |
 |
|
In practical terms, how is this useful?
Isn't it true that any reference to (e.g.) a layout name is coded by FileMaker a in terms of its ID already?
So a change of layout name merely changes the visible layer (of a script or calc) and all is taken care of, right?
Why do we want to know the ID?
Lorne Walton, Maple Ridge, BC, Canada
May 24, 2009 7:12am