Automatic cast to String in Template Parameters - Mendix Forum

Automatic cast to String in Template Parameters

6

When logging or showing messages I often use Template parameters. Quite often they are of a different type than string. Now it is required to cast this data type explicitly to a string using either the toString() function or by appending a string. It would save me some time and would also make the model easier to read if Mendix can cast the Integer to a String. This is a technical step for which the user should not be bothered in my opinion.

 

So instead of

$Count + ''

or

toString($Count)

just allow me to write

$Count

 

asked
0 answers