After reading this article you will know:
- What views are in the Back Office
- The difference between the different types of views
- What the different types of views look like
Views are representing models from the Data Model. They display the data stored in a model so it is easy to view for the application users. To keep the Back Office nice and neat, it is possible to group views into sections. Views can appear as either Grids or Pages.
The Grid is the most commonly used view within Betty Blocks, this is because it is straight forward and highly customizable. A Grid basically is a table for data, every Grid displays the data of a single model with its properties. The table has a column for each property and for every object of the model there is a row. The columns are very customizable and you can decide which property you do and don't want to see. Every Grid has a from, with this form it is possible to see, create and edit data for the model.
It is possible to create multiple Grids of one model. This comes in handy when you need to show different data to different people. With a role-based user structure, you can hide views for a specific type of user. If you want to know more about Grids and how to create them, you should take a look at this article explaining all the settings within the Grids: Grid Reference
If you want to show something in your Back Office that cannot be realized with a grid or if your application does not have a frontend, a page can be very useful. Pages can load webpages through an Iframe in the Back Office. In the image above a page has been loaded that displays a map API. Keep in mind that not every webpage can be loaded in an Iframe. If you want to know more about loading Betty Blocks pages in an Iframe, then this article could help you with setting things up: HowTo make an Iframe in the Back Office