Skip to Content
May 11, 2016 at 08:43 AM

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


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 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