Skip to Content
0
Former Member
Dec 09, 2013 at 09:36 PM

Databinding with element count

22 Views

Hi,

I got a list Item:

itm = new sap.m.ObjectListItem({

title : "Ansprechpartner",

icon:sap.ui.core.IconPool.getIconURI("employee"),

type: "Navigation",

unread : true,

counter: 3,

press: showContacts

});

menuList.addItem(itm);

The List Item should be bind to a model.

Instead of having hardcoded the value "3" I want do have a counter showing the elements under /customer/0/contacts

I there a syntax, how I can do a count, e.g.

counter: {contacts@count},

Thanks

Jens