Action activity that has a side effect on the client.

0
I have a warning in my model 'Action activity that has a side effect on the client is not recommended here because the microflow is used as a datasource for data view 'xyz'. The microflow with this warning does a retrieve and gives a blocking warning when the retrieve gives an empty result. Why is Mendix generating a warning for the blocking warning action? Or am I missing the point what the warning reallly means? Regards, Ronald
asked
2 answers
3

I've played around a bit with the modeler, and it seems that any client action (e.g. Show Form) will give this warning. System actions (e.g. Change List, Change Object) do not give this warning.

This behavior seems logical: a data source should supply data and not perform any (noticable) actions. A blocking pop-up when the list is empty might be a good use case why you would want a client action in your data source microflow. This is probably the reason it gives a warning instead of an error.

As an alternative to a blocking pop-up, you could check out the Empty Grid Label widget in the appstore.

answered
1

The warning is generated because the result of the microflow is used as a datasource for a widget. Where the widget will/should handle any refresh/warning actions. Thus if you perform any actions that could influence the representatation it could give unexepcted results. Some examples are showing a form or warning message in a datasource microflow or doing a refresh in your datasource microflow.

answered