Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Autocomplete Control used as template for table field not showing full json array. How to use setSizeLimit() method in this case?

Hello experts,

I am using autocompleet control in my project in the following manner:

stockTable.addColumn(new sap.ui.table.Column({

  label: new sap.ui.commons.Label({text: "Product Name",wrapping : true}),

template:  new sap.ui.commons.AutoComplete({

  tooltip: "Enter Product name",

  id : "prodListId",

  maxPopupItems: 5,

  items: {

                 path: "/",

                 template: new sap.ui.core.ListItem({text: "{PRODUCTNAME}", wrapping: true})

            },

  liveChange : function(oEvent) {

  oController.fetchProducts();

  },

  })

})

Now the control is showing only 99 values. I went through following scn link :

Autocomplete control with a large JSON array

still i am not able to figure out how to use setSizeLimit() method in my case.

In my case auto complete control is part of my table and i am binding my table with a model. I tried setting size limit of the model which i was bvinding to the corresponding table, but still it shows only 99 values.

Please tell me how do i set value in my case.

Thank you,

Best Regards,

Chetna

Former Member
Not what you were looking for? View more on this topic or Ask a question