on 08-08-2018 5:44 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.