Skip to Content
avatar image
Former Member

Autocomplete control with a large JSON array

Ok, I've been googling for a few days now trying to figure this out, but can't seem to find any references.  Trying a POC with autocomplete backended with a HANA Attribute view.

I'm binding a rather large JSONModel() to an AutoComplete control.  The JSON is coming from a local XS oData service that is frontending an AttributeView on SAP HANA One.  Chrome 31 is my target browser...

    oModel = new sap.ui.model.json.JSONModel();


           //Create a AutoComplete control and bind the items

          var oAuto = new sap.ui.commons.AutoComplete({

                    tooltip: "Enter a name",

                    width: "100%",

                    maxPopupItems: 5,

                    displaySecondaryValues: false,

                    items: {

                              path: "/d/results/",

                              template: new sap.ui.core.ListItem({text: "{NAME}"})




          //attach it to some element in the page


The JSONModel gets populated and I can see all 30,346 values in the results array.  However, the Autocomplete control at runtime only allows me to pull up the first 99 rows.  It seems to be linked to how the results are grouped in the JavaScript Console watch expression.

Wondering if I'm missing some key property which tells autocomplete to look at the whole array...

Thanks in advance,


Message was edited by: SCOTT PLETCHER

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 26, 2013 at 06:43 AM

    Hi Scott,

    Use the method setSizeLimit

    Thanks and regards, Venkatesh

    Add comment
    10|10000 characters needed characters exceeded