Jason,
To accomplish this in Mendix, add an attribute to your entity to hold the calculated attribute. Then, you can either:
- set the attribute’s value to be calculated (instead of stored) in the properties page for your attribute. Create a microflow that determines (in a variable or in the expression of the end event of the microflow), the combinec value. The microflow should return the combined value.
- set the attribute’s value to stored. Then create a microflow that calculates and updates the attributes value. Call this microflow as an event handler on the entity – if you choose an after commit event, make sure your microflow commits without events (to prevent an endless loop and out of memory condition).
If you use the first option, keep in mind that Mendix will recalculate the attirbute value every time an object is retrieved from that entity. If the entity will have more than a handful of objects, this is probably not the option you want to use.
The second option will only be executed when changes to an object are committed to the database.
Hope that helps,
Mike