# Changing Table Query Path From Path Given In Paramter

**URL:** <https://forum.inductiveautomation.com/t/changing-table-query-path-from-path-given-in-paramter/93194>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 13, 2024, 9:52pm UTC](https://forum.inductiveautomation.com/t/changing-table-query-path-from-path-given-in-paramter/93194 "2024-07-13T21:52:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AydHA](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@AydHA](https://forum.inductiveautomation.com/u/AydHA)\
**Post date:** [July 13, 2024, 9:52pm UTC](https://forum.inductiveautomation.com/t/changing-table-query-path-from-path-given-in-paramter/93194/1 "2024-07-13T21:52:52Z")

</div>

I have a parameter named selectedStation, this gives the path of a query. I have been struggling to get this path to bind to the path of a table.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/f/9f397fd0559d055456b0cbb46e67b03be6ac34d2.png)  
Wondering if what I have boxed in red can have a parameter bound to it through script or a transform. Thus far I have had no luck

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 14, 2024, 1:06am UTC](https://forum.inductiveautomation.com/t/changing-table-query-path-from-path-given-in-paramter/93194/2 "2024-07-14T01:06:44Z")

</div>

You can not modify the Named Query binding path, but there is nothing to stop you from using a script, either via the runScript expression or script transform to call a named query based on some logic.

---

<div class="post-metadata">

**Author:** ![benp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benp/32/34073_2.png) [@benp](https://forum.inductiveautomation.com/u/benp)\
**Post date:** [July 15, 2024, 2:44am UTC](https://forum.inductiveautomation.com/t/changing-table-query-path-from-path-given-in-paramter/93194/3 "2024-07-15T02:44:39Z")

</div>

It might not answer your question, but why can't you make your station name or id a parameter of your named query? Does each station have its own database? Is the query essentially different between them?
