Hey so I’m having a little trouble using code to fill in tables on different windows.
I have a filled in data table on my main window and I am trying to get the scripting to work so that when I select multiple rows in the Table and then press a button, it copy’s those selected rows to a table in a new window.
Here is the Script I have written. It doesn’t throw an error but it doesn’t fill in the Table on window “T1”
event.source.parent.getComponent('Table').data = dataOut #selected rows I want to Copy T1Data = dataOut.selectedRows #header of Table copy Headers = system.dataset.getColumnHeaders("Table").text New = system.dataset.toDataset(Header, T1Data) system.gui.getwindow("T1").rootContainer.getComponent("TableT1").data = New