I am trying to set my tables “initially selected row” based on a column value when the window is first opened. I have a custom property in my window with the variable for the column value comparison. How do i find the row based on the column value and should i do this in the “Initially Selected Row” expression or in a script on the table? Code below does not work when the window is first opened. I have this in the property change script of the table.
table = event.source.parent.getComponent('table') data = table.data for row in range(data.rowCount): if data.getValueAt(row, "ColName") == "value" table.initialRowSelection = row