cancel
Showing results for 
Search instead for 
Did you mean: 

Not all data is getting showed in the pop up.

former_member269453
Participant
0 Kudos

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.

.

Accepted Solutions (1)

Accepted Solutions (1)

antonette_oberholster
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

former_member269453
Participant
0 Kudos

Thank you Antonette .. it worked!!..

saivellanki
Active Contributor
0 Kudos

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.