Brian Dunning's FileMaker Custom Functions

listRelationships ( listOfTables )

Generates a list of relationships from a list of tables for the current active file

  Average rating: 4.5 (20 votes) Log in to vote

Andrew Sasaki   Andrew Sasaki - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
listRelationships ( TableNames ( Get ( FileName ) ) )
  Sample output:
Source:TestDB
Table:table2
Options:
table2::RecordID2 = table3::relatedRecordID
Source:TestDB
Table:table1
Options:
table1::RecordID = table2::relatedRecordID

Source:TestDB
Table:table3
Options:
table3::relatedRecordID = table2::RecordID2
Source:TestDB
Table:table2
Options:
table2::relatedRecordID = table1::RecordID

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Recursively goes through a list of tables in the current file and lists relationships for each of them.

 

Comments

unin   unin, Japan
Aug 24, 2015
For firstValue, you may be able to use GetValue () instead of LeftValues().
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: