FileMaker Extra: Managing the Relationships Graph
FileMaker Extra Managing the Relationships Graph
The Relationships Graph in FileMaker is a nice answer to developers who clamored for years for a visual representation of relationships in FileMaker systems. But for large or complex systems, with many table occurrences, the Graph has the potential to be a bit unwieldy. Table occurrences in the Graph take up a fair amount of space, and it can be difficult to organize the occurrences without creating a web of overlapping relationship lines.
You can use a number of tools for Graph management. For one thing, the small "windowshade" icon at the upper right of a table occurrence can be used to hide the fields in the table occurrence, leaving only the match fields used in relationships. This can save valuable space. If you like to work from the keyboard, (
Figure 7.33. Individual table occurrences can be made into "windowshades" that display only the match fields that participate in relationships.
You can also resize an individual table occurrence manually to save space. This, again, needs to be done one table occurrence at a time. It's also possible to zoom out from the Graph as a whole and view it at 75% or 50% of regular size, or smaller.
It might also be useful to you to organize your table occurrences into logical groups of some kind within the Relationships Graph. Let's say you're working on a trucking module with four table occurrences, and you also have a file reference to an external user-management module and you've used that to bring a number of user-oriented table occurrences into the Graph. FileMaker enables you to color-code table occurrences in the Graph, so it's possible to give each group of table occurrences its own color.
In FileMaker 7 there was no way to add notes or comments directly to the Graph. The previous version of this book suggested using "dummy" table occurrences to add headers and labels to object groups. In FileMaker 8, you can add notes directly to the Graph. If you drag a rectangle in the Graph while holding ( |
Figure 7.34 shows a Relationships Graph with table occurrences from both the trucking module and the user module. The trucker tables are colored red here, the user tables are blue, and each group has a "wrapper" of a sort, formed by a note. In addition, in the figure the Graph has been reduced to 75% of its normal size.
Figure 7.34. Use color coding and group naming to help organize the Relationships Graph.
For some more discussion of annotating and documenting your systems, see Chapter 27, "Documenting Your FileMaker Solutions," p. 841. |
In addition to notes, FileMaker 8 adds a few other nice enhancements that let you better manage the Graph. Pressing ( |
All these techniques can help make your Graph more manageable. Still, if you have a system with a hundred table occurrences, your Graph will be crowded, without question. It's been suggested that offering a list view of relationships as well, in a manner similar to previous versions of FileMaker, would be helpful, and it's possible we may see such a list view in future versions of the product.