Hey Everyone,
Can someone help me with this tag history binding?
Here is what I'm doing:
Here is what {view.params.Name}+"/status/encoderposition" evaluates to:
I tried building the array in the expression language but it kept complaining about my brackets.
Thank you,
-DG
You'll want to define a custom property with this structure:
-
key [array]
-
[0] {object}
-
aggregate value
-
alias value
-
path value
-
[1]{object}
-
aggregate value
-
alias value
-
path value
- ...
And then bind to it in the expression.
read the Using Dynamic Tag Paths example under this link.
1 Like
I guess a better description of my problem is I cant concat in expression language and create a json.
Like this: jsonFormat([{"path": "concat({view.params.Name},"/status/encoderposition")"}])
I dont know if there is a better way to do this in the expression language but I built the JSON as a custom property and just bound to it in the tag history expression.
It would be nice to do this just in the expression language but i couldn't figure out how to concat a view parameter and build a JSON at the same time.
Yeah, the expression language doesn't have any ability to declare a json object or array. We considered it a while back, but decided it wasn't worth the complexity cliff. A custom property is pretty much the way to go here.
I'm surprised there isn't something like this:
I was just surprised to not see an "indirect" radio button. Seems like a necessary addition.