# How to Bind a query tag value to a component prop

**URL:** <https://forum.inductiveautomation.com/t/how-to-bind-a-query-tag-value-to-a-component-prop/49956>\
**Category:** Ignition\
**Tags:** perspective, database, scripting\
**Created:** [August 16, 2021, 1:09pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-query-tag-value-to-a-component-prop/49956 "2021-08-16T13:09:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos.aguero](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@carlos.aguero](https://forum.inductiveautomation.com/u/carlos.aguero)\
**Post date:** [August 16, 2021, 1:09pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-query-tag-value-to-a-component-prop/49956/1 "2021-08-16T13:09:29Z")

</div>

I have a query tag (“Downtime”) that returns 10 Rows x 3 Column Dataset, column 0 has integer values only.  
I need to bind one of my components value to that query Dataset-Row 0, Column 0 value.  
I haven’t been able to do it and keep getting “Ilegal character” Error when selecting the tag path.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/1/e1453286d9bc342a8cc3d3a7bb7d0d717ebd3b2b.png)

any clue what am I missing here? …

---

<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:** [August 16, 2021, 1:35pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-query-tag-value-to-a-component-prop/49956/2 "2021-08-16T13:35:10Z")

</div>

In an **expression** , use `{path to tag}[subscript1,subscript2]`.

---

<div class="post-metadata">

**Author:** ![carlos.aguero](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@carlos.aguero](https://forum.inductiveautomation.com/u/carlos.aguero)\
**Post date:** [August 16, 2021, 1:45pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-query-tag-value-to-a-component-prop/49956/3 "2021-08-16T13:45:11Z")

</div>

{[default]Toledo/AGM Assy/General/Downtime/AssyDownTime}[0,0]

Yes, you were right… That worked!  
thank you

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 17, 2021, 12:33pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-query-tag-value-to-a-component-prop/49956/4 "2021-08-17T12:33:57Z")

</div>

> [@carlos.aguero](#):
>
> AssyDownTime}[0,0]

Actually I think you're looking for:  
AssyDownTime (‿|‿)  
😁

---

<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:** [August 17, 2021, 9:08pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-query-tag-value-to-a-component-prop/49956/6 "2021-08-17T21:08:40Z")

</div>

You are a bad boy, Nick. (:
