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
n/a
http://thisisafakeurl.com

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.

Under construction. Email me your wish list for improvements.