cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all table items , after applied Growing Threshold Value?

Jayakrishnan
Active Participant
0 Kudos

Hi All,

I am working on one Custom SAPUI5 Application development. In my application, i have a table with a growing feature. i set the threshold vlaue as 3. in addition to this i ahve print button at the top, when i click it it should print all the table values irrespective of thresold value.

This is my screen:

and initially i tried with below code. it return only the visible items.

var oModelObject = oTable.getItems();

But i need all the 9 items to be printed.

i tried the below option as well.

oTable.getModel().getData();// this also returning undefined or null

Please help me to sort it out.

Thank you,

Regards,

JK.

View Entire Topic
Jayakrishnan
Active Participant
0 Kudos

Referring to this Post I am able to get the values from oTable.getModel()oData.

var labelText = oTable.getModel().oData;
var keys = Object.keys(labelText);
for (var i = 0; i < keys.length; i++) {
    var c = labelText[keys[i]].StreetName;
}

link: https://stackoverflow.com/questions/39070956/how-to-go-through-each-object-in-odata

But as I facing an additional issue, like it is not getting refreshed.(labelText object).

As per my scenario when I click the first chart it works fine, all the related values are getting displayed. if I click the another column in the chart, it adding with the existing model collection data. Hope you are clear.

former_member340030
Contributor
0 Kudos

Can you show how are you binding the data on click of the chart column to the table..