Expand my Community achievements bar.

Adding "&&" notation in binding expression.

Avatar

Former Community Member

Adding "&&" notation in binding expression.

Could someone please let me know how use && in the Default binding in Desinger?

say there is an expression like;

$.A.B.[Required == "Required"] && A.B.[Show== "true"]

Where Required and Show are children of element B.

Desinger says there is a syntax error near &&, but not sure how to do combine both the conditions

in one expression.

Any lead would be much appreciated.

Thanks

Ds

5 Replies

Avatar

Former Community Member

How did you get that expression in there in the 1st place? Did you type it in?

Paul

Avatar

Former Community Member

Yes I typed the expression the Default binding box. Initially I had only one condition and it worked fine. But for my other report I have to include another condition which is in the same level as the previous one. So all I have to use is the AND. But for I am not sure of the correct syntax.

Ds

Avatar

Former Community Member

I don't believe that you can have a compound statement like that in the expression for binding.

Paul

Avatar

Former Community Member

I was able to solve this by giving the binding expression as

$.A.B.[(Required == "Required") and (Show== "true")]

Thanks

Ds

Avatar

Former Community Member

I am not sure about, but I was able to fix this by giving the expression

As; $.A.B.[(Required == "Required") and (Show== "true")]

In the default binding box.

And it works.