Skip to Content
0

Help please! I want a display all the elements all the elements of my model.

Apr 23 at 03:32 PM

19

avatar image
Former Member
Hello everyone !

I created a list that is bind to a model that includes 200 elements, 
but my list only shows me 100 articles.
How could I display all the elements that are in my JSON model.


Thanks guy!
// Airport.controller.js


    onInit: function() {
			
			

			var oList = this.getView().byId("List01");


			oList.bindItems({
				path: "JSON>/products",
				template: new sap.m.StandardListItem({
				type : "Navigation",
				title: "{JSON>fields/aeroport}",
					press:[this.onPress ,this]
				})
			});
		
		},
// Airport.view.xml

<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" controllerName="SAPUI5CoolProject.controller.OtherAirport" 
xmlns:html="http://www.w3.org/1999/xhtml">
	

<App id="OtherAirport">
<pages>
<Page title="All airport" showNavButton="true" navButtonPress="goBackPrincipalPage">
<List headerText="All airport"  id="List01" press= "onPress"  >
<headerToolbar>
<Toolbar>
<Title text="All airport"/>
<ToolbarSpacer/>
<SearchField width="40%" placeholder="Recherche" search="onFilterAirport" />
</Toolbar>
</headerToolbar>
</List>
</Page>
</pages>
</App>
</mvc:View>


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sharath M G Apr 23 at 03:39 PM
0

the framework defaults the query to only 100 rows. You may manually invoke service and bind data json to select control and this should bypass the framework default.

Regards,

Sharath

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Sharath !

Thanks for your answer :)

Regards.

Mathieu.

0