on 08-24-2015 7:58 AM
Hi all..
I am facing this peculiar issue .. I have a button on click of that button a pop up comes , and the data in the pop is coming where the data is coming through odata service. and there is a sort option ..
and when i try to sort it i could see some of the datas are not being showed though present. .
i have used scroll container .
Have attached the screenshot.
.
Hallo DM
Are you using an array to load the oData in? There is a limit of 80 or 100 I think? Then it creates a second array. To prevent the array from splitting (you can see it in console), use the following code when generating your list:
myArray = oData.results;
listMyArray = { items : myArray };
var oItemTemplate = new sap.ui.core.ListItem();
oItemTemplate.bindProperty("key", "<array1st>");
oItemTemplate.bindProperty("text", "<array2nd>");
var oMyModel = new sap.ui.model.json.JSONModel(listMyArray);
oMyModel.setSizeLimit(listMyArray.items.length);
var oDropDownBox = sap.ui.getCore().byId("ddbID"); // in this example it is a dropdown box
oDropDownBox.setModel(oMyModel);
oDropDownBox.bindItems("/items", oItemTemplate);
Hope this helps
Antonette
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Antonette .. it worked!!..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi D M,
I second Antonette suggestion here. It could be because of the model size limit that you're not able to view the latest data. Increase the size limit.
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.Model
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
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.