# Ignition - Power Table Initialize Extension Function

**URL:** <https://forum.inductiveautomation.com/t/ignition-power-table-initialize-extension-function/19264>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [August 15, 2018, 2:22pm UTC](https://forum.inductiveautomation.com/t/ignition-power-table-initialize-extension-function/19264 "2018-08-15T14:22:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher.panici](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/christopher.panici/32/5814_2.png) [@christopher.panici](https://forum.inductiveautomation.com/u/christopher.panici)\
**Post date:** [August 15, 2018, 2:22pm UTC](https://forum.inductiveautomation.com/t/ignition-power-table-initialize-extension-function/19264/1 "2018-08-15T14:22:19Z")

</div>

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:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a08ecff9bf3f9574f4120f54a49b0ff4172c6337.png)

---

<div class="post-metadata">

**Author:** ![christopher.panici](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/christopher.panici/32/5814_2.png) [@christopher.panici](https://forum.inductiveautomation.com/u/christopher.panici)\
**Post date:** [August 15, 2018, 2:24pm UTC](https://forum.inductiveautomation.com/t/ignition-power-table-initialize-extension-function/19264/2 "2018-08-15T14:24:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![christopher.panici](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/christopher.panici/32/5814_2.png) [@christopher.panici](https://forum.inductiveautomation.com/u/christopher.panici)\
**Post date:** [August 15, 2018, 2:41pm UTC](https://forum.inductiveautomation.com/t/ignition-power-table-initialize-extension-function/19264/3 "2018-08-15T14:41:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [August 15, 2018, 2:41pm UTC](https://forum.inductiveautomation.com/t/ignition-power-table-initialize-extension-function/19264/4 "2018-08-15T14:41:42Z")

</div>

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](https://support.inductiveautomation.com/index.php?/Knowledgebase/Article/View/109/2/working-with-power-table-extension-functions)

Edit: Welcome to the forum!

---

<div class="post-metadata">

**Author:** ![christopher.panici](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/christopher.panici/32/5814_2.png) [@christopher.panici](https://forum.inductiveautomation.com/u/christopher.panici)\
**Post date:** [August 15, 2018, 2:57pm UTC](https://forum.inductiveautomation.com/t/ignition-power-table-initialize-extension-function/19264/5 "2018-08-15T14:57:24Z")

</div>

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

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3424955d06b0c91d50d13a0611601d98517f5436.png)
