Class sap.ui.model.analytics.odata4analytics.MeasureModule: sap/ui/model/analytics/odata4analytics


Representation of a property annotated with sap:aggregation-role="measure".

Constructor Summary
new sap.ui.model.analytics.odata4analytics.Measure(oQueryResult, oProperty)Create a representation of a measure provided by an analytic query.
Method Summary
getFormattedValueProperty()Get the text property associated to the raw value property holding the formatted value related to this measure
getLabelText()Get label
getName()Get the name of the measure
getRawValueProperty()Get the raw value property
getUnitProperty()Get the unit property related to this measure
isUpdatable()Get indicator whether or not the measure is updatable
Constructor Detail
new sap.ui.model.analytics.odata4analytics.Measure(oQueryResult, oProperty)
Create a representation of a measure provided by an analytic query. Do not create your own instances.
Parameters:
{sap.ui.model.analytics.odata4analytics.QueryResult}oQueryResult The query result containing this measure
{object}oProperty The DataJS object object representing the measure
Method Detail
getFormattedValueProperty(): object
Get the text property associated to the raw value property holding the formatted value related to this measure
Returns:
{object} The DataJS object representing the property holding the formatted value text of this measure or null if this measure does not have a unit
getLabelText(): string
Get label
Returns:
{string} The (possibly language-dependent) label text for this measure
getName(): string
Get the name of the measure
Returns:
{string} The name of the measure, which is identical to the name of the measure raw value property in the entity type
getRawValueProperty(): object
Get the raw value property
Returns:
{object} The DataJS object representing the property holding the raw value of this measure
getUnitProperty(): object
Get the unit property related to this measure
Returns:
{object} The DataJS object representing the unit property or null if this measure does not have a unit
isUpdatable(): boolean
Get indicator whether or not the measure is updatable
Returns:
{boolean} True iff the measure is updatable