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.
Hi...
i Used this. but still i get NO Data...
<List id="idList" headerText="Product Overview"
items="{/SalesOrderCollection }">
but on using the other solution it works fine.. thank you..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.. it would be really nice if u give the reasons also. that why i need to do it.. it will be helpful...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use,
<listheaderText="Product overview"
items="{/SalesOrderCollection}">
remove the "path" inside the items in ur code and try,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi indrajith.. Thanks for you reply...
COuld you please tell me why you used the path :'/salesordercollection' ;
instead of {'/salesordercollection'}..
it would be much appreciated if u could explain me..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.