Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2069

how to do sorting in the list by using url

$
0
0

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.


Viewing all articles
Browse latest Browse all 2069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>