What is object inheritance?
Object inheritance is a key feature of the ReadiNow platform that enables the creation of object hierarchies. This functionality allows a child object to inherit all the fields and relationships defined in its parent object, which is also known as a "derived type."
Key features of object inheritance
Field Inheritance: A child object automatically inherits all fields and relationships from its parent object. This ensures consistency across related objects, as all child objects will have the same essential fields and relationships as defined in the parent.
Adding Unique Fields: While a child object inherits fields from its parent, you can also add additional fields that are not present in the parent object. This allows for customization while maintaining the foundational structure.
Field and Relationship Properties: Any properties applied to fields or relationships in the parent object are inherited by the child object. These inherited properties cannot be modified at the child level, ensuring uniformity.
Automatic Updates: Changes made to the parent object, such as adding or removing fields and relationships, or marking the object as sensitive, will automatically replicate to all child objects. This feature simplifies maintenance and ensures that all related objects remain up-to-date.
Display Options: Although inherited fields and relationships are part of the child object, they do not have to be displayed in forms and reports. This flexibility allows the app builder to highlight the information most relevant to the child object.
How to create an inherited (child) object
Note: Creating an object may incur additional license costs. For further details please contact your ReadiNow Account manager before creating a child object.
First, create your parent object. Once you are satisfied with your parent object, save the parent and move onto creating a child object:
- Navigate to Administration > Resources > Objects.
- Click the +New button and select Object.
- Choose the required parent object for the "Extends from" field. More than one parent object can be selected if required.
- Continue creating the object following your normal process.
- Remember to save your new child object.
In the Report Builder, there are two ways to identify inherited fields in the left-hand navigation pane:
- The names of inherited fields are displayed in italics.
- An inherited field will not show a delete icon when you hover over it.
Anything else I should know?
It is not recommended to change inheritance after an object has been created, and this cannot be done through the UI. Reach out to ReadiNow Support to discuss your options should it become necessary to update inheritance .
Deleting a field that contains data will delete the data along with the field. Exercise caution when deleting fields from parent objects.