vthomeschoolmom
6 years agoSuper Contributor
Get to a table ROW in Chrome
So I have some tests. Like a jerk, I did not test them on Chrome. Observe the following code:
// This value drives the DISPLAY of a selected row and demonstrates that it is or is not selected. // This has only been proven for activity data grid. This needs to be proved on future grids. function IsRowSelected(row) { var rowClassName = row.className; if (rowClassName.includes("row-selected")) { return true; } return false; } // Select desired cell. If not already selected, click it. (If // it is already selected do not click as clicking will de-select.) function SelectCell(table, rowIndex, colIndex) { var row = table.Row(rowIndex); if (!IsRowSelected(row)) { table.Cell(rowIndex, colIndex).scrollIntoView(); aqUtils.Delay(ProjectSuite.Variables.TinyWaitTimeout); /// inconsistent error on click table.Cell(rowIndex, colIndex).Click(); } }
Chrome does not expose a Row object.
This works in Edge and IE. I have not tested Firefox yet, but it is next on my list.
Being able to access the Row by index is pretty cool. Is this just not accessible for certain browsers?
Thanks
Hi All,
As far as I understand this question is related to this one. Let's keep the conversation there.