on 04-23-2018 4:32 PM
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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.