unknown function getCaption??

1
Just tried getCaption($abc/typeEnumeration)  as an expression in a ShowMessage inside a nanoflow of a native mobile app and got the error message “unknown function getCaption” . Any idea what to do?
asked
1 answers
2

getCaption isn't available in nanoflow expressions.

Only available option is toString()

Unfortunately, then the key is returned as string, which might include underscores when using spaces in the caption.
This can be solved by using the replaceAll() function

Example
toString(MyFirstModule.Weather.Very_wet) => $EnumKeyAsString

replaceAll($EnumKeyAsString, '_', ' ')

answered