How to get value from an ENUM and Boolean Attribute

0
I have in an Entity some Boolean and Enum Attributes, how can i add the value of them to a variable with the '+' Operator.   For example here:  (''Trafotyp'',''Name'','''+$Merkmale/Trafotyp+''')  
asked
2 answers
1

Okay found it :)

https://docs.mendix.com/refguide/enumerations-in-expressions/

With that it's working for me for the Enum:

getCaption($Customer/Grade)

 

But for the Boolean Attribute i didn't found a solution

answered
0

Hi Nico,

 

I think you could use the toString expression for the Boolean.

 

Example: toString($booleanattribute) should return either a 'true' or 'false' as a string.

 

Hope this helps!

answered