on 2017 Apr 05 6:57 AM
Hi Experts,
I am trying to fetch selected multiple rows from a grid table into another table or a JSON array/object on a submit button press. I could do it successfully by using Run time JSON model. But the issue is, I can do it for only 10 selected rows (maybe because getRows() method returns an array of size 10). While doing it for the 11th row, I get following error.
My button press event is as follows:
My objective is to fetch more than 10 selected rows. Please suggest another way.
Regards,
Kalpesh
Request clarification before answering.
getRows() will return 10 rows only, I am not sure this a bug, but you can use below code to resolved your issue.
arr = selected indices
in for loop,
var sBindingPath = oTable.getContextByIndex(arr[i]);
var value = sBindingPath.getObject().property (property is your bound property for your column)
Hope this help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akhilesh,
Thanks for your prompt reply.
I used getContextByIndex() method as you suggested and just a little modification gave me the desired output.
This didn't work for me though.
--> var value = sBindingPath.getObject().property (property is your bound property for your column)
Thanks and regards,
Kalpesh.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.