SetVarListFromGridColumns: Create a list of variables from the unique values in grid columns

Tag: SetVarListFromGridColumns

The SetVarListFromGridColumns function creates lists of variables from the unique values in the grid column.


XML
<SetVarListFromGridColumns/>

Tag Attributes

Attributes

Value Description

ListName

Name of list - Required

Variable names

Any unreserved name valid in XML. Reserved names are listed on: Variables.

Variable values

Valid grid column IDs. If a column is not found (invalid column ID), an error is raised, the action fails,

the list ends up empty and the loop will do nothing.

Explode

true/false

Verbose

When set to TRUE, displays a console trace for each element added to the list

Defaults to TRUE

Example Script

XML
<ytriaAutomation>
	<SetVarListFromGridColumns ListName="FromGrid" varUserName="displayName" Unique='Any variable name' />
	<loop list="FromGrid">
		<ExecuteListAction/>
		<echo value="===>>> user {%varUserName%};"/>
	</loop>
</ytriaAutomation>