I'm new to openUI5 and need some clarification in regards to tables. I understand the difference between the index of displayed table information and the index into the model information. I need assistance in syntax.
1. If I have a case where I need to get at the specific cells of a table, without going through the model data, how do I do that? Initially I was using the getRows function in Table , however in reading the bug reports on github I see that getRows intentionally returns only the visible rows. I need all of the rows.
The table I am working with has validation on for the text fields (like integer only text field). However, invalid data doesn't stop the user from moving to other cells. The invalid data is displayed but not pushed to the model. So the user is viewing one thing and the model contains something else. I need to be able to step through the cells and identify the invalid content. What mechanism do I use to get at the cells of the table, not the model data?
2. I see the setSelectedIndex method in Table based on an index. My table has been sorted, then something happens and I have to programmatically need to set the selection. I know how to get from a table selection into the model - but how do I find the index in the table display for a model object? I know that the index in the model is not the same index as what is displayed in the table. i.e. even though ABCD is the first row in my model, it is not the first row in the sorted table. How do I figure out the row index of ABCD so I can use setSelectedIndex for it?