I have a table and a button on a screen. When I press the button it takes and uses the HTML and sends the data to my email address. It works well except, if you are editing a cell and instead of pressing TAB or ENTER you simply click on another object on the screen. Now when it sends the data via email the last information you entered is not in the email. It is almost as if the TAB or ENTER key locks in the changes to the table.
So my first guess is that I need to add in something to the FOCUS LOST script setting of the table. Attached is the code that I have written so far. The only problem is that it still does not enter in the data. Because when I send it via email that line is still blank. So could you please assist and tell me what I am missing in this code. Thank you.
This code is in the FOCUS LOST of the table.
x = event.source.selectedRow
y = event.source.selectedColumn
table = event.source.parent.getComponent("Table")
newdata = table.data.getValueAt(x,y)
table.setValue(y, x, newdata)
Now I can also tell you that i have viewed this information in CONSOLE and using the print command I can see that X, Y, and NEWDATA are correct values. Hope this is clear. Thanks again and have a great day.