Hey everyone, I have this so far:
table = event.source.parent.getComponent('Table') textField = event.source.parent.getComponent('Label') value = table.data textField.text = value.getValueAt(table.selectedRow,table.selectedColumn) system.tag.write("TESTT",textField.text)
I basically want the operator to be able to select a cell from a table and enter some data and when submitted that selected value gets used in the WHERE clause so the data can be inserted in the correct row.
I want the first column selected and what I have lets me do that, my issue is if I click on any other column I get an error saying
Traceback (most recent call last): File "<event:mouseClicked>", line 4, in <module> TypeError: can't convert 96 to java.lang.String
96 happened to be a value in that specific cell. I even tried another cell that is a time stamp just like the first row but got the same error. I would like to click on any cell and basically get the value of the first column of that row. I was also testing with writing to a tag facing the same problem.
I’d appreciate all the help. Thanks