Adding our own Function. - Mendix Forum

Adding our own Function.

10

In mendix expressions we can use only the inbuilt function like toString, parseInteger etc, it would be good to create our own functions which we can use in Mendix expressions directly.

asked
3 answers

Yes, I often find that I need to do a lot of work in microflows to prepare for certain expressions or create custom Java actions to do things that could be simple expressions.

For example, if I want to convert a list to a string containing the items in the list, I have to create a string variable, then make a loop, then add up the items, etc.  Would be nice if I could define an expression function which takes a list and returns that string instead.

Created

I want it, too.

Created

Would be cool, but it's less visible you added dependencies. I'm actually glad we can create our own Java Actions and JavaScript Actions to add custom functionality!

Created