There are two relationship types that you can create when linking Tables together in Gridfox: Parent-Child relationship and Many-to-Many relationship.
A parent-child relationship, or one-to-many relationship, can be used where you have a single parent Record that will have many child Records.
For example, if you were using Gridfox to track your Projects you may create a parent Project Table and link a child Tasks Table. This will mean one Project can have many Tasks, and each Task is linked to a single Project.
When you have created a Parent-Child relationship between two Tables, if you look at a Record from the parent Table then there will be a related list of Records from the child Table shown.
For example, if you have created a parent Company Table with a child Contact Table then viewing the Company will show a related list of Contacts.
If you were instead looking at the Contact Record, the Company would be shown as a Field since a Contact can only have one linked parent Company.
Parent-child relationships can be utilized around your Project in the following ways:
Group Board Columns
When configuring a Board, you can select to group the Records shown by their Parent Record
When configuring Charts on a Dashboard, for some Chart Types you can select to group the data by the assigned Parent Record
When using a Formula Field, you can select to use a Field from a parent Table in your calculation, or to sum based on linked child Records
Group Gantt Charts
On a Gantt Chart, you can select to group the Records shown by their Parent Record
When setting the ID Mask for a Reference Field, you can include Fields from a parent Table to display
If a Table is the child in a parent-child relationship, you can create a relationship with this Table and another Table. For example, you can create a parent Company Table with a child Projects Table. The Projects Table can then be set as the parent Table to a child Tasks table.
When you are configuring the Screen for the Company Table, you can select to include the ‘grandchild’ Tasks Table which will show all Tasks relating to Projects for that Company.
A many-to-many relationship can be used when you have Records between two Tables that will relate to many Records in the other Table.
For example, if you were using Gridfox to track your Customers and which Products they use then you may create a many-to-many relationship between a Customers Table and a Products Table. This means that one Customer can be assigned many Products, and a Product can be utilized by and assigned to many Customers.
When you have created a many-to-many relationship between two Tables, if you are looking at a Record in either Table then a related list of Records from the related Table will be shown.
In the example above, where there is a many-to-many relationship between Customers and Products then when you view a Customer the list of related Products will show, and vice versa.
When you select to add a many-to-many relationship between two Tables, you will be given the option of creating a direct relationship or to add a join Table.
Join Tables are useful when you need store some extra information about the relationship between the two related Records.
For example, if you were tracking which of you customers had attended your events then you could create a many-to-many relationship between a Customer Table and an Events Table.
However, you’d probably also want to track whether each customer was invited to the invite and whether or not they attended. A join Table can be used between the Customer Table and Events Table to track attendance.