List To DataItem List Activity

Description:

Create a list of DataItems from an arbitrary list of objects, preserving the type of the item.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.ListToDataItemList

Function:

This activity allows a List of DataItems to be created from a list of arbitrary objects. DataItems can be used as input for certain Form elements such as ComboBox items (as a collection of DataItems).

In a Workflow:

Given a list (IEnumerable) of objects of any type, this activity can convert those objects into a list of strongly-typed DataItems, with a value and display name. DataItems can be used as input for certain Form elements such as ComboBox items (as a collection of DataItems). The objects in the list can either have defined values and display name properties, or they can be directly converted to strings with the ToString() method.

Properties:

Name Description

In Arguments

List

The list of arbitrary items to be converted into a list of the DataItem objects.

Misc

Display Name

ListToDataItemList

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Display Property

The name of the property of the Object that will contain the Display data. The Display Property of the Object should be of type string.

Sort

Whether to sort the resulting list of DataItems. If true, the display values must support sorting.

Value Property

The name of the property of the object that will contain the Value data. The Value Property of the Object can be of any type, but should be Data Contract Serializable if you intend to send the output DataItem to the client.

Out Arguments

DataItem List

The new list of DataItem objects, suitable to be passed into a form input.

Version Information:

Supported from: Geocortex Essentials 3.5.