Class 

sap.m.ViewSettingsDialog


About

ViewSettingsDialog provides functionality to easily select the options for sorting, grouping, and filtering data. It is a composite control, consisting of a modal popover and several internal lists. There are three different tabs (Sort, Group, Filter) in the dialog that can be activated by filling the respecive associations. If only one assication is filled, the other tabs are automatically hidden. The selected options can be used to create sorters and filters for the table.


Use

The TableSetting object needs to be placed as a child to the sap.m.Table object. For Sorting, Grouping and Filter, add these objects as child to TableSetting object. 



Create a button to open the TableSetting object by objectName.open();




Confirm Event


We provide a default script for the confirm event. Can be found in the event script editor, right click and navigate to SAPUI5 -> List/Table (mobile) -> TableSetting Confirm





TableSettingFilter


To use the filter items with the confirm event script, please set the key attribute for the filter item to following structure:


Tip: Key attribute value = field name of Internal Table - always in uppercase.


FIELD__OPERATOR_LOW_HIGH




TableSettingSort




TableSettingGroup




Reference


API


Testsuite