on 05-12-2014 4:58 PM
Hi im trying to create standatListItem with "Notes" data in iconTabFilter but cant access data from json file.
XML view:
<IconTabBar
class="iconTabBarPaddingTop" >
<items>
<IconTabFilter
id="SupplierForm"
icon="sap-icon://notes">
<content>
<List items="/Notes">
<StandardListItem
type="Active"
tap= "onListItemTap"
title="{Author}" />
</List>
</content>
</IconTabFilter>
</IconTabBar>
on Controller :
onBeforeRendering:function(){
this.byId("SupplierForm").bindElement("Notes");
},
Thx for help
try
this.byId("SupplierForm").bindElement("/");
and is your json model set as core ?
sap.ui.getCore().setModel()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so you need to display all Notes from all content elemnts? you cant do it by simple binding
what you can do
Object.defineProperty(sap.ui.getCore().getModel().getData(), "AllNotes", {
get: function () {
return $.map(sap.ui.getCore().getModel().getData().content,
function (val, i) {
return val.Notes;
});
}
});
this.byId("SupplierForm").bindElement("/AllNotes");
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.