Click or drag to resize

ItemgetRelatedItem Method

Gets related item of the relationship.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Item getRelatedItem()

Return Value

Type: Item
Related item. If by some reason the related item can't be returned (e.g. 'this.dom' doesn't have 'related_id' property or type of the related item is unknown), the method returns null.
Exceptions
ExceptionCondition
ExceptionThe instance doesn't represent a single item.
Remarks
Tries to find related_id property on the item. If found, the propery may either a) contain child <Item> node or b) contain just id. In case a), the child <Item> node is used for constructing the returned Item; note, that in this case the returned item shares dom with this item. In case b), an attempt is made to construct a simple Item with the following dom: <Item type='...' id='...'><id>...</id></Item> to be returned. Note that in this case, the returned Item doesn't share its dom with this.
See Also