cancel
Showing results for 
Search instead for 
Did you mean: 

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

kalpeshsb
Explorer
0 Kudos
301

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

View Entire Topic
former_member227918
Active Contributor
0 Kudos

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.

kalpeshsb
Explorer
0 Kudos

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.