# Query function in perspective transform script

**URL:** <https://forum.inductiveautomation.com/t/query-function-in-perspective-transform-script/36998>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 23, 2020, 2:02pm UTC](https://forum.inductiveautomation.com/t/query-function-in-perspective-transform-script/36998 "2020-07-23T14:02:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [July 23, 2020, 2:02pm UTC](https://forum.inductiveautomation.com/t/query-function-in-perspective-transform-script/36998/1 "2020-07-23T14:02:00Z")

</div>

Hi,  
runNamed Query function below is working in script console but not in perspective transform script :

```auto
devs=system.db.runNamedQuery("dbmanager/devices", {"project":2})

```

It shows me a parse error.

I don’t understand. Do you have a solution ?  
Thanks,
