Related instance specification
TypeScript type: RelatedInstanceSpecification.
Related instance specification is used in content and hierarchy specifications to "join" the primary instance with its related instance and allow using the related instance for:
- Filtering, when used in
instanceFilter
. - Customization, when used in customization rules.
- Grouping, when used in grouping rules.
Attributes
Name | Required? | Type | Default |
---|---|---|---|
relationshipPath |
Yes | RelationshipPathSpecification |
|
alias |
Yes | string |
|
isRequired |
No | boolean |
false |
Attribute: relationshipPath
Specifies a chain of relationship path specifications that forms a path from the primary instance to the related instances.
Type | RelationshipPathSpecification |
Is Required | Yes |
Attribute: alias
Specifies an an alias that given to the related instance. The alias can be used to reference the instance in instance filter and customization rules.
Note: The value must be unique per hierarchy specification. If there are multiple related instance specifications using the same alias, the library uses the first one and ignores the rest of them.
Type | string |
Is Required | Yes |
Attribute: isRequired
Specifies whether to omit the primary instance from the result if the other end of relationshipPath
does not yield any related instances.
Type | boolean |
Is Required | No |
Default Value | false |
Examples
Using related instances in instance filter
Result | |
---|---|
Without instance filter | ![]() |
With instance filter | ![]() |
Using related instances for customization
Using related instances for grouping
Result | |
---|---|
Without related instance specification | ![]() |
With related instance specification | ![]() |
Last Updated: 24 January, 2023