Return a list of Decimals in java action

0
Hello experts, I am seeking assistance with using a Java action to tokenize and pad a text input for a model in Mendix 9.24.0. However, I am encountering difficulty in selecting the return type. Specifically, I need the return type to be a list of decimals, but I cannot find an appropriate option. Could you please help me with this issue? Thank you.
asked
1 answers
0

You can only create lists of objects, not lists of primitive data types. So if you want a list of decimals, you need to define a non-persistent entity with one attribute of datatype decimal. And then populate the list with that entity and fill the attribute with the decimal value.

answered