Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 05, 2017 at 09:02 AM

    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.

    Add comment
    10|10000 characters needed 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)