Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.
Change Object
1 Introduction
The Change object activity can be used to change the members of an object. This can be done with or without committing and with or without events.
2 Input Properties
2.1 Object
Object defines the object variable that is changed.
3 Action Properties
3.1 Commit Type
Commit type defines the way the object is committed.
Option | Description |
---|---|
Yes with event handlers | The object is saved in the database and the event handlers are triggered |
Yes without event handlers | The object is saved in the database, but the event handlers are not triggered |
No | The object is changed without being saved in the database |
If a flow is triggered from a data view (for example by the ‘on change’ of an text field) you often do not want to commit the changes you make to the data view object yet. The end user can press the Save or Cancel button to commit or rollback the changes.
However, if the flow is triggered from a data grid button that just performs an operation on a selection you will want to commit the changes to avoid losing them.
Default value: No
3.2 Refresh in Client
If the microflow is called from the client, the change is not reflected in the client if Refresh in client is set to No. If set to Yes, the object is refreshed across the client, which includes reloading the relevant data sources.
When inside a nanoflow, the Change object action does not have the Refresh in client option available, and the refresh behavior depends on the Commit type option. It always reflects the changed attribute values in the client, including conditions.
If Commit type is set to Yes, the object is refreshed across the client as if Refresh in client was set to Yes.
Default value: No
3.3 Change Members
You can specify a list of changes that to apply to the object. Values for members are specified with expressions and should be of the same type as the member. For a reference set association, it is also possible to add and remove (instead of only setting the member). For add, an object or a list of objects can be added to the currently associated objects. For remove, an object or a list of objects can be removed from the currently associated objects.