![]() This._openDialog("MainFilter", "filter", this._presetSettingsItems) Opens View Settings Dialog on Filter page This._openDialog("MainFilter", "sort", this._presetSettingsItems) Every button has a handler method to be called when is pressed, and will open the corresponding section of the ViewSettingsDialog (Filter, Sort or Group).ĭefine the handlers: // Opens View Settings Dialog on Filter page If desired and for better clean code approach, the following code can also be inserted in a separated controller for the MainFilter fragment.Īs defined in the MainView, the buttons for Filtering, Sorting and Grouping are defined inside the table toolbar. This controller will manage the MainView view and also the MainFilter fragment. The dataset used for this example has the following structure: " textDirection="Inherit" visible="true" />Ĭreate a new fragment called ‘MainFilter’ to use it as a container to show the Sorting, Filtering and Grouping options to the user in a new Dialog. Git repository of this blog application can be downloaded here. So, we have to develop a dynamic way to define the columns and their values. In this case, the table can contain any type of values for a specific column, so the values cannot be defined statically. The columns and their values to be used to sort, filter and group can be defined statically in the XML view of the ViewSettingsDialog (see an SAP sample here). ![]() ![]() Today I’m going to explain how to Sort, Filter and Group data within a List (sap.m.List) or a table (sap.m.Table) with the ViewSettingsDialog element in a dynamic form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |