sap.viz.ui5.data.FlattenedDataset.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.viz.ui5.data.FlattenedDataset with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.viz.ui5.data.Dataset.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.viz.ui5.data.FlattenedDataset.
Returns:
Adds some data to the aggregation data
.
Parameters:
Returns:
Adds some dimension to the aggregation dimensions
.
Parameters:
Returns:
Adds some measure to the aggregation measures
.
Parameters:
Returns:
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Destroys all the data in the aggregation data
.
Returns:
Destroys all the dimensions in the aggregation dimensions
.
Returns:
Destroys all the measures in the aggregation measures
.
Returns:
getContext(): any
Gets current value of property
context
.
Additional data which works with data context in this dataset. The input could be an array. Each item represents a dimension that is added as the additional information based on data context. The input could be a string of dimension id, or object like this {id: "name", showInTooltip: true}. If showInTooltip is false, the dimensions set in this API will not show in popover or tooltip. However other dimensions in data context will show. In selection event, all dimension information (including the dimension set in this API) will be included. Context will be shown by default in tooltip if only set context with string or string of array.
Returns:
{any} | Value of property context |
Gets content of aggregation
data
.
Data containing dimensions and measures.
Note: This aggregation can only be bound against a model, it cannot be managed programmatically using the aggregation mutator methods like addData.
Returns:
Gets content of aggregation
dimensions
.
List of definitions of all dimensions in this dataset
Returns:
Gets content of aggregation
measures
.
list of definitions of all measures in this dataset
Returns:
indexOfData(oData): int
Checks for the provided sap.ui.core.Element
in the aggregation data
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfDimension(oDimension): int
Checks for the provided sap.viz.ui5.data.DimensionDefinition
in the aggregation dimensions
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfMeasure(oMeasure): int
Checks for the provided sap.viz.ui5.data.MeasureDefinition
in the aggregation measures
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a data into the aggregation data
.
Parameters:
{sap.ui.core.Element} | oData | the data to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the data should be inserted at; for a negative value of iIndex , the data is inserted at position 0; for a value greater than the current size of the aggregation, the data is inserted at the last position |
Returns:
Inserts a dimension into the aggregation dimensions
.
Parameters:
{sap.viz.ui5.data.DimensionDefinition} | oDimension | the dimension to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the dimension should be inserted at; for a negative value of iIndex , the dimension is inserted at position 0; for a value greater than the current size of the aggregation, the dimension is inserted at the last position |
Returns:
Inserts a measure into the aggregation measures
.
Parameters:
{sap.viz.ui5.data.MeasureDefinition} | oMeasure | the measure to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the measure should be inserted at; for a negative value of iIndex , the measure is inserted at position 0; for a value greater than the current size of the aggregation, the measure is inserted at the last position |
Returns:
Removes all the controls from the aggregation
data
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
dimensions
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
measures
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a data from the aggregation data
.
Parameters:
Returns:
Removes a dimension from the aggregation dimensions
.
Parameters:
Returns:
Removes a measure from the aggregation measures
.
Parameters:
Returns:
Sets a new value for property
context
.
Additional data which works with data context in this dataset. The input could be an array. Each item represents a dimension that is added as the additional information based on data context. The input could be a string of dimension id, or object like this {id: "name", showInTooltip: true}. If showInTooltip is false, the dimensions set in this API will not show in popover or tooltip. However other dimensions in data context will show. In selection event, all dimension information (including the dimension set in this API) will be included. Context will be shown by default in tooltip if only set context with string or string of array.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{any} | oContext | New value for property context |
Returns:
Unbinds aggregation data
from model data.
Returns: