Skip to Content
avatar image
Former Member

Filter table doesn't work

Hello everyone!

I have one problem with Filter table. Grouping is working but Ascending und Descending don't work....I cannot understand why...


This is my code.

    handleConfirm: function(oEvent) {
        var oView = this.getView();
        var oTable = oView.byId("idStats");

        var mParams = oEvent.getParameters();
        var oBinding = oTable.getBinding("items");

        // apply sorter to binding
        // (grouping comes before sorting)
        var aSorters = [];

        if (mParams.groupItem) {
            var sPath = mParams.groupItem.getKey();
            var bDescending = mParams.groupDescending;
            var vGroup = this.mGroupFunctions[sPath];
            aSorters.push(new sap.ui.model.Sorter(sPath, bDescending, vGroup));
        var sPath = mParams.sortItem.getKey();
        var bDescending = mParams.sortDescending;
        aSorters.push(new sap.ui.model.Sorter(sPath, bDescending));

f4.png (49.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers