Class sap.m.P13nConditionPanelModule: sap/m/P13nConditionPanel
The ConditionPanel Control will be used to implement the Sorting, Filtering and Grouping panel of the new Personalization dialog.
Experimental API:since version 1.26 !!! THIS CONTROL IS ONLY FOR INTERNAL USE !!!
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the dataChange
event of this sap.m.P13nConditionPanel
.fnFunction
from the dataChange
event of this sap.m.P13nConditionPanel
.autoReduceKeyFieldItems
.disableFirstRemoveIcon
.usePrevConditionSetting
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- maxConditions : string (default: -1)
- exclude : boolean (default: false)
- containerQuery : boolean (default: false)
- autoAddNewRow : boolean (default: false)
- disableFirstRemoveIcon : boolean (default: false)
- alwaysShowAddIcon : boolean (default: true)
- usePrevConditionSetting : boolean (default: true)
- autoReduceKeyFieldItems : boolean (default: false)
- layoutMode : string
- showLabel : boolean (default: false)
- displayFormat : string
- validationExecutor : object
- Aggregations
- Events
- dataChange : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
{string} | sId? | ID for the new control, generated automatically if no ID is given |
{object} | mSettings? | initial settings for the new control |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
{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 |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
{object} | oCondition | the new condition of type { "key": "007", "operation": sap.m.P13nConditionOperation.Ascending, "keyField": "keyFieldKey", "value1": "", "value2": ""}; |
- Since:
- 1.26.0
{object} | oKeyField | {key: "CompanyCode", text: "ID"} |
- Since:
- 1.26.0
{sap.m.P13nConditionOperation} | oOperation | |
{string} | sType | defines the type for which this operations will be used. |
- Since:
- 1.26.0
fnFunction
to the dataChange
event of this sap.m.P13nConditionPanel
. When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.m.P13nConditionPanel
itself.
Workaround for updating the binding
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.P13nConditionPanel itself |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
fnFunction
from the dataChange
event of this sap.m.P13nConditionPanel
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
dataChange
to attached listeners. {Map} | mArguments? | The arguments to pass along with the event |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
alwaysShowAddIcon
. makes the Add icon visible on each condition row. If is set to false the Add is only visible at the end and you can only append a new condition.
Default value is true
.
{boolean} | Value of property alwaysShowAddIcon |
autoAddNewRow
. adds initial a new empty condition row
Default value is false
.
{boolean} | Value of property autoAddNewRow |
autoReduceKeyFieldItems
. KeyField value can only be selected once. When you set the property to true the ConditionPanel will automatically offers on the KeyField drop down only the keyFields which are not used. The default behavior is that in each keyField dropdown all keyfields are listed.
Default value is false
.
{boolean} | Value of property autoReduceKeyFieldItems |
- Since:
- 1.26.0
{object[]} | array of Conditions |
containerQuery
. defines if the mediaQuery or a ContainerResize will be used for layout update. When the P13nConditionPanel is used on a dialog the property should be set to true!
Default value is false
.
{boolean} | Value of property containerQuery |
disableFirstRemoveIcon
. makes the remove icon on the first condition row disabled when only one condition exist.
Default value is false
.
{boolean} | Value of property disableFirstRemoveIcon |
displayFormat
. This represents the displayFormat of the condition Values. With the value "UpperCase" the entered value of the condition will be converted to upperCase.
{string} | Value of property displayFormat |
exclude
. exclude options for filter
Default value is false
.
{boolean} | Value of property exclude |
- Since:
- 1.26.0
{object[]} | array of KeyFields [{key: "CompanyCode", text: "ID"}, {key:"CompanyName", text : "Name"}] |
layoutMode
. can be used to control the layout behavior. Default is "" which will automatically change the layout. With "Desktop", "Table" or"Phone" you can set a fixed layout.
{string} | Value of property layoutMode |
maxConditions
. defines the max number of conditions on the ConditionPanel
Default value is -1
.
{string} | Value of property maxConditions |
{string} | sType | defines the type for which the operations should be returned. |
- Since:
- 1.26.0
{sap.m.P13nConditionOperation[]} | array of operations |
showLabel
. show additional labels in the condition
Default value is false
.
{boolean} | Value of property showLabel |
usePrevConditionSetting
. new added condition use the settings from the previous condition as default.
Default value is true
.
{boolean} | Value of property usePrevConditionSetting |
validationExecutor
. Calls the validation listener tbd...
{object} | Value of property validationExecutor |
{object} | oCondition | the new condition of type { "key": "007", "operation": sap.m.P13nConditionOperation.Ascending, "keyField": "keyFieldKey", "value1": "", "value2": ""}; |
{int} | index | of the new condition |
- Since:
- 1.26.0
{string} | sType | defines the type for which all operations should be removed |
- Since:
- 1.26.0
{object} | vCondition | is the condition which should be removed. can be either a string with the key of the condition of the condition object itself. |
- Since:
- 1.26.0
- Since:
- 1.28.0
autoAddNewRow
. adds initial a new empty condition row
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bAutoAddNewRow | New value for property autoAddNewRow |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
autoReduceKeyFieldItems
. KeyField value can only be selected once. When you set the property to true the ConditionPanel will automatically offers on the KeyField drop down only the keyFields which are not used. The default behavior is that in each keyField dropdown all keyfields are listed.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bAutoReduceKeyFieldItems | New value for property autoReduceKeyFieldItems |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
{object[]} | aConditions | array of Conditions. |
- Since:
- 1.26.0
disableFirstRemoveIcon
. makes the remove icon on the first condition row disabled when only one condition exist.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bDisableFirstRemoveIcon | New value for property disableFirstRemoveIcon |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
displayFormat
. This represents the displayFormat of the condition Values. With the value "UpperCase" the entered value of the condition will be converted to upperCase.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sDisplayFormat | New value for property displayFormat |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
exclude
. exclude options for filter
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bExclude | New value for property exclude |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
{array} | aKeyFields | array of KeyFields [{key: "CompanyCode", text: "ID"}, {key:"CompanyName", text : "Name"}] |
- Since:
- 1.26.0
maxConditions
. defines the max number of conditions on the ConditionPanel
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is -1
.
{string} | sMaxConditions | New value for property maxConditions |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
{sap.m.P13nConditionOperation[]} | aOperations | array of operations [sap.m.P13nConditionOperation.BT, sap.m.P13nConditionOperation.EQ] |
{string} | sType | defines the type for which this operations will be used. is sType is not defined the operations will be used as default operations. |
- Since:
- 1.26.0
showLabel
. show additional labels in the condition
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bShowLabel | New value for property showLabel |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
usePrevConditionSetting
. new added condition use the settings from the previous condition as default.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bUsePrevConditionSetting | New value for property usePrevConditionSetting |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |
validationExecutor
. Calls the validation listener tbd...
When called with a value of null
or undefined
, the default value of the property will be restored.
{object} | oValidationExecutor | New value for property validationExecutor |
{sap.m.P13nConditionPanel} | Reference to this in order to allow method chaining |