cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the variable dynamically to the bind list item in sapui5.

0 Kudos
811

Hi experts ,

I developed one sapui5 application. in that application i am facing one  problem . The problem is  i bind the list item in onInit function like this

this.getView().byId("list").bindItems("loginPage>/d/results",oTemplate,sorting,null);

this is working fine .

var sorting = new sap.ui.model.Sorter("Ebeln", false);

here i have to know how to set the variable dynamically in place of sorting varialble. for example

press : function() {

var sorting123 = new sap.ui.model.Sorter("Ebeln", true);


here i have to get the bind list item and i have to set this(sorting123) instead of sorting variable

}

if u get any idea or if i may doing  wrong  plz guide me and plz share your comments ,

Warm Regards ,

Damian .A

View Entire Topic
former_member225463
Participant
0 Kudos

Hi Damian,

your sorter should change dynamically based on some events right?

you can have one sorter variable and update that variable as per your requirement?

Regards,

Vikash