class sap.ui.model.analytics.odata4analytics.Model.ReferenceWithWorkaround

UX Guidelines:
Implements:
Available since: N/A
Extends:
Module: sap/ui/model/analytics/odata4analytics
Application Component: CA-UI5-COR

Handle to an already instantiated SAPUI5 OData model.


Constructor

Create a reference to an OData model having certain workarounds activated. A workaround is an implementation that changes the standard behavior of the API to overcome some gap or restriction in the OData provider. The workaround implementation can be conditionally activated by passing the identifier in the constructor.

Known workaround identifiers are:

  • "CreateLabelsFromTechnicalNames" - If a property has no label text, it gets generated from the property name.
  • "IdentifyTextPropertiesByName" -If a dimension property has no text and another property with the same name and an appended "Name", "Text" etc. exists, they are linked via annotation.
  • new sap.ui.model.analytics.odata4analytics.Model.ReferenceWithWorkaround(oModel, aWorkaroundID)
    Param Type Default Value Description
    oModel object

    Holds a reference to the OData model, obtained by sap.ui.model.analytics.odata4analytics.Model.ReferenceByModel, or by sap.ui.model.analytics.odata4analytics.Model.ReferenceByURI which is deprecated.

    aWorkaroundID string[]

    All workarounds to be applied.