Packagecom.esri.ags.tasks
Classpublic class FindParameters

Input parameters for a FindTask.


Example
ActionScript to use FindParameters:
 myFindTask.execute( myFindParams );

See also

FindTask
Live sample - Find features
Live sample - Zoom to found features


Public Properties
 PropertyDefined by
  contains : Boolean = true
The Contains Parameter.
FindParameters
  layerIds : Array
The layers to perform the Find operation on.
FindParameters
  outSpatialReference : SpatialReference
The well-known ID of the spatial reference of the output geometries.
FindParameters
  returnGeometry : Boolean
If true, each feature in the FeatureSet includes the geometry.
FindParameters
  searchFields : Array
A list of names of the fields to search.
FindParameters
  searchText : String
The search string text that is searched across the layers and the fields as specified in the layers and searchFields parameters.
FindParameters
Property detail
containsproperty
public var contains:Boolean = true

The Contains Parameter. If false, the operation searches for an exact match of the searchText string. Otherwise, it searches for a value that contains the searchText provided.

The default value is true.

layerIdsproperty 
public var layerIds:Array

The layers to perform the Find operation on. The ID is returned in layerInfos.


Example
ActionScript to use layerIds:
     myFindParameters.layerIds = [0,1,2];

outSpatialReferenceproperty 
public var outSpatialReference:SpatialReference

The well-known ID of the spatial reference of the output geometries. If outSR is not specified, the output geometries are returned in the spatial reference of the map.

returnGeometryproperty 
public var returnGeometry:Boolean

If true, each feature in the FeatureSet includes the geometry. This should be set to false if you do not plan to include highlighted features on a map since the geometry makes up a significant portion of the response. By default, this is false.

searchFieldsproperty 
public var searchFields:Array

A list of names of the fields to search. If not specified, all fields will be searched.

searchTextproperty 
public var searchText:String

The search string text that is searched across the layers and the fields as specified in the layers and searchFields parameters.