Ignition - Power Table Initialize Extension Function

Hello, I am trying to do some scripting on a power table and I am having trouble. Basically, I want to have a table of “tags” that get read on the initial load. The first column of the table is the tag I want to read, and the second column in the table should be the value of each tag. Here’s my method:

This is happening because the self.getData() method returns an unexpected datatype. Anybody have any idea of how to solve this?

Just saw that I was not calling a valid method with getValue…it is supposed to be getValueAt.

Instead of self.getData I think you just want self.data. You have several other syntax errors in there. Have you seen this document? https://support.inductiveautomation.com/index.php?/Knowledgebase/Article/View/109/2/working-with-power-table-extension-functions

Edit: Welcome to the forum!

Looking at the docs self.data and self.getData() return the same variable. This attached picture is working like I want.

1 Like