Object To DataItem Activity

Description:

Create a DataItem object from an arbitrary object.

Inheritance Hierarchy:

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

Function:

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

In a Workflow:

You would use this activity to create a DataItem from another type of object. A DataItem is a simple object that can hold the display text and backing value of an item in a list.

Properties:

Name Description

In Arguments

Object

The object to convert to a DataItem.

Misc

Display Name

ObjectToDataItem

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 DisplayProperty of the Object should be of type string.

Value Property

The name of the property of the object that will contain the Value data. The ValueProperty 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

The new DataItem that is a composite of the DisplayProperty and ValueProperty property values of the Object.

Version Information:

Supported from: Geocortex Essentials 3.4.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 4.11