# Cell update binding to dynamically bind single cell to tags

**URL:** <https://forum.inductiveautomation.com/t/cell-update-binding-to-dynamically-bind-single-cell-to-tags/6125>\
**Category:** Ignition\
**Created:** [March 29, 2013, 11:19am UTC](https://forum.inductiveautomation.com/t/cell-update-binding-to-dynamically-bind-single-cell-to-tags/6125 "2013-03-29T11:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikasgodbole](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@vikasgodbole](https://forum.inductiveautomation.com/u/vikasgodbole)\
**Post date:** [March 29, 2013, 11:19am UTC](https://forum.inductiveautomation.com/t/cell-update-binding-to-dynamically-bind-single-cell-to-tags/6125/1 "2013-03-29T11:19:23Z")

</div>

Hi All,

I have created an “Area1” having two Different Valves “VLV1”, “VLV2” with Flow rate tags "Flow\_Rate\_1 "& “Flow\_Rate\_2”.

I have two buttons on the screen “Valve\_1” & “Valve\_2”.

If I click “Valve\_1” button then my cell should get bind dynamically to the tag “Flow\_Rate\_1” and should show the value of “Flow\_Rate\_1”.  
If I click “Valve\_2” button then the same cell should get bind dynamically to the tag “Flow\_Rate\_2” and should show the value of “Flow\_Rate\_2”.

Kindly suggest how to achieve the above functionality.

Regards  
Vikas

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 29, 2013, 6:00pm UTC](https://forum.inductiveautomation.com/t/cell-update-binding-to-dynamically-bind-single-cell-to-tags/6125/2 "2013-03-29T18:00:42Z")

</div>

You can accomplish that by using custom properties. Do the following:

1. Add a custom property to the Root Container. Right click on it and select Customizers \> Custom Properties. Add a new property called FlowRateTag that is a string.

2. You can either bind the new property to an expression that returns the right string (Flow\_Rate\_1 or Flow\_Rate\_2) or you can set it through scripting.

3. If you have buttons that change from 1 to 2 you can set that property:`event.source.parent.FlowRateTag = "Flow_Rate_1"`4) You can now use the new custom property in the Cell Update binding.

If the only difference between the two is just the number 1 or 2 you can make the custom property an integer and do the same thing.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [April 2, 2013, 3:28pm UTC](https://forum.inductiveautomation.com/t/cell-update-binding-to-dynamically-bind-single-cell-to-tags/6125/3 "2013-04-02T15:28:05Z")

</div>

Sorry I was thinking you were using that path in an easy chart. If you want the value of the tag to show up in the bar chart you have to link to an actual value in the cell update binding. Add another custom property called flowValue that is a float. Bind it to an indirect tag:

valve1/{1}

where {1} links to Root Container.FlowRateTag. Than you can use the flowValue in the cell update binding directly:

{Root Container.flowValue}

The example I gave earlier would just give you the path to the tag not the actual tag value.
