cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos
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>


Accepted Solutions (1)

Accepted Solutions (1)

Sharathmg
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Sharath !

Thanks for your answer 🙂

Regards.

Mathieu.

Answers (0)