on 05-05-2014 3:06 PM
hi all.
my xml view;
<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
controllerName="sapui5.appView" xmlns:html="http://www.w3.org/1999/xhtml">
<Page title="UI5 Telefon Rehberi">
<content>
<List
id="contactList"
items="{/}"
>
<StandardListItem
type="Navigation"
press="handlePress"
/>
</List>
</content>
</Page>
</core:View>
i try access this list;
var list = sap.ui.getCore().byId("contactList");
list undefined.please help me.i will be set data this list.
var list = new sap.m.List();
list.bindAggregation("items",{path:'/', template : oItemTemplate,
sorter : oNameSorter});
bla bla.
solution;
var list = this.getView().byId("contactList");
list.bindAggregation("items",{path:'/', template : oItemTemplate,
sorter : oNameSorter});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.