on 02-27-2017 4:24 AM
Hi,
Actually I am using sap.ui.model.Sorter to sort the sap.m.Table control
and I am getting the error in console i.e. "The following problem occurred:Request aborted"<br>
Please see the below code for sorting and attached screenshot.
///////For Sorting///////////////
onAfterRendering: function() {
var getSortedCompanyItem=[];
var companySort = new sap.ui.model.Sorter("active",true,false);
getSortedCompanyItem.push(companySort);
var companySortInstance=sap.ui.getCore().byId("companyTable");
var companysortListBinding= companySortInstance.getBinding("items","/AllCompanies/",sap.ui.getCore().byId("companyTableRows"));
companysortListBinding.sort(getSortedCompanyItem);
}
Please suggest something.
Thanks in Advance
Somdutt
var companysortListBinding= companySortInstance.getBinding("items").sort(getSortedCompanyItem);
Use this code for sorting...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.