# Table; Text in One Column, Tag in Another?

**URL:** <https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792>\
**Category:** Ignition\
**Created:** [April 20, 2018, 6:26pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792 "2018-04-20T18:26:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![aarvidson](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aarvidson](https://forum.inductiveautomation.com/u/aarvidson)\
**Post date:** [April 20, 2018, 6:26pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/1 "2018-04-20T18:26:03Z")

</div>

Hi, just trying to make a simple table with the first column being text and the next column being a tag. This is just to display information in my SCADA, like this:

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/484e844a80aa2a99bbadb714d0c55af8d463ec0b.png)

I can get the tags into the table but I can’t figure out how to just enter text in the other column for a label.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [April 20, 2018, 6:33pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/2 "2018-04-20T18:33:26Z")

</div>

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1e493fb30217bbec46981e8e34316c0f7710fef4.PNG)

Click the binding button on the data property of the table and then select Cell update.  
Then you can tie each cell of the table to any value.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [April 20, 2018, 6:52pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/3 "2018-04-20T18:52:04Z")

</div>

Just as an alternative, if you’re comfortable using code you could also generate the dataset for the table using `system.dataset.toDataSet`.

```auto
header = ['name', 'value']
values = []

windSpeed = system.tag.read('wind speed').value
rainfall = system.tag.read('rainfall').value
windDirection = system.tag.read('wind direction').value

values.append(['wind speed', windSpeed])
values.append(['rainfall', rainfall])
values.append(['wind direction', windDirection])
table = event.source.parent.getComponent('Power Table')
table.data = system.dataset.toDataSet(header, values)

```

If you need to make this refresh periodically you could use a timer.

---

<div class="post-metadata">

**Author:** ![aarvidson](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aarvidson](https://forum.inductiveautomation.com/u/aarvidson)\
**Post date:** [April 20, 2018, 7:18pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/4 "2018-04-20T19:18:09Z")

</div>

Thanks, I got that figured out now. I just need to add text to the cells in column 1. Not sure how to do that?

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

---

<div class="post-metadata">

**Author:** ![Stuart](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@Stuart](https://forum.inductiveautomation.com/u/Stuart)\
**Post date:** [April 20, 2018, 7:20pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/5 "2018-04-20T19:20:26Z")

</div>

Do the same thing. Set `Column` to `1` and then double click the `Value` and type in what you want.

**Edit** : It looks like you did that already at the last row. You don’t need the `=` sign however. Is it not working?

---

<div class="post-metadata">

**Author:** ![aarvidson](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aarvidson](https://forum.inductiveautomation.com/u/aarvidson)\
**Post date:** [April 20, 2018, 7:20pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/6 "2018-04-20T19:20:42Z")

</div>

Hi, this is code looks like it would also do what I need. Where would I write this code? Thanks!

---

<div class="post-metadata">

**Author:** ![aarvidson](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aarvidson](https://forum.inductiveautomation.com/u/aarvidson)\
**Post date:** [April 20, 2018, 7:34pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/7 "2018-04-20T19:34:49Z")

</div>

tried that too and it won’t show the text. ideas?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/532bf907c51bbf9fea97c8fa17893f570d954170.png)

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [April 20, 2018, 7:36pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/8 "2018-04-20T19:36:40Z")

</div>

The first column has to have a type of ‘string’, not ‘integer’.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [April 20, 2018, 7:38pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/9 "2018-04-20T19:38:57Z")

</div>

You could put this in the `actionPerformed` event handler of a timer object. Make sure to use the correct path for your table.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [April 20, 2018, 8:41pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/10 "2018-04-20T20:41:04Z")

</div>

Or just click the table dataset button next to the binding button and add the text in there.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9ed8ddf35c6c9a1aa40edfbaa61864a5a01af5e2.PNG)

---

<div class="post-metadata">

**Author:** ![aarvidson](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aarvidson](https://forum.inductiveautomation.com/u/aarvidson)\
**Post date:** [April 20, 2018, 10:12pm UTC](https://forum.inductiveautomation.com/t/table-text-in-one-column-tag-in-another/17792/11 "2018-04-20T22:12:07Z")

</div>

Thanks for the help, I got it figured out!

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/093bd5c4f3a2f90c5a535980c0eeb7fdcf00ab07.png)
