Display Form Activity
Description:
Displays a form in the client application.
Inheritance Hierarchy:
System.Object
System.Activities.Activity
System.Activities.NativeActivity
Geocortex.Workflow.Activities.ExternalActivityBase
Geocortex.Workflow.Activities.DiplayForm
Function:
The Display Form activity is a powerful way to gather multiple inputs of various types from the user all in one step. This activity provides access to Form Designer where you can create complex forms collecting multiple pieces of information that can be passed to subsequent activities.
In a Workflow:
A form could be used, for example, within a 311 incident reporting workflow. You could create a form that would collect all the details about the incident such as the incident type, the incident details, as well as the name, email, and phone number of the person reporting the incident. All this information could then be used by an activity that would record that information into a database.
Properties:
Name | Description |
---|---|
In Arguments |
|
Input Geometry |
The geometry that will be used to filter the Query Task (of ComboBox and ListBox). Filter by geometry must be specified in the Form Item. |
Region Name |
Gets or sets the name of the region where the form should be placed. This argument is only valid for viewer technologies that implement the concept of regions, such as the Geocortex Viewer for Silverlight. Instead, you can use the |
Workflow Container Name |
The name of the workflow container where the visual output of the activity displays. Use one of the HTML5 Viewer's predefined workflow containers or create a custom container. For more information, see Workflow Containers. |
Misc |
|
Display Name |
DisplayForm 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. |
External Id |
An activity handler within a client can reference this particular activity using this external identifier. |
Out Arguments |
|
Button Result Value |
The text output of the button that the user clicked on the form. |
Form Results |
All the results for the form items that have an argument name specified. |
Other Properties |
|
Design Form |
Click to open Form Designer where you can create or edit a form. |
Form Preview |
In Form Designer, a dynamic preview of the form as you create it. |
Buttons |
Opens the Button Editor dialog where you add or remove buttons to display on the form. |
Input Data |
The ID of the Form Item. A collection of DataItems that will populate the Form Item when the form loads. |
Runtime Modifications to Forms:
From Essentials 3.9, the Display Form activity contains a new child sequence activity that provides access to the form's object model. This access makes it possible to change the form at runtime. Form Designer usually creates static definitions of forms. However, you often need to modify a form as it runs using values from a workflow, for example, when a workflow obtains a text value at runtime. To present a form that contains that runtime text value you then need to modify your form definition at execution, for example, to add a specific URL or token to a URL as the form executes.
The RuntimeModifications
sequence contains a local variable called form
that is populated with the live Geocortex.Forms.Client.FormDefinition
object. The live object represents the form that is about to be displayed in the client application. You can use activities such as Assign
to manipulate any aspect of the form and the items it contains.
The RuntimeModifications
sequence does not support client or external activities. If you add a client activity, such as Alert or Run External Command, it generates a validation error.
To modify a form at runtime:
-
Expand the
RuntimeModifications
sequence if it is not already expanded. -
Click the Imports tab and verify that your workflow imports the
Geocortex.Forms.Client.Items
namespace.If it does not, select the
Geocortex.Forms.Client.Items
namespace from the drop down list. -
Drag an Assign activity from the Activities panel into the sequence.
-
Configure the To argument of the Assign activity to manipulate a particular item in the form.
You can use the
FormDefinition.Find
method to access individual form items by their unique ID. Each form item type has specific properties that can be defined. See the list below for sample, commonly-used properties. -
Configure the Value argument of the Assign activity to apply a specific runtime value to the object specified by To.
Commonly Used Properties for Built-in Form Items:
Geocortex.Forms.Client.Items Namespace has a complete list of form items with links to the documentation for each item.
form.Title
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").ArgumentName
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").DefaultText
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").IsVisible
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").Label.Text
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").QueryCascadingID
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").QueryDisplayOutputField
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").QueryLayerSource
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").QueryServiceUrl
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").QueryWhereClause
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").Token
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").ToolTip
form.Find(Of CheckBoxFormItem)("CheckBox1").ArgumentName
form.Find(Of CheckBoxFormItem)("CheckBox1").Checked
form.Find(Of CheckBoxFormItem)("CheckBox1").IsVisible
form.Find(Of CheckBoxFormItem)("CheckBox1").Text
form.Find(Of CheckBoxFormItem)("CheckBox1").ToolTip
form.Find(Of ComboBoxFormItem)("ComboBox1").ArgumentName
form.Find(Of ComboBoxFormItem)("ComboBox1").DataItems
form.Find(Of ComboBoxFormItem)("ComboBox1").IsVisible
form.Find(Of ComboBoxFormItem)("ComboBox1").Label.Text
form.Find(Of ComboBoxFormItem)("ComboBox1").QueryCascadingID
form.Find(Of ComboBoxFormItem)("ComboBox1").QueryDisplayOutputField
form.Find(Of ComboBoxFormItem)("ComboBox1").QueryLayerSource
form.Find(Of ComboBoxFormItem)("ComboBox1").QueryServiceUrl
form.Find(Of ComboBoxFormItem)("ComboBox1").QueryValueOutputField
form.Find(Of ComboBoxFormItem)("ComboBox1").QueryWhereClause
form.Find(Of ComboBoxFormItem)("ComboBox1").SelectedValue
form.Find(Of ComboBoxFormItem)("ComboBox1").Token
form.Find(Of ComboBoxFormItem)("ComboBox1").ToolTip
form.Find(Of ContainerFormItem)("Group1").ArgumentName
form.Find(Of ContainerFormItem)("Group1").Description
form.Find(Of ContainerFormItem)("Group1").IsVisible
form.Find(Of ContainerFormItem)("Group1").ToolTip
form.Find(Of ContainerFormItem)("Group1").VisibleControlID
form.Find(Of ContainerFormItem)("Group1").VisibleControlValue
form.Find(Of FilePickerFormItem)("FilePicker1").AcceptFileTypes
form.Find(Of FilePickerFormItem)("FilePicker1").AllowMultiple
form.Find(Of FilePickerFormItem)("FilePicker1").ArgumentName
form.Find(Of FilePickerFormItem)("FilePicker1").Label.Text
form.Find(Of FilePickerFormItem)("FilePicker1").ToolTip
form.Find(Of DatePickerFormItem)("DatePicker1").ArgumentName
form.Find(Of DatePickerFormItem)("DatePicker1").InitialDate
form.Find(Of DatePickerFormItem)("DatePicker1").IsVisible
form.Find(Of DatePickerFormItem)("DatePicker1").Label.Text
form.Find(Of DatePickerFormItem)("DatePicker1").ToolTip
form.Find(Of GroupBoxFormItem)("GroupBox1").ArgumentName
form.Find(Of GroupBoxFormItem)("GroupBox1").Description
form.Find(Of GroupBoxFormItem)("GroupBox1").Header
form.Find(Of GroupBoxFormItem)("GroupBox1").IsVisible
form.Find(Of GroupBoxFormItem)("GroupBox1").ToolTip
form.Find(Of GroupBoxFormItem)("GroupBox1").VisibleControlID
form.Find(Of GroupBoxFormItem)("GroupBox1").VisibleControlValue
form.Find(Of HyperlinkFormItem)("Hyperlink1").ArgumentName
form.Find(Of HyperlinkFormItem)("Hyperlink1").IsVisible
form.Find(Of HyperlinkFormItem)("Hyperlink1").HyperlinkText
form.Find(Of HyperlinkFormItem)("Hyperlink1").ToolTip
form.Find(Of HyperlinkFormItem)("Hyperlink1").Uri
form.Find(Of ImageFormItem)("Image1").ArgumentName
form.Find(Of ImageFormItem)("Image1").IsVisible
form.Find(Of ImageFormItem)("Image1").Source
form.Find(Of ImageFormItem)("Image1").ToolTip
form.Find(Of ListBoxFormItem)("ListBox1").ArgumentName
form.Find(Of ListBoxFormItem)("ListBox1").DataItems
form.Find(Of ListBoxFormItem)("ListBox1").IsVisible
form.Find(Of ListBoxFormItem)("ListBox1").Label.Text
form.Find(Of ListBoxFormItem)("ListBox1").QueryLayerSource
form.Find(Of ListBoxFormItem)("ListBox1").QueryServiceUrl
form.Find(Of ListBoxFormItem)("ListBox1").QueryWhereClause
form.Find(Of ListBoxFormItem)("ListBox1").SelectedValues
form.Find(Of ListBoxFormItem)("ListBox1").Size
form.Find(Of ListBoxFormItem)("ListBox1").Token
form.Find(Of ListBoxFormItem)("ListBox1").ToolTip
form.Find(Of MarkdownFormItem)("Markdown1").ArgumentName
form.Find(Of MarkdownFormItem)("Markdown1").IsVisible
form.Find(Of MarkdownFormItem)("Markdown1").PlainText
form.Find(Of MarkdownFormItem)("Markdown1").ToolTip
form.Find(Of RadioButtonFormItem)("RadioButton1").ArgumentName
form.Find(Of RadioButtonFormItem)("RadioButton1").Checked
form.Find(Of RadioButtonFormItem)("RadioButton1").IsVisible
form.Find(Of RadioButtonFormItem)("RadioButton1").Text
form.Find(Of RadioButtonFormItem)("RadioButton1").ToolTip
form.Find(Of TextAreaFormItem)("TextArea1").ArgumentName
form.Find(Of TextAreaFormItem)("TextArea1").DefaultText
form.Find(Of TextAreaFormItem)("TextArea1").IsVisible
form.Find(Of TextAreaFormItem)("TextArea1").Label.Text
form.Find(Of TextAreaFormItem)("TextArea1").ReadOnly
form.Find(Of TextAreaFormItem)("TextArea1").TextboxHeight
form.Find(Of TextAreaFormItem)("TextArea1").ToolTip
form.Find(Of TextBoxFormItem)("TextBox1").ArgumentName
form.Find(Of TextBoxFormItem)("TextBox1").DefaultText
form.Find(Of TextBoxFormItem)("TextBox1").IsVisible
form.Find(Of TextBoxFormItem)("TextBox1").Label.Text
form.Find(Of TextBoxFormItem)("TextBox1").ReadOnly
form.Find(Of TextBoxFormItem)("TextBox1").ToolTip
form.Find(Of TimePickerFormItem)("TimePicker1").ArgumentName
form.Find(Of TimePickerFormItem)("TimePicker1").InitialTime
form.Find(Of TimePickerFormItem)("TimePicker1").IsVisible
form.Find(Of TimePickerFormItem)("TimePicker1").Label.Text
form.Find(Of TimePickerFormItem)("TimePicker1").ToolTip
Version Information:
Supported from: Geocortex Essentials 3.4, Geocortex Viewer for Silverlight 1.0, Geocortex Viewer for HTML5 1.0.