To count the list and display beside the label ( counter with label ) sapui5

updateFinished="listUpdFnsh"


listUpdFnsh: function(oEvent){
var a = thatMaster.getView().byId("listPartner").getItems().length;
thatMaster.getView().byId("labelCustomerList").setText("Customer ".concat("( "+a+" )"));
},

Post a Comment

Previous Post Next Post