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 List
1 Introduction
With this activity you can change a list that is stored in a variable.
2 Input Properties
2.1 List
Defines the list variable that is changed.
3 Action Properties
3.1 Type
Defines the type of change that is applied to the list.
Option | Description |
---|---|
Add | The object(s) referred to by value are added to the list. The same object can be added multiple times. |
Remove | The object(s) referred to by value are removed from the list. If there are duplicate objects in the list, then only one will be removed. If you ask to remove an object which isn’t in the list, there is no error |
Clear | The list is emptied. |
Replace | The list is emptied and the object(s) referred to by value are added to the list. |
Default value: Add
If you do not want duplicates in your (microflow) list, you can either remove the object(s) first, or use the Contains List Operation to examine the list before adding the object(s).
3.2 Value
Value defines the value that is used to change the list. The value is entered using an expression. The expression should result in an object or list of the same entity as the input list.