Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filemaker object ID



Bob,

You can do this directly in FMPro, using these design functions:

ValueListIDs (dbname)
ScriptIDs (dbname)
RelationIDs (dbname)
LayoutIDs (dbname)
FieldIDs (dbname, layoutname)

You can typically use these functions in conjunction with the corresponding "Names" function (e.g., ValuListNames, etc.) to pinpoint the ID of a particular item in the list.


To get them via AS, use the following formats:

tell application "FileMaker Pro"
tell database "myDatabaseName"
get ID of field "myFieldName"
get ID of layout "myLayoutName"
get ID of FileMaker script "myScriptName"
get ID of record 123
end tell
end tell


I don't see a way to get info on relationships via AS independently, but you could create a calc field in your FMP database that calculates the join IDs and grab them through AS. There may be a way to do it in AS alone, but since it would take a while to see if it can be done, I'll leave that to you, or to someone else in the group may know of an AS method for getting join info without FMP calcs.

Finally, you may be able to get ID info from an XML DDR in FM Developer. I haven't run one in a while, so I can't say for sure. If you need this functionality badly enough, though, it might be worth investigating.

HTH


On Wednesday, November 26, 2003, at 02:52 PM, Bob Cuilla wrote:

Does anyone have a script to retrieve the assigned Filemaker Pro object IDs from objects, such as scripts, fields, etc?

Bob Cuilla
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.



Thanks.
Dave Dowling
http://www.davedowling.com

Free at last! How I found peace with God: http://www.davedowling.com/peace.htm
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Filemaker object ID (From: Bob Cuilla <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.