Skip to Content
avatar image
Former Member

On Sort "Request aborted" error is coming


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
requestaborted.jpg (71.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 27, 2017 at 10:37 PM
    var companysortListBinding= companySortInstance.getBinding("items").sort(getSortedCompanyItem);

    Use this code for sorting...

    Add comment
    10|10000 characters needed characters exceeded