Skip to Content
0

Fetch multiple selected rows from grid table (more than 10 selected rows)

Apr 05, 2017 at 05:57 AM

27

avatar image

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

err.png (3.1 kB)
press-evt.png (18.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Akhilesh Upadhyay Apr 05, 2017 at 09:02 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

reply.png (6.0 kB)
0