I have a table and allow the user to select rows. When the selected row changes I run a script to pull out and echo back to the user some values that will be changed.
I have no problem with text and integers, but the date is a problem.
I capture the date like this:
TimeStamp = table.data.getValueAt(table.selectedRow, “Line State Event Begin”)
Then I try to writ it to a label on the screen like this:
event.source.parent.getComponent(‘LabelDate’).text = TimeStamp
Which give the error “TypeError: can’t convert Sun Jan 10 16:04:50 EST 2021 to java.lang.String”
If I instead write it to a date tag like this:
system.tag.write("[client]TimeStamp", TimeStamp)
and then use that tag in the label, then it works.
I want to write directly to the label.
I’m missing something simple, right?