ObjectlistviewEvents Class
Service for triggering objectlistview events.
Item Index
Methods
- addRowTrigger
- clearMultiSelectedRecords
- clearSelectedRecords
- deleteAllRowsTrigger
- deleteRowsTrigger
- deleteRowTrigger
- editRecordDialogHiddenTrigger
- editRecordDialogHiddenTrigger
- filterByAnyMatchTrigger
- filterConditionChangedTrigger
- geSortApplyTrigger
- getLimitFunction
- getMultiSelectedRecords
- getOlvFilterColumnsArray
- getSelectedRecords
- holdMultiSelectedRecords
- init
- moveRowTrigger
- refreshListOnlyTrigger
- refreshListTrigger
- resetFiltersTrigger
- restoreSelectedRecords
- rowAddedTrigger
- rowDeletedTrigger
- rowDeletedTrigger
- rowsChangedTrigger
- rowSelectedTrigger
- setDefaultGeSortTrigger
- setGeSortTrigger
- setLimitFunction
- setLoadingState
- setOlvFilterColumnsArray
- setSortingTrigger
- updateSelectAll
- updateWidthTrigger
Methods
addRowTrigger
-
componentName
Trigger for "add new row" event in objectlistview. Event name: olvAddRow.
Parameters:
-
componentName
StringThe name of objectlistview component
clearMultiSelectedRecords
()
Removes all rows from list of selected rows from component.
clearSelectedRecords
-
componentName
Clears set of previously saved selected records for OLV component with specified name.
Parameters:
-
componentName
StringThe name of OLV component.
deleteAllRowsTrigger
-
componentName
-
filterQuery
Trigger for "delete all rows on all pages" event in objectlistview. Event name: olvDeleteAllRows.
deleteRowsTrigger
-
componentName
-
immediately
Trigger for "delete selected rows" event in objectlistview. Event name: olvDeleteRows.
deleteRowTrigger
-
componentName
-
immediately
Trigger for "delete current row" event in objectlistview. Event name: olvDeleteRow.
editRecordDialogHiddenTrigger
()
Triggers when edit record dialog was created.
editRecordDialogHiddenTrigger
()
Triggers when edit record dialog was hidden.
filterByAnyMatchTrigger
-
componentName
-
pattern
Trigger for "filter by any match" event in objectlistview.
filterConditionChangedTrigger
-
componentName
-
filter
-
newValue
-
oldvalue
Method to fire the filterConditionChanged
event.
geSortApplyTrigger
-
componentName
-
sorting
Trigger for "geSortApply" event in object-list-view. Event name: geSortApply.
getLimitFunction
-
componentName
Gets current limit function for OLV.
Parameters:
-
componentName
StringComponent name.
Returns:
Current limit function.
getMultiSelectedRecords
()
Returns a list of selected rows from component.
getOlvFilterColumnsArray
-
componentName
Returns the set of columns with filters saved for the flexberry-objectlistview
component.
Parameters:
-
componentName
StringThe name of the component for which you want to get filters.
Returns:
The set of columns with filters.
getSelectedRecords
-
componentName
Returns map with previously saved selected records for OLV component with specified name.
Parameters:
-
componentName
StringThe name of OLV component.
Returns:
Selected records for OLV component.
holdMultiSelectedRecords
()
Remembers all selected rows to keep them when page is changing.
init
()
Init service.
moveRowTrigger
-
componentName
-
shift
Trigger for "moveRowTrigger" event in objectlistview. Event name: moveRow.
Parameters:
-
componentName
StringThe name of objectlistview component
-
shift
IntegerShift for rows
refreshListOnlyTrigger
-
componentName
Trigger for "refresh list" event in OLV component by name.
Parameters:
-
componentName
StringThe name of OLV component.
refreshListTrigger
-
componentName
Trigger for "refresh list" event in OLV component.
Parameters:
-
componentName
StringThe name of OLV component.
resetFiltersTrigger
-
componentName
Trigger for "reset filters" event in simpleolv. Event name: resetFilters.
Parameters:
-
componentName
StringThe name of simpleolv component.
restoreSelectedRecords
()
Creates records with all remembered multiselected rows.
rowAddedTrigger
-
componentName
-
record
Trigger for "new row has been added" event in objectlistview. Event name: olvRowAdded.
rowDeletedTrigger
-
componentName
-
record
-
immediately
Trigger for "row has been deleted" event in objectlistview. Event name: olvRowDeleted.
rowDeletedTrigger
-
componentName
-
count
-
immediately
Trigger for "selected rows has been deleted" event in objectlistview. Event name: groupEditRowDeleted.
rowsChangedTrigger
-
componentName
Trigger for "model(s) corresponding to some row(s) was changed" event in objectlistview. Event name: olvRowsChanged.
Parameters:
-
componentName
StringThe name of objectlistview component
rowSelectedTrigger
-
componentName
-
record
-
count
-
checked
-
recordWithKey
Trigger for "row has been selected" event in objectlistview. Event name: olvRowSelected.
Parameters:
-
componentName
StringThe name of objectlistview component
-
record
DS.ModelThe model corresponding to selected row in objectlistview
-
count
NumberCount of selected rows in objectlistview
-
checked
BooleanCurrent state of row in objectlistview (checked or not)
-
recordWithKey
ObjectThe model wrapper with additional key corresponding to selected row
setDefaultGeSortTrigger
-
colDescs
Trigger for "setDefaultGeSort" event in route. Event name: setDefaultGeSort.
Parameters:
-
colDescs
ArrayArray column descriptions.
setGeSortTrigger
-
componentName
-
sorting
-
colDescs
Trigger for "setGeSort" event in route. Event name: setGeSort.
setLimitFunction
-
limitFunction
-
componentName
Sets current limit function for OLV.
Parameters:
-
limitFunction
BasePredicateCurrent limit function.
-
componentName
StringComponent name.
setLoadingState
-
loadingState
Method that sets the form's loading state. This method is deprecated, use app state service.
Parameters:
-
loadingState
StringLoading state for set.
setOlvFilterColumnsArray
-
componentName
-
columns
Saves the set of columns with filters for the flexberry-objectlistview
component.
setSortingTrigger
-
componentName
-
sorting
Trigger for "setSorting" event in route. Event name: setSorting.
updateSelectAll
-
componentName
-
selectAllParameter
-
skipConfugureRows
Trigger for "selectAll" event in object-list-view. Event name: updateSelectAll.
updateWidthTrigger
-
componentName
Trigger for "updateWidth" event in object-list-view. Event name: updateWidth.
Parameters:
-
componentName
StringThe name of object-list-view component (can be undefined for update all components widths).