ESRI.ArcGIS.ADF.Tasks
FormEntry Class
Members  See Also 
ESRI.ArcGIS.ADF.Tasks Namespace : FormEntry Class




Maintains information on form items added to the QueryAttributesTask.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class FormEntry 
Visual Basic (Usage)Copy Code
Dim instance As FormEntry
C# 
[SerializableAttribute()]
public class FormEntry 

Remarks

At design time, either in Visual Studio or Manager, the QueryAttributesTask is typically configured by adding "Form Entry" items that define the query for the task. In the query task dialog, the user clicks Add to add a form item, which displays a dialog for the form entry. In this form the user chooses the field to query (AssociatedField), the operator (=, <, etc. - SqlOperator), and optionally a default value (DefaultValue) or a pick-list (DefaultValues). The user may also configure a validator (InputValidationMode) to examine data entered by the user.

For example, a form entry item may query a field called POPULATION, with an operator of ">" (greater than). The default value may be set to 50000. A range validator may be set to ensure that the value entered is between 100 and 1000000.

The data entered in Visual Studio or Manager are stored in a FormEntry object. This object in turn is then used at runtime to display the query task form and (if configured) to validate the user input. Note that the actual query executed is not constructed directly from the FormEntry properties. Instead, it is taken from the QueryAttributes.WhereExpressionFormatString associated with the task. This is designed to accommodate multiple form entries (compound queries) and customized where expressions that cannot be designed with the form editor. For example, wildcard characters (%) used in LIKE queries, and concatentating operators other than AND (i.e., OR and NOT) must be set by configuring a custom where expression.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.Tasks.FormEntry

See Also

© 2010 All Rights Reserved.