sap.ui.comp.valuehelpdialog.ValueHelpDialog.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.valuehelpdialog.ValueHelpDialog with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.m.Dialog.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.ui.comp.valuehelpdialog.ValueHelpDialog.
Returns:
Attaches event handler
fnFunction
to the
cancel
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
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.ui.comp.valuehelpdialog.ValueHelpDialog
itself.
This event is fired when the Cancel button is pressed.
Parameters:
{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.ui.comp.valuehelpdialog.ValueHelpDialog itself |
- Since:
- 1.24
Returns:
Attaches event handler
fnFunction
to the
ok
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
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.ui.comp.valuehelpdialog.ValueHelpDialog
itself.
This event is fired when the OK button is pressed.
Parameters:
{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.ui.comp.valuehelpdialog.ValueHelpDialog itself |
- Since:
- 1.24
Returns:
Attaches event handler
fnFunction
to the
selectionChange
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
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.ui.comp.valuehelpdialog.ValueHelpDialog
itself.
This event is fired when the user selects an item in the items table. The event will only be raised when the dialog gets a table instance from outside via setTable.
Parameters:
{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.ui.comp.valuehelpdialog.ValueHelpDialog itself |
- Since:
- 1.32
Returns:
Attaches event handler
fnFunction
to the
tokenRemove
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
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.ui.comp.valuehelpdialog.ValueHelpDialog
itself.
This event is fired when the user removes one or multiple existing token(s) from the dialog. The event will only be raised when the dialog gets a table instance from outside via setTable.
Parameters:
{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.ui.comp.valuehelpdialog.ValueHelpDialog itself |
- Since:
- 1.32
Returns:
Attaches event handler
fnFunction
to the
updateSelection
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
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.ui.comp.valuehelpdialog.ValueHelpDialog
itself.
This event is fired when the table gets an update and all existing tokens must be selected in the table. The event will only be raised when the dialog gets a table instance from outside via setTable.
Parameters:
{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.ui.comp.valuehelpdialog.ValueHelpDialog itself |
- Since:
- 1.32
Returns:
Destroys the filterBar in the aggregation filterBar
.
Returns:
Detaches event handler
fnFunction
from the
cancel
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.24
Returns:
Detaches event handler
fnFunction
from the
ok
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.24
Returns:
Detaches event handler
fnFunction
from the
selectionChange
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.32
Returns:
Detaches event handler
fnFunction
from the
tokenRemove
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.32
Returns:
Detaches event handler
fnFunction
from the
updateSelection
event of this
sap.ui.comp.valuehelpdialog.ValueHelpDialog
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.32
Returns:
Fires event cancel
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.24
Returns:
Fires event
ok
to attached listeners.
Expects the following event parameters:
tokens
of type sap.m.Token[]
The array of tokens created or modified on the ValueHelpDialog.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.24
Returns:
Fires event
selectionChange
to attached listeners.
Expects the following event parameters:
tableSelectionParams
of type object
The RowSelectionChange event parameter from the hosted table that contains the selected items.updateTokens
of type object[]
Returns an array of objects which represents all selected row tokens. The object contains the token key, the row object data from the model, and the information if the token is selected. [{sKey, oRow, bSelect}, ...]
useDefault
of type boolean
Can be set to true to execute the default behaviour of the ValueHelpDialog.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.32
Returns:
Fires event
tokenRemove
to attached listeners.
Expects the following event parameters:
tokenKeys
of type string[]
The array of token keys that has been removed.useDefault
of type boolean
Can be set to true to execute the default behaviour of ValueHelpDialog.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.32
Returns:
Fires event
updateSelection
to attached listeners.
Expects the following event parameters:
tokenKeys
of type string[]
The array of existing token keys for which the selection in the table has to be updated.useDefault
of type boolean
Can be set to true to execute the default behavior of ValueHelpDialog.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.32
Returns:
getBasicSearchText(): string
Gets current value of property
basicSearchText
.
Defines the value for the basic search field. The value is set into the basic search field of the filter bar used.
- Since:
- 1.24
Returns:
{string} | Value of property basicSearchText |
getDescriptionKey(): string
Gets current value of property
descriptionKey
.
Defines the key of the column used for the token text.
- Since:
- 1.24
Returns:
{string} | Value of property descriptionKey |
getDisplayFormat(): string
Gets current value of property
displayFormat
.
Represents the display format of the range values. With the displayFormat
value UpperCase, the entered value of the range (condition) is converted to uppercase letters.
- Since:
- 1.24
Returns:
{string} | Value of property displayFormat |
Gets content of aggregation
filterBar
.
Allows you to add a FilterBar or SmartFilterBar control to the value help dialog.
Returns:
getFilterMode(): boolean
Gets current value of property
filterMode
.
Sets the dialog into a filter mode, which only shows ranges (conditions) and hides the tokens.
Default value is false
.
- Since:
- 1.24
Returns:
{boolean} | Value of property filterMode |
getKey(): string
Gets current value of property
key
.
Defines the key of the column used for the internal key handling. The value of the column is used for the token key and also to identify the row in the table.
- Since:
- 1.24
Returns:
{string} | Value of property key |
getKeys(): string[]
Gets current value of property
keys
.
Defines the list of additional keys of the column used for the internal key handling.
- Since:
- 1.24
Returns:
{string[]} | Value of property keys |
getMaxExcludeRanges(): string
Gets current value of property
maxExcludeRanges
.
Defines the maximum number of exclude ranges.
Default value is -1
.
- Since:
- 1.24
Returns:
{string} | Value of property maxExcludeRanges |
getMaxIncludeRanges(): string
Gets current value of property
maxIncludeRanges
.
Defines the maximum number of include ranges.
Default value is -1
.
- Since:
- 1.24
Returns:
{string} | Value of property maxIncludeRanges |
getSupportMultiselect(): boolean
Gets current value of property
supportMultiselect
.
Enables multi-selection in the table used.
Default value is true
.
- Since:
- 1.24
Returns:
{boolean} | Value of property supportMultiselect |
getSupportRanges(): boolean
Gets current value of property
supportRanges
.
Enables the ranges (conditions) feature in the dialog.
Default value is false
.
- Since:
- 1.24
Returns:
{boolean} | Value of property supportRanges |
getSupportRangesOnly(): boolean
Gets current value of property
supportRangesOnly
.
If this property is set to true, the value help dialog only supports the ranges (conditions) feature.
Default value is false
.
- Since:
- 1.24
Returns:
{boolean} | Value of property supportRangesOnly |
getTable(): object
Gives access to the internal table instance.
- Since:
- 1.28
Returns:
{object} | the used table instance |
getTokenDisplayBehaviour(): string
Gets current value of property
tokenDisplayBehaviour
.
Represents how the item token text should be displayed in ValueHelpDialog. Use one of the valid sap.ui.comp.smartfilterbar.ControlConfiguration.DISPLAYBEHAVIOUR values.
- Since:
- 1.24
Returns:
{string} | Value of property tokenDisplayBehaviour |
Sets a new value for property
basicSearchText
.
Defines the value for the basic search field. The value is set into the basic search field of the filter bar used.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sBasicSearchText | New value for property basicSearchText |
- Since:
- 1.24
Returns:
Sets a new value for property
descriptionKey
.
Defines the key of the column used for the token text.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sDescriptionKey | New value for property descriptionKey |
- Since:
- 1.24
Returns:
Sets a new value for property
displayFormat
.
Represents the display format of the range values. With the displayFormat
value UpperCase, the entered value of the range (condition) is converted to uppercase letters.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sDisplayFormat | New value for property displayFormat |
- Since:
- 1.24
Returns:
setExcludeRangeOperations(aOperation, sType)
Sets the array for the supported exclude range operations.
Parameters:
- Since:
- 1.24
Sets the aggregated filterBar
.
Parameters:
Returns:
Sets a new value for property
filterMode
.
Sets the dialog into a filter mode, which only shows ranges (conditions) and hides the tokens.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bFilterMode | New value for property filterMode |
- Since:
- 1.24
Returns:
setIncludeRangeOperations(aOperation, sType)
Sets the array for the supported include range operations.
Parameters:
- Since:
- 1.24
Sets a new value for property
key
.
Defines the key of the column used for the internal key handling. The value of the column is used for the token key and also to identify the row in the table.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sKey | New value for property key |
- Since:
- 1.24
Returns:
Sets a new value for property
keys
.
Defines the list of additional keys of the column used for the internal key handling.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string[]} | sKeys | New value for property keys |
- Since:
- 1.24
Returns:
Sets a new value for property
maxExcludeRanges
.
Defines the maximum number of exclude ranges.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is -1
.
Parameters:
{string} | sMaxExcludeRanges | New value for property maxExcludeRanges |
- Since:
- 1.24
Returns:
Sets a new value for property
maxIncludeRanges
.
Defines the maximum number of include ranges.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is -1
.
Parameters:
{string} | sMaxIncludeRanges | New value for property maxIncludeRanges |
- Since:
- 1.24
Returns:
setRangeKeyFields(aRangeKeyFields)
Sets a RangeKeyFields array. This method allows you to specify the KeyFields for the ranges. You can set an array of objects with Key and Label properties to define the key fields.
Parameters:
{object[]} | aRangeKeyFields | An array of range KeyFields [{key: "CompanyCode", label: "ID"}, {key:"CompanyName", label : "Name"}] |
- Since:
- 1.24
Sets a new value for property
supportMultiselect
.
Enables multi-selection in the table used.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bSupportMultiselect | New value for property supportMultiselect |
- Since:
- 1.24
Returns:
Sets a new value for property
supportRanges
.
Enables the ranges (conditions) feature in the dialog.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bSupportRanges | New value for property supportRanges |
- Since:
- 1.24
Returns:
Sets a new value for property
supportRangesOnly
.
If this property is set to true, the value help dialog only supports the ranges (conditions) feature.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bSupportRangesOnly | New value for property supportRangesOnly |
- Since:
- 1.24
Returns:
setTable(aTable)
Sets the table used in the value help dialog. If not used, the dialog creates a sap.ui.table.Table or sap.m.Table instance internally.
Parameters:
{object} | aTable | The used table control instance |
- Since:
- 1.32
Sets a new value for property
tokenDisplayBehaviour
.
Represents how the item token text should be displayed in ValueHelpDialog. Use one of the valid sap.ui.comp.smartfilterbar.ControlConfiguration.DISPLAYBEHAVIOUR values.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sTokenDisplayBehaviour | New value for property tokenDisplayBehaviour |
- Since:
- 1.24
Returns:
setTokens(aTokens)
Sets the array of tokens. The sap.m.Tokens are added to the dialog tokenizer Selected Items or Excluded Items. Normal tokens are added to the Selected Items tokenizer only and are selected in the table.
new sap.m.Token({key: "0001", text:"SAP A.G. (0001)"});
Tokens with the extra data with value 'range' are handled as range tokens or exclude range tokens.
new sap.m.Token({key: "i1", text: "ID: a..z"}).data("range", { "exclude": false, "operation": sap.ui.comp.valuehelpdialog.ValueHelpRangeOperation.BT, "keyField": "CompanyCode", "value1": "a", "value2": "z"});
The selected items or range tokens are returned in the event parameters of the Ok event.
Parameters:
- Since:
- 1.24
update()
Updates the selection of rows in the table. This function must be called after a first binding or binding update of the table. It will set a table row as selected if a token for this row exists.
- Since:
- 1.24