Creating object in microflow that not exist in domain model - Mendix Forum

Creating object in microflow that not exist in domain model

0

Hello, very often I needs to create non-persistent that will display values to screen or group some values together (calculation, group string into one and etc.) in microflow and each time I need to go to domain model and create new non-persistent entity and add attributes to it (domain model can grow pretty big because of uxhelper or calculationhelper). It's will be nice that I can in Create object activity (that not required entity) have something like "Cache entity" (something like class in Java) where can I freely add attributes that I need and also I should be able to add this object as return type of microflow (I now there is possibility to return primitive type, but issue is if I need do multiple primitive type at once instead of creating bunch of microflow).

image.png

asked
2 answers

It's not really like view entity. For example you wanna add dashboard with charts to your application, you will needs to create NPE, you wanna have custom validation error below fields (not Validation Feedback), you wanna have multiple counters out put above ListView or DG (e.g. Manager counter, Developer counter...) for each of this scenario you need to create unique NPE Helper. In most of cases creating NPE are not so dynamic, you only create them from specific scenario and you will not reused it that often (instead of paginations and APIs, that are only that comes to my mind).

Created

Did you take a look at View entities? This might answer your need. If not: could you elaborate what is missing?

Created