For Each Activity

Description

The For Each activity is a specialized looping activity that executes the contained activities for each item in a collection.

Usage

You may need to complete the same action on all items in a collection. You could iterate through all the features in a feature set using the For Each activity and the loop could perform a densify geometry operation, using the Densify Geometry activity, to each feature.

Inputs

Exit

Optional

Type: Boolean

Whether or not the loop should break.

For information on using the Exit input, see Exit a Looping Activity.

Items

Optional

Type: any[] | Object

A collection of items to iterate over.

Outputs

key

Type: String

The key of the item currently being processed.

pass

Type: Number

The pass that the loop is on.

item

Type: any

The current item from the items collection.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Supported Environments

Environments capable of running this activity

Server

 

Client

Geocortex Web

Geocortex Mobile

Geocortex Viewer for HTML5

Web AppBuilder

Offline Support

This activity works when the device is offline.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, Web AppBuilder for ArcGIS 2.4.

See Also...

Use the For Each Activity

Exit a Looping Activity

Step Through the Features Returned by a Query

Find a Particular Feature Returned by a Query

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.15