(6) Inheritance and Reusability
- Support Ticket Tutorial -
If you have the same attribute in multiple entities you can extract them as a shared aspect. For the Support Ticket app we can use the attributes Created By and Created Date because they will be useful in other entities.
1. Extract the Attributes to be Shared
- Go to Data > Entities and double-click Ticket
- In the Data Definition > Attributes section, click the
Magic Wand
on the far right, then click: Extract Shared Aspect
- Set
New Aspect Name
to: Time Stamp - Select Created By and Created Date
- Click
Extract aspect
- Save
Ctrl + S
This lists TimeStamp in the Data > Aspects section. You can reuse it in other entities and update UI pages and components, if necessary, as follows:
2. Add the Aspect to an Entity
- In Data > Entities, double-click Ticket Notes
- Go to the
Settings
tab - Set
Inherited Aspects
to: TimeStamp - Save changes:
Ctrl + S