Lovely functionality of a template is the option to set a template per specialization:
Add the same option to the Dataview, DataGrid and the listview. And also to the new go-to-widgets Datagrid2 and Gallery.
An example could be you have a specialization of "Person"
Person could be specialized into an "Employee" or "Customer"
The person entity has attributes like:
"FirstName", "Surname", "Initials" etc.
However the specialization "Customer" has an attribute "CustomerNumber" and perhaps "Employee" has an attribute called "EmployeeNumber".
When we talk about a Dataview having a template per specialization, we want to be able to visually change between the way a dataview is rendered in the modeler for the Customer specialization and the Employee specialization.
Allowing to differentiate the input fields and buttons on screen in the modeler. So that we don't have to do this through some sort of enumeration on the Person entity tracking whether this is an employee or customer and using visibility constraints but instead it loads the content that was set up for that specialization.
This can be done using the listview "Templates" tab.
And it reduces the amount of visual clutter in the modeler as you have to use less visibility constraints.
Hi @Tim,
Please can you explain how the "set a template per specialization" for 'list view' work?
As Ive gone through the documentation and Im not so clear, or seen a practical example of how to implement it
Thank you in advance