Skip to main content

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.


Foreign relationship with the Restaurant table
Figure 1 - Foreign relationship with the Restaurant table

At the form-level, when the Addresses form is added, the RestaurantKey is included in the list.


Restaurant field
Figure 2 - Restaurant field

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.


Restaurant field on the Address form
Figure 3 - Restaurant field on the Addresses form

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.


Addresses list page on the Restaurant form
Figure 4 - Addresses list page on 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.


Addresses list
Figure 5 - Addresses list

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.


Restaurant field is removed
Figure 6 - Restaurant field is removed