# \[IGN-5015\]Feature request Named Query arg list

**URL:** <https://forum.inductiveautomation.com/t/ign-5015-feature-request-named-query-arg-list/99891>\
**Category:** Ignition\
**Created:** [December 16, 2024, 4:58pm UTC](https://forum.inductiveautomation.com/t/ign-5015-feature-request-named-query-arg-list/99891 "2024-12-16T16:58:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfolkes](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rfolkes](https://forum.inductiveautomation.com/u/rfolkes)\
**Post date:** [December 16, 2024, 4:58pm UTC](https://forum.inductiveautomation.com/t/ign-5015-feature-request-named-query-arg-list/99891/1 "2024-12-16T16:58:59Z")

</div>

It would be nice to have some sort of auto generation of argument dict for named query.

What I envision..

Say you have a named query with Parameters (myX, myY, myZ)  
When you right click and select "Query Script" right now you can just copy path  
it puts in clipboard something like  
("pathToQuery",{'myX':myx, 'myY':myY, 'myZ':myZ})

which you can then paste into a script  
runNamedQuery(PasteHERE)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 17, 2024, 8:39pm UTC](https://forum.inductiveautomation.com/t/ign-5015-feature-request-named-query-arg-list/99891/2 "2024-12-17T20:39:36Z")

</div>

Does the refinement of this general concept I described here fit what you're looking for?

> **[Named Query Copy Parameters Button | Ignition Features and Ideas | Inductive...](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/named-query-copy-parameters-button)**
>
> Can a button be added to the Named Query Designer that allows the copying of all of the parameters a Named Query accepts in a JSON format that will be usable

Edit: Actually, this one's better:

> **[Named Queries auto-generate in script | Ignition Features and Ideas |...](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/named-queries-auto-generate-in-script)**
>
> It would be very nice if you could select a named query in a script. Just like you select a property. When you selected and fill in some information the script

---

<div class="post-metadata">

**Author:** ![rfolkes](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rfolkes](https://forum.inductiveautomation.com/u/rfolkes)\
**Post date:** [December 17, 2024, 10:07pm UTC](https://forum.inductiveautomation.com/t/ign-5015-feature-request-named-query-arg-list/99891/3 "2024-12-17T22:07:00Z")

</div>

yeah, just about anything to avoid having to go back and forth between windows. / copy paste one thing at a time because the worst thing is having a query call fail to work as intended because you have 7 parameters and one of them has a misspelling in the dictionary parameters.

---

<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:** [December 17, 2024, 10:56pm UTC](https://forum.inductiveautomation.com/t/ign-5015-feature-request-named-query-arg-list/99891/4 "2024-12-17T22:56:45Z")

</div>

Have you learned about floating your project library scripts? (Right click on their tabs.)

---

<div class="post-metadata">

**Author:** ![rfolkes](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rfolkes](https://forum.inductiveautomation.com/u/rfolkes)\
**Post date:** [December 18, 2024, 2:03pm UTC](https://forum.inductiveautomation.com/t/ign-5015-feature-request-named-query-arg-list/99891/5 "2024-12-18T14:03:27Z")

</div>

that helps, but still prefer an auto type fill.
