Class: findAttributeValue

Adaptor.findAttributeValue(trackedEntityInstance, attributeDisplayName) → {string}

new findAttributeValue(trackedEntityInstance, attributeDisplayName) → {string}

Gets an attribute value by its case-insensitive display name
Parameters:
Name Type Description
trackedEntityInstance Object A tracked entity instance (TEI) object
attributeDisplayName string The 'displayName' to search for in the TEI's attributes
Source:
Returns:
Type
string
Example
findAttributeValue(state.data.trackedEntityInstances[0], 'first name')