on 04-03-2015 9:12 AM
Hi...
I am facing a certain issue. Please have a looh.
requirement: data needs to be populated in a List suing a XML view
What Done : i have created App View and the model has been set in init function of the app controller.
onInit : function() {
sap.ui.getCore().setModel(
new sap.ui.model.json.JSONModel("model/app.json"));
i have created a xml view
<List headerText="Product Overview"
items="{
path: '{/SalesOrderCollection}'
}">
<StandardListItem title="{SoId}"
type="Navigation" press="handleProductListItemPress" />
</List>
Output : But in the List No data comes....
Regards
Dipankar
var oModel = new sap.ui.model.json.JSONModel("model/app.json")
this.getView().setModel(oModel);
And the path should be
path: '/SalesOrderCollection'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.