# Table - Dynamic suffixes in table cell

**URL:** <https://forum.inductiveautomation.com/t/table-dynamic-suffixes-in-table-cell/16668>\
**Category:** Ignition\
**Created:** [January 22, 2018, 9:37am UTC](https://forum.inductiveautomation.com/t/table-dynamic-suffixes-in-table-cell/16668 "2018-01-22T09:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [January 22, 2018, 9:37am UTC](https://forum.inductiveautomation.com/t/table-dynamic-suffixes-in-table-cell/16668/1 "2018-01-22T09:37:32Z")

</div>

Is it possible to dynamically change the cell suffix depending on what value is in some other cell?

I have a table component (NOT Power table) with a few columns. The columns “par1” and “par2” contains the value for length or angle, depends on what value is in column “Operation type” in the same row.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9757a142c535006185547a1b730a5078792d56e3.PNG)  
Operation types are: 1-Straight, 2-Curve, 3-Carriage, 4-Rotation, 5-MoveArm.  
When the operation type is 1, then I’d like to display ‘mm’ in “par1” column.  
When the operation type is 2, then I’d like to display ‘°’ (degree) in “par1” and “par2” column.  
When the operation type is 3, then I’d like to display ‘mm’ in “par1” column.  
When the operation type is 4, then I’d like to display ‘°’ in “par1” column.  
When the operation type is 5, then I’d like to display ‘°’ in “par1” column.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [January 22, 2018, 5:38pm UTC](https://forum.inductiveautomation.com/t/table-dynamic-suffixes-in-table-cell/16668/2 "2018-01-22T17:38:02Z")

</div>

Generally, my thought process on using a normal table vs a power table goes something like this.

Will I need to use the extension functions of the power table, if yes, then use a power table. If no, then use a power table.

All jokes aside, I would create another dynamic property, holding the source dataset. Move your initial binding there. Then, create either a runScript binding on the data property, or a property change event listening for changes to sourceData, and update the data property accordingly.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [January 22, 2018, 6:03pm UTC](https://forum.inductiveautomation.com/t/table-dynamic-suffixes-in-table-cell/16668/3 "2018-01-22T18:03:59Z")

</div>

I’m not sure I understand you correctly…  
I would like to change **suffixes** for this two columns (par1 and par2).  
Suffixes are not in the source dataset. They are a property of the table column in the Table Customizer.

I used the Table component because It seemed easier to implement icons in the table cells (in the Table Customizer).

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [January 22, 2018, 8:06pm UTC](https://forum.inductiveautomation.com/t/table-dynamic-suffixes-in-table-cell/16668/4 "2018-01-22T20:06:10Z")

</div>

Let’s take your current table. Move that to sourceData. Then, you loop through sourceData when it changes, and you create a copy of that table to data, with the columns changed to have the units appended to the cell.
