class sap.ui.mdc.field.ConditionsType

Visiblity: restricted
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/mdc/field/ConditionsType
Application Component: CA-UI5-MDC

This class represents a type that is used to map an array of conditions to a single-value control (such as Input or Text control).


Constructor

Constructor for a Conditions type.

new sap.ui.mdc.field.ConditionsType(oFormatOptions?, oConstraints?)
Param Type Default Value Description
oFormatOptions? object

Formatting options

valueType? sap.ui.model.Type

Type of the value of the condition (used for formatting and parsing)

operators? string[]

Possible operators to be used in the condition

display? sap.ui.mdc.enum.FieldDisplay

DisplayFormat used to visualize value

fieldHelpID? string

ID of the field help, to determine key and description // TODO: async request????

hideOperator? boolean

If set, only the value of the condition is shown, but no operator //TODO

maxConditions? int

Maximum number of allowed conditions

bindingContext? sap.ui.model.Context

BindingContext of field. Used to get key or description from the value help using in/out parameters. (In table, the value help might be connected to different row)

originalDateType? sap.ui.model.Type

Type used on field. E.g. for date types internally a different type is used internally to have different formatOptions

additionalType? sap.ui.model.Type

additional Type used on other part of a field. (This is the case for unit fields.)

getConditions? function

Function to get the existing conditions of the field. Only used if isUnit is set. TODO: better solution

asyncParsing? function

Callback function to tell the Field the parsing is asynchronous.

navigateCondition? object

Condition of keyboard navigation. If this is filled, no real parsing is needed as the condition has already been determined. Just return it

delegate? object

Field delegate to handle model-specific logic

payload? object

Payload of the delegate

preventGetDescription? boolean

If set, description is not read by formatValue as it is known that no description exist or it might be set later

conditionModel? sap.ui.mdc.condition.ConditionModel

ConditionModel, if bound to one

conditionModelName? string

Name of the ConditionModel, if bound to one

defaultOperatorName? string

Name of the default Operator

oConstraints? object

Value constraints


Methods Overview

Method Description
sap.ui.mdc.field.ConditionsType.extend

Creates a new subclass of class sap.ui.mdc.field.ConditionsType with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.SimpleType.extend.

sap.ui.mdc.field.ConditionsType.getMetadata

Returns a metadata object for class sap.ui.mdc.field.ConditionsType.

sap.ui.mdc.field.ConditionsType.extend

Creates a new subclass of class sap.ui.mdc.field.ConditionsType with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.SimpleType.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.mdc.field.ConditionsType.getMetadata

Returns a metadata object for class sap.ui.mdc.field.ConditionsType.