Skip to Content

Unable to read row data in sap.ui.table through getRows()

Hi,

I have a sap.ui.table which contains 20 Rows and 5 columns. I have an input field in first column. So User selects any row and will enter the input field in the first column. I am able to read the table input field through .getRows[index].getCells[index] successfully. This works fine upto first 14 rows. After 14 rows , its throwing "undefined" error messsage. How will I read the entered input of 15th row or higher than that? I can get other column data through model. But How do I read First column data(input field) which is in 15th row or above? I

".getRows[index].getCells[index] is not working only for 15th row or above".

Please refer the below blog.

Note: https://github.com/SAP/openui5/issues/393

Regards

Karthik S

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 05, 2017 at 12:18 PM

    Hi ,

    what is your visible row count for the table ? ..Only to that value index you can read like this .. because in this control the table has only that much amount of rows .. they are using the same rows for all the other data in the table

    Thanks

    Viplove

    Add comment
    10|10000 characters needed characters exceeded

    • Same issue here: the problem with getRows() method is it returns only # of visible rows (which is defined in property visibleRowCount of the ui.table). I am wondering why it works this strange way?