Entity JavaScript API
Connector functions entity JS API guide
This API allows users to extract data from entity object.
Entity Object Methods
The following methods also work with the gateway object since it has the same structure as entity.
_value (datastream, index) ⇒ *
Extract from entity specified datastream “value” field value using parameters:
datastream
: Datastream name.index
: Element index of datastream array.
Returns: * - Specified datastream “value” field. It can be complex object. null if datastream does not exist.
_at (datastream, index) ⇒ *
Extract from entity specified datastream “at” field value using parameters:
datastream
: Datastream name.index
: Element index of datastream array.
Returns: Specified datastream “at” field. It can be complex object. null if datastream does not exist.
_date (datastream, index) ⇒ *
Extract from entity specified datastream date field value using parameters:
datastream
: Datastream name.index
: Element index of datastream array.
Returns: Specified datastream “date” field. It can be complex object. null if datastream does not exist.
_source (datastream, index) ⇒ *
Extract from entity specified datastream “source” field value using parameters:
datastream
: Datastream name.index
: Element index of datastream array.
Returns: Specified datastream “source” field. It can be complex object. null if datastream does not exist.
_sourceInfo (datastream, index) ⇒ *
Extract from entity specified datastream “sourceInfo” field value using parameters:
datastream
: Datastream name.index
: Element index of datastream array.
Returns: Specified datastream “sourceInfo” field. It can be complex object. null if datastream does not exist.