Related Data Objects (Relationships)
Data Objects can contain a reference or 'link' to another Data Object. Such references are called 'relationships'.
Here is an example:
An `InventoryItem' data object stores the list of items available in a hotel's inventory. It may have fields such as name, category, units, unitCost, currentStockLevel.
A 'StockTransaction' data object is used to store changes to each InventoryItem. Each StockTransaction therefore also maintains a 'to_InventoryItem' field. This is the relationship Field used to record which StockTransaction was connected to which InventoryItem.
When there is a singular reference like the above, the other data object will have a 'List' relationship back to this object.
Here are the two objects, and their relationships:


To add relationships to a data object, use the
button at the top right of the Data Object editor. Adding one relationship will automatically add the reverse relationship to the other object.
Last updated