list-actions-component
Reactive icon

List_Actions_component

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 10 October 2023
 by 
0.0
 (0 ratings)
list-actions-component

List_Actions_component

Details
This a sample demo designed to showcase different List Action usage like ListAppend , ListAppendAll , ListSort, ListFilter, ListDistinct, ListRemove , ListDuplicate etc..
Read more


List Actions Documentation

 

ListAppend

Adds an element to the end of a list.

Inputs

List

Type: mandatory, Generic Record List.
The list to add the element to.

Element

Type: mandatory, Generic Record.
The element to be added to the end of the list.


ListSort


Sorts the elements of the List parameter by the given criteria. Note that ListSort is different from the dynamic sorting in Aggregates. Multiple attributes having different data types (such as Text and Integer) in the criteria may not sort the list correctly. You can sort different kinds of lists, like lists of basic types (for example, Text List, Integer List), Lists of Entity records, Lists of Structures, and Record Lists.

Inputs

List

Type: mandatory, Any List.
The list that contains the elements to sort by the given criteria.

By

Type: mandatory, Any Data Type.
The criteria by which to order the elements of the list.

Ascending

Type: optional, Boolean.
The boolean expression to indicate if the elements are sorted ascending (True) or descending (False) according to the By parameter. The default value is ascending (True).

ListAppendAll

Adds the elements of the source list to the end of the destination list.

Inputs

List

Type: mandatory, Generic Record List.
The destination List.

SourceList

Type: mandatory, Generic Record List.
The list whose elements will be added.

ListClear

Removes all elements from a list.

Inputs

List

Type: mandatory, Generic Record List.
The list to remove the elements from.

ListFilter

Returns a new list with the elements from the List parameter satisfying the given condition.

Inputs

SourceList

Type: mandatory, Generic Record List.
The list that contains the elements to which to apply the condition.

Condition

Type: mandatory, Boolean.
The boolean expression to check for on each element of the list.

Outputs

FilteredList

Type: Generic Record List.
A new list with the elements that satisfy the condition.

ListInsert

Inserts an element in a specific position of a list.

Input

List

Type: mandatory, Generic Record List.
The list to add the element to.

Element

Type: mandatory, Generic Record.
The element to insert in the list.

Position

Type: mandatory, Integer.
The position where the element is inserted.

ListIndexOf

Returns the position of the first element of the List parameter that satisfies the given condition, or -1 if no element satisfying the condition was found.


Inputs

List

Type: mandatory, Generic Record List.
The list that contains the elements to which to apply the condition.

Condition

Type: mandatory, Boolean.
The boolean expression to check for on each element of the list.

Outputs

Position

Type: Integer.
The position of the first element of the list that satisfies the given condition; -1 if no element satisfying the condition was found.



ListRemove

Removes an element from a specific position of a list.


Inputs

List

Type: mandatory, Generic Record List.
The list that the element is removed from.

Position

Type: mandatory, Integer.
Position of the element to be removed.


ListDistinct

Filters duplicate elements from a list.


Inputs

SourceList

Type: mandatory, Generic Record List.
The list that includes duplicate elements.

Outputs

DistinctList

Type: Generic Record List.
List that only includes the distinct elements of the source list.



ListDuplicate

Duplicates the elements of a list into another list.


Inputs

SourceList

Type: mandatory, Generic Record List.
The list to duplicate.

Outputs

DuplicatedList

Type: Generic Record List.
The duplicate list.






Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category