Skip to Content
avatar image
Former Member

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

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>


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 23 at 03:39 PM

    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

    Add comment
    10|10000 characters needed characters exceeded