on 11-07-2016 11:03 AM
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));
oBinding.sort(aSorters);
},
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.