The Stack
Last updated 8/04/2024
Through the development of your application, you will notice that Five will knock keys out of the stack when they are not necessary to show. The stack refers to the set of components that work together to support the execution of your application.
Below is an example of how Five does this.
At the table-level, the Address table has a foreign relationship with the Restaurant table.
At the form-level, when the Addresses form is added, the RestaurantKey is included in the list.
This will make it that if the Addresses form has a menu item, you can select a Restaurant on the Addresses form and add an address. You can also see Restaurants is in the list.
Now lets change the form setup and instead of having the Addresses form in the menu, we will now add it as a list page to the Restaurants form.
In the application, now that the Addresses list is on the Restaurants form, Restaurants has been removed from the list. This is because Five knows what restaurant you are adding an address to as you are actually on the selected restaurant record.
If you add a new address, you will see the Restaurant field has been removed because you do not need to select a restaurant as Five knows what restaurant record you are adding an address to.