Allow using numeric values directly in template parameters - Mendix Forum

Allow using numeric values directly in template parameters

2

Currently when setting template parameters these must be of type string.

e.g. when writing a log message like "Updated {$count} entries", if $count is an integer you have to convert that to a string.

image.png

That makes it necessarry to write toString($count) or use implicit casting like ''+$count

It would be nice if there would be default toString conversions in cases where you set something else than a string parameter.

Thanks, Fabian

asked
1 answers

It would be useful if it was similar to the parameters for text template on a page.

 

So even for decimals, dates it could let you do the formatting. I think this would be a good idea

Created