sap.ui.ux3.DataSet.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.ux3.DataSet 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.core.Control.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.ux3.DataSet.
Returns:
_rerenderFilter()
Rerendering of the FilterArea
_rerenderToolbar()
Rerendering of the Toolbar
Adds some filter to the aggregation filter.
Parameters:
Returns:
Adds some item to the aggregation items.
Parameters:
Returns:
addToolbarItem(oOToolbarItem): void
add a toolbarItem to the toolbar
Parameters:
Adds some view to the aggregation views.
Parameters:
Returns:
Attaches event handler
fnFunction to the
search event of this
sap.ui.ux3.DataSet.
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.ux3.DataSet itself.
Event which is fired when the user triggers a search
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.ux3.DataSet itself |
Returns:
Attaches event handler
fnFunction to the
selectionChanged event of this
sap.ui.ux3.DataSet.
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.ux3.DataSet itself.
selection Changed
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.ux3.DataSet itself |
Returns:
Parameters:
| {object} | oBindingInfo | The binding information |
Returns:
clearSelection()
clears dataset from all previous selections
createViewSwitch(oView, iIndex): object
Creates a view switch button
Parameters:
| {object} | oView | View |
| {int} | iIndex | Index of view |
Returns:
| {object} | viewSwitch instance |
Destroys all the filter in the aggregation filter.
Returns:
Destroys all the items in the aggregation items.
Returns:
Destroys all the views in the aggregation views.
Returns:
Detaches event handler
fnFunction from the
search event of this
sap.ui.ux3.DataSet.
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 |
Returns:
Detaches event handler
fnFunction from the
selectionChanged event of this
sap.ui.ux3.DataSet.
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 |
Returns:
Fires event
search to attached listeners.
Expects the following event parameters:
query of type stringThe search query
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
selectionChanged to attached listeners.
Expects the following event parameters:
oldLeadSelectedIndex of type intOld lead selected indexnewLeadSelectedIndex of type intNew lead selected index
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
filter.
Filter control (e.g. a FacetFilter) for the DataSet
Returns:
Gets content of aggregation
items.
Aggregation of DataSetItems
Returns:
getLeadSelection(sItemId): int
Returns the LeadSelection index
Parameters:
| {string} | sItemId | Id of the selected DataSetItem |
Returns:
getMultiSelect(): boolean
Gets current value of property
multiSelect.
Selection mode of the DataSet
Default value is false.
Returns:
| {boolean} | Value of property multiSelect |
getSelectedIndex()
use this function to retrieve the lead selected index
getSelectedIndices()
use this function to retrieve all selected indices if multiple select is enabled
getSelectedItemId(iIndex): string
Returns id of selected Item from given index
Parameters:
| {int} | iIndex | index of selection |
Returns:
| {string} | id of selected item |
ID of the element which is the current target of the association selectedView, or null.
Returns:
getShowFilter(): boolean
Gets current value of property
showFilter.
show filter
Default value is true.
Returns:
| {boolean} | Value of property showFilter |
getShowSearchField(): boolean
Gets current value of property
showSearchField.
Show/hide SearchField in Toolbar
Default value is true.
Returns:
| {boolean} | Value of property showSearchField |
getShowToolbar(): boolean
Gets current value of property
showToolbar.
show Toolbar
Default value is true.
Returns:
| {boolean} | Value of property showToolbar |
Gets content of aggregation
views.
views
Returns:
indexOfFilter(oFilter): int
Checks for the provided sap.ui.core.Control in the aggregation filter. 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 |
indexOfItem(oItem): int
Checks for the provided sap.ui.ux3.DataSetItem in the aggregation items. 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 |
indexOfView(oView): int
Checks for the provided sap.ui.ux3.DataSetView in the aggregation views. 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 filter into the aggregation filter.
Parameters:
| {sap.ui.core.Control} | oFilter | the filter to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the filter should be inserted at; for a negative value of iIndex, the filter is inserted at position 0; for a value greater than the current size of the aggregation, the filter is inserted at the last position |
Returns:
Inserts a item into the aggregation items.
Parameters:
| {sap.ui.ux3.DataSetItem} | oItem | the item to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the item should be inserted at; for a negative value of iIndex, the item is inserted at position 0; for a value greater than the current size of the aggregation, the item is inserted at the last position |
Returns:
Inserts a view into the aggregation views.
Parameters:
| {sap.ui.ux3.DataSetView} | oView | the view to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the view should be inserted at; for a negative value of iIndex, the view is inserted at position 0; for a value greater than the current size of the aggregation, the view is inserted at the last position |
Returns:
isSelectedIndex(iIndex): boolean
Returns true if iIndex is selected
Parameters:
| {int} | iIndex | index of selection |
Returns:
| {boolean} | index selected true/false |
Removes all the controls from the aggregation
filter.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
items.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
views.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a filter from the aggregation filter.
Parameters:
Returns:
Removes a item from the aggregation items.
Parameters:
Returns:
removeToolbarItem(oOToolbarItem): void
remove a toolbarItem to the toolbar
Parameters:
Removes a view from the aggregation views.
Parameters:
Returns:
setLeadSelection(iIIndex): void
Set the LeadSelection index
Parameters:
| {int} | iIIndex | set LeadSelection index |
setMultiSelect(bMode)
setter for multi selection mode
Parameters:
| {boolean} | bMode | true for multi mode, false for single mode |
Sets the associated selectedView.
Parameters:
| {sap.ui.ux3.DataSetView} | oSelectedView | Id of an element which becomes the new target of this selectedView association; alternatively, an element instance may be given |
Returns:
Sets a new value for property
showFilter.
show filter
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowFilter | New value for property showFilter |
Returns:
Sets a new value for property
showSearchField.
Show/hide SearchField in Toolbar
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowSearchField | New value for property showSearchField |
Returns:
Sets a new value for property
showToolbar.
show Toolbar
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bShowToolbar | New value for property showToolbar |
Returns:
Unbinds aggregation items from model data.
Returns: