Printing a table

using the script below it nicely prints the table. Is there a way to make it print a string of text indicating the device that the info is from? I can always setup the query to show the device name in its own row, but was just wondering if there is a way to get some kind of reference to the device on their.

table = event.source.parent.getComponent(“Table”) # Get a reference to the table


Not really, you have add the data to your dataset like you mentioned.