View Designer
View designer allows you to create and edit an entity view.
- View name - a name of the new view.
- Extends - a built-in or custom view which attributes are extended by the new view. There are two built-in views available for any entity:
_local
contains all local attributes of an entity (the attributes which are not references to other entities).
_minimal
contains the attributes listed in the name pattern.
The full list of attributes of the current entity is displayed in the tree below. You can select which attributes will be included in the view by setting the checkboxes accordingly. To do this, click the required attribute's checkbox in the tree or tap a spacebar while having attribute selected.
If your view extends another view, all inherited attributes are selected with the checkboxes disabled.
If you select a reference attribute, the following properties will appear in the right panel:
- Entity - the referenced entity name.
- View - an optional view to load the referenced entity. It is recommended to use references to named views instead of ad-hoc graph of view attributes, as it makes it easier to maintain complex views. Also, even if you define a view name, you can still add attributes not included in this view by setting the checkboxes in the tree.
- Lazy - an optional property of the reference attribute, which is a hint for the platform on how to load the attribute: either try to fetch it by a single select together with the master entity, or always load it by a separate select. See documentation for details.