hi
In my application i have to do sorting in the list by using url (odata services) but here without using spath.
here my binding code is
var oTemplate = new sap.m.ObjectListItem({
type: sap.m.ListType.Active,
id:"po",
title: "{loginPage>Ebeln}",key:"Ebeln",
sorter : {
path : 'Ebeln',
group : false
},
press:[that.onListItemPress, that ],
attributes : [
new sap.m.ObjectAttribute( "ven",{
title:"Vendor",
text : "{loginPage>Lifnr}",
}) , new sap.m.ObjectAttribute({
title :"Quantity" ,
text : "{loginPage>Menge}"
}) , new sap.m.ObjectAttribute({
title:"Amount" ,
text : "{loginPage>Value2}"
})
this.getView().byId("list").bindItems("loginPage>/xxxxxxxxx",oTemplate,null,null);
After selecting some "buton" want to sort the Ebeln data in ascending order.