Add all | Remove all
Overview
The add all deluge task adds all elements present in one list(list2) to another list(list1).
The remove all deluge task removes all elements present in one list(list2) from another list(list1).
Syntax
Add all elements
Remove all elements
Parameter | Description |
---|---|
<list1> | The list variable which the elements will be added to, or removed from. |
<list2> | The list variable containing the elements which have to be added, or removed. Elements of this list can be accommodated in list1 only if the latter is not restricted to a specific data-type. |
This task can be used in the following events
When a record is Created | ||
On Load | Yes | |
On Validate | Yes | |
On Success | Yes | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Created or Edited | ||
On Load | Yes | |
On Validate | Yes | |
On Success | Yes | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Edited | ||
On Load | Yes | |
On Validate | Yes | |
On Success | Yes | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Deleted | ||
On Validate | Yes | |
On Success | Yes | |
Other workflow events | ||
On a scheduled date | Yes | |
During approval process | Yes | |
During payment process | Yes | |
In a Custom Function | Yes | |
In an Action item in report | Yes |
Examples
1) The following snippet results in "alldays" having the list values {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}
weekends = {"Saturday", "Sunday"};
alldays.addall ( weekends );
2) The following snippet removes "Saturday" and "Sunday" from the "allDays" list. The "allDays" list will then contain {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}
allDays = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
allDays.removeAll(weekends);