Subviews
FollowWhen you design print views you can include a special kind of view called a subview. Subviews allow you to include data that is in a many to one relationship with the starting table. A typical use of subviews is to display the list of meetings for a candidate in a print view. In this scenario the candidate is one and the meetings can be many.
To design a view that uses subviews you need to create the subview first. Subviews are created like any other view. Once you have created the subview you can use it in your main print view:
- Create a new view that will be the main view (see Creating views). Give the view a meaningful name with respect to the main view. For example if the main view is called Candidate print you can call the sub view Candidate meeting subview print
- Use the designer to drag and drop fields from the model explorer on the left hand (the tree view) to the view definition on the right hand
- You will see the SubView container in model explorer on the left hand (the tree view). Open the SubView container, and you will see the view that you have just created that you can drag and drop on the right hand side
- Use the designer to drag and drop any other fields you wish to add to the main view
When you design a view that uses a subview, remember that:
- Subviews only work with print and form views
- Give the sub view its own title to achieve a better layout
- Subviews must be made public or they will not be visible in the subview folder of the designer
Comments
0 comments
Please sign in to leave a comment.