I have a chart opening on an embedded view, and I need to pass a view paramater to the Path of a Query. Is this just not possible ?
Regards
V
I have a chart opening on an embedded view, and I need to pass a view paramater to the Path of a Query. Is this just not possible ?
Regards
V
Sure it's possible.
Post your code. See Wiki - how to post code on this forum.
There is no code involved, just bindings.
How is it possible to achieve ?
What exactly do you mean by this?
Usually we use named queries and pass in parameters by binding.
https://docs.inductiveautomation.com/display/DOC81/Named+Query+Parameters
https://docs.inductiveautomation.com/display/DOC81/Named+Query+Bindings
I'm not using parameters for my query. I'm using view parameters for my embed view.
I need those params, to go to the binding of a query path. (. Path, not param )
If you click on binding for any property, you have the option to choose a binding type called "Query", in that binding type, there is a "Path".
I can only hardcode this path. Why can I not bind it to another property (view paramater for example )
Ah, OK, no, you can't do it that way but can do it by script.
The simplest way I can think of is,
return system.db.runNamedQuery(value)
(value
gets passed from the original binding into the transform.)
https://docs.inductiveautomation.com/display/DOC81/system.db.runNamedQuery
ah, Perfect.
thanks