Choose where you’d like to start

Add all | Remove all

Table of Contents

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

<list1>.addall(<list2>);

Remove all elements

<list1>.removeall(<list2>);
ParameterDescription
<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 LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Created or Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Deleted
On ValidateYes
On SuccessYes
Other workflow events
On a scheduled dateYes
During approval processYes
During payment processYes
In a Custom FunctionYes
In an Action item in reportYes

Examples

1) The following snippet results in "alldays" having the list values {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}

alldays = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"};
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"}

weekends = {"Saturday", "Sunday"};
allDays = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
allDays.removeAll(weekends);

Get Started Now

Execute