Adding a subview to your view
First, we’ll discuss what a subview is and what it is used for in this section. Then, we’ll see how we can add subviews and what kind of options they have. We’ll also set up a view and then add data into a subview.
What is a subview?
What are subviews exactly? A subview is a view on top of your primary view that has a relationship with another model. This can be any kind of relationship. We have already added the Customer model as a view to our Back Office. So, in this case, we’ll consider that to be our primary model. Our Customer model has a relationship with Addresses. We want to be able to see and add addresses to our customers. This is where the subview comes in.
Adding a new subview
You can add subviews in the view of your customer when you activate Builder Mode (with the wrench icon or the E key) and open one of your customer records. On the right side of the slider that opens, a button called Add subview...