# Calling a function as parameter of a binded named query

**URL:** <https://forum.inductiveautomation.com/t/calling-a-function-as-parameter-of-a-binded-named-query/92799>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 4, 2024, 12:27pm UTC](https://forum.inductiveautomation.com/t/calling-a-function-as-parameter-of-a-binded-named-query/92799 "2024-07-04T12:27:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Espejo](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@Javier\_Espejo](https://forum.inductiveautomation.com/u/Javier_Espejo)\
**Post date:** [July 4, 2024, 12:27pm UTC](https://forum.inductiveautomation.com/t/calling-a-function-as-parameter-of-a-binded-named-query/92799/1 "2024-07-04T12:27:02Z")

</div>

In Perspective, I have a component with a binded named query, which needs two parameters, and for one of them, I want it to get the result of calling a function. ¿Could it be done directly, i.e. writting in the value box something like "MyLibrary.function()"?

---

<div class="post-metadata">

**Author:** ![Javier\_Espejo](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@Javier\_Espejo](https://forum.inductiveautomation.com/u/Javier_Espejo)\
**Post date:** [July 4, 2024, 5:09pm UTC](https://forum.inductiveautomation.com/t/calling-a-function-as-parameter-of-a-binded-named-query/92799/2 "2024-07-04T17:09:46Z")

</div>

It's with `runScript('MyLibrary.function')`. 🙂
