In odata visitors navigate to clients (multiplicity 1 to 1), clients navigate to photos. To access the count property I do the following:
/visitors(1)/clients/photos/$count
I have a master-detail app bound to visitors, detail view contains icon tab filter, one tab of which is bound to clients. I want to display the number of photos belonging to this client in this tab.
My code is like this:
<IconTabFilter
binding="{clients}"
visible="{= ${CHECK_PHOTO} === 0}"
id="iconTabBarFilter2"
icon="sap-icon://attachment"
tooltip="{i18n>detailIconTabBarAttachments}">
<Text text="{= ${photos}.length}"/>
</IconTabFilter>
But no text is displayed. What's wrong?
This code works fine and shows the list of bound photos:
<IconTabFilter
binding="{clients}"
visible="{= ${CHECK_PHOTO} === 0}"
id="iconTabBarFilter2"
icon="sap-icon://attachment"
tooltip="{i18n>detailIconTabBarAttachments}">
<List items="{photos}">
<ObjectListItem
title="{PHOTO_ID}">
</ObjectListItem>
</List>
</IconTabFilter>