on 07-12-2017 10:07 AM
I have an Odata service with one dataset. I want to fetch all record and loop through each row which contains 5 column, to form a customized string in SAPUI5.
How can i fetch each row in a loop from model. Kindly help.
Get var yourData = oData.getData() -> list of objects or rows of data.
For loop through the yourData array and get each row.
You can also use .forEach() function and then operate on each row/object in the variable.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
take data from model (oModel.getData()), and do for loop, or use $.map(oData, function(obj, index) { })
any issue you are getting ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.