Perspective Tag Expression Binding can't be dynamic?

Hi,

I'm trying to configure a dynamic binding in Perspective. I created one using an Expression binding type and it's working, but I want to be able to modify the value of the tag that returns the expression (so I want it bidirectional). Then I saw that in the Tag binding type we can put an expression, and I thought that the Bidirectional option would solve my problem, but when I copy pasted the expression in the Tag binding type I had an Error_Configuration and it's not working, I don't know why.

For the Expression type I have a "Bad_NotFound" which is normal because it's a dynamic expression and she doesn't have the values of the parameters but it's working well when I launch Perspective, I have the good values.

But here, for the Tag type I have "Error_Configuration", and an error when I launch Perspective.
So I'm thinking, we can't have dynamic Tag binding with an expression ?

Here's the expression:

if(indexof({this.meta.name},"uplimit") != -1, tag("[default]BatchInformation/Limits/"+tag("[default]BatchInformation/Mill"+{view.params.Mill}+"/Status/Product Type")+"/"+{view.params.Stage}+"/up/"+{parent.meta.name}), 
if(indexof({this.meta.name},"lwlimit") != -1, tag("[default]BatchInformation/Limits/"+tag("[default]BatchInformation/Mill"+{view.params.Mill}+"/Status/Product Type")+"/"+{view.params.Stage}+"/lw/"+{parent.meta.name}),
if(indexof({this.meta.name},"limit") != -1, tag("[default]BatchInformation/Limits/"+tag("[default]BatchInformation/Mill"+{view.params.Mill}+"/Status/Product Type")+"/"+{view.params.Stage}+"/Limit/"+{parent.meta.name}), None)))

Thanks

A tag binding in 'expression' mode runs an expression that is required to return a tag path.
https://docs.inductiveautomation.com/display/DOC81/Tag+Bindings+in+Perspective#TagBindingsinPerspective-TagExpressionBinding

It's an indirect tag binding that's able to run logic. You should not ever need to use the tag() function (in general, but especially) in a tag binding configured for expression mode. Simply assemble whatever literal strings or, possibly, dynamic references (using standard curly brace tag reference lookup for an expression) into a single desired tag path.

Oh yes makes sense, I'm returning the value so of course it's not working, thanks!

1 Like