# Property binding of a row value in a table

**URL:** <https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663>\
**Category:** Ignition\
**Created:** [July 24, 2024, 12:36pm UTC](https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663 "2024-07-24T12:36:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christoph\_Schauer](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@Christoph\_Schauer](https://forum.inductiveautomation.com/u/Christoph_Schauer)\
**Post date:** [July 24, 2024, 12:36pm UTC](https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663/1 "2024-07-24T12:36:26Z")

</div>

Hi everybody,

I'm very close to reach the following:

I have a testing table with two columns. The values are for testing only of type boolean (true, false) and defines, whether an icon is shown or not in the corresponding column.

The Icon is rendered correct in the table. Also the viewParams binding is working. Manually I can change the `show:true | false` and the preview is correct.

But how can I react on row data? I tried to adjust the viewParams to an expression binding and tested `{value}`. But it seems everything is null even the implicit params: `{row:number;rowIndex:number;value:PlainObject;...viewParams}.`

How can I test on the PauseIcon view which paramers are available?

Thanks a lot for some hints  
Chris

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/5/9516591e267142dfe04c97a3f48ced44f70ce6f6.png)

---

<div class="post-metadata">

**Author:** ![Samuel\_Sueur](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Samuel\_Sueur](https://forum.inductiveautomation.com/u/Samuel_Sueur)\
**Post date:** [July 24, 2024, 12:43pm UTC](https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663/2 "2024-07-24T12:43:32Z")

</div>

Hi,

In the view that you're embedding, add the param "rowData", then you'll be able to use the data of the row.

See below :  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/0/40da62ee7dafa6516ecf58c8008aa54f543dd552.png)

Then you can use it like this ( `device.bindType` is just an example ):

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/a/6a8001f468d3811e5bc9f31e70e70628882d8dc2.png)

You might have to add the properties in the rowData object

---

<div class="post-metadata">

**Author:** ![Christoph\_Schauer](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@Christoph\_Schauer](https://forum.inductiveautomation.com/u/Christoph_Schauer)\
**Post date:** [July 25, 2024, 11:17am UTC](https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663/3 "2024-07-25T11:17:37Z")

</div>

Perfect. Thanks a lot for the hint. I was not aware of that the parameter has to be defined on the view which is embedded. It also works with `value` instead of passing the complete row.

Do you know, is there a way to access the column value on the table (the component, which embeds the view). E.g. when I plan to set the view to embed via a condition?

---

<div class="post-metadata">

**Author:** ![Samuel\_Sueur](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Samuel\_Sueur](https://forum.inductiveautomation.com/u/Samuel_Sueur)\
**Post date:** [July 25, 2024, 11:22am UTC](https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663/4 "2024-07-25T11:22:53Z")

</div>

Hmm, not sure I totally get what you're trying to do, but you could always create a binding of the `viewPath` in the `columns` property, as well as a binding on `render` if that's what you need ?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/8/28d023a4c0a8e235a07e4020eeb2ea39cf9c348c.png)

---

<div class="post-metadata">

**Author:** ![Christoph\_Schauer](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@Christoph\_Schauer](https://forum.inductiveautomation.com/u/Christoph_Schauer)\
**Post date:** [July 25, 2024, 11:45am UTC](https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663/5 "2024-07-25T11:45:01Z")

</div>

Yes exactly. I tried to add a binding on viewPath.  
For example to add different views depending on the column value:

`switch({value},True, False, 'Primary/TestIcon', 'Primary/TestIcon2', None)`

But I don't know what values I can use in the binding expression.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 25, 2024, 12:24pm UTC](https://forum.inductiveautomation.com/t/property-binding-of-a-row-value-in-a-table/93663/6 "2024-07-25T12:24:42Z")

</div>

> [@Christoph\_Schauer](#):
>
> I tried to add a binding on viewPath.

`props.columns` is **configuration** for the table, and doesn't have any way to have different values for different rows of the table. You will need to use a cell render view that can inspect its value (or other rowData) and dynamically select an embedded view of its own.
