Working with the VariableSelector control

The VariableSelector server control can retrieve a value from a workflow variable. The control can be set to present only specific types of workflow variables, and it can allow hard-coded options to be included in the list by a JavaScript function.

Registering the control

The following Register directive registers all server controls, including the VariableSelector control, for use on a configuration page.

<%@ Register TagPrefix="Nintex" Namespace="Nintex.Workflow.ServerControls" 
    Assembly="Nintex.Workflow.ServerControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12" %>

Declaring the control

The following example illustrates how to add a VariableSelector server control to a configuration property.

<Nintex:VariableSelector ID="drpFields" Width="200px" runat="server" 
    IncludeSPItemKeyVars="True" IncludeBlankOption="False" IncludeTextVars="True" 
    IncludeNumberVars="True" IncludeIntegerVars="True" IncludeBooleanVars="True" 
    IncludeDateTimeVars="True" IncludeLongVars="True" IncludeArrayListVars="False">

Implementing the control

Internally, the VariableSelector server control is derived from the InputDropDownList server control, and appears as a dropdown list on the configuration page, as shown in the following example.

The appearance of the control can be adjusted in the following ways:

See Also

Concepts

Configuration pages

Workflow references

Operations

Working with configuration pages

Working with controls

Reference

JavaScript Reference

.NET Framework Reference