Add

Add elements to a list

Table of Contents

Overview

The add deluge task is used to add elements to an existing list.

Syntax

<list_variable>.add( <expression> );
ParameterDescription
<list_variable>

List variable to which elements will be added.

<expression>

Element to be added to the list. You can directly specify the element, or you can specify an expression, i.e. a combination of values, constants, variables, operators, functions and so on, which evaluates to the required element.

Points to remember for this parameter:
  • A list can be specified, however, it is to be noted that it will be considered as an individual element in the parent list.
  • Elements of different data-types can be accommodated in the same list if the list 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 sample snippet creates a list variable "listVar" and adds the elements 1(an integer) and "Harry"(string) to it.

listVar = List();
listVar.add(1);
listVar.add("Harry");

2) The following sample snippet fetches all records from the "Employees" form, and retrieves the "email" field value from each record. The list of email values is added to the "EmailList" variable.

EmailList = list();
EmailList.add(Employees[ID!=0].email.getall());

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com