Simplify system.db.runNamedQuery Gateway/Project Scope
t
tobias.schneiderheinze
system.db.runNamedQuery is used in two different scenarios that use two different parameter settings: gateway and project. As I do have several scripts running on gateway scope and project scope, I always have to switch between ('project', 'NamedQueryPath', 'params') and ('NamedQueryPath', 'params') because they are incompatible.
PLEASE make the 'project' parameter optional in the project scope.. or better: enable cross reverence to other projects!
Log In
s
stieu
I believe this cannot be fixed with being backwards compatible. Deprecating this and creating a new would be the way to go.
t
tobias.schneiderheinze
and maybe you also wanna correct the last example https://docs.inductiveautomation.com/display/DOC80/system.db.runNamedQuery
This example will run [..] in the Project scope. [..]
Run the Named Query
system.db.runNamedQuery("ProjectName", "myUpdateQuery", params)