Too many table occurrences (TO's) can be detrimental to the developer
You can end up with a tangled "web" of TO's and relationships that can be very difficult and time consuming to analyze and modify when the need arises. Execute SQL is one new tool that can "prune" away a lot of special use TO's intended for facilitating a specific calculation or layout feature and thus produce a simpler relationship graph to work with. The down side, as mentioned earlier, is that SQL is cryptic and hides relationships from view--you have to track down a specific calculation expression that could be in a field or a script step and analyze it to figure out what is going on.
Another tool for making your relationships graph easier to work with is to use the Anchor Buoy method of organizing your TO's into groups specific to a given layout or group of very similar layouts. This replaces a large tangled mess of TO's and relationships with smaller organized "tree structured" groups of TO's.
OnRecordLoad might be useful to Push the current Topic ID onto the stack. Popping an ID and going to it, would likely be done via clicking a button to run the appropriate script. On the other hand, you may find that you have to use navigation buttons anyway in order to correctly traverse the branches of these trees and thus the same script that does so can also push values instead of putting it in a script trigger controlled script.
Here's what I am imagining:
Information-----<Information_Topic>-----Topics------<Topic_SubTopic>--------SubTopics
TO's in green all have the same data source table, Topics. TO's in Blue all have the same join table as a data source table.
When you go to "view" the data for a given topic, a script would use a layout based on Information to find that Record. It would then use Go To Related Records to pull up a list of all related topics with data from Information listed in the header and portals to SubTopics listing any related sub topics. A button in the body of the layout can then take you "down" a level, making that topic entry "information" and a button in the portal row can take you down two levels, making that subtopic the new information level. And the scripts performed by those buttons can also push a bread crumb.
PS. ExecuteSQL could be used here in a number of ways, but the above is much less cryptic to describe and explain.
Your new post is loading...