Esri Community Analyst API for Flex 2.2 ReferenceAll Packages | All Classes | Index | Frames
OpenFeatureLayerParameters
 
Packagecom.esri.baserver.tasks.repository
Classpublic class OpenFeatureLayerParameters
InheritanceOpenFeatureLayerParameters Inheritance RepositoryItemParameters Inheritance BABaseParameters Inheritance Object

The OpenFeatureLayerParameters class provides input parameters for Open Feature Layer task.

View the examples



Public Properties
 PropertyDefined By
 InheritedfolderType : FolderType
[read-only] Folder type.
RepositoryItemParameters
 Inheriteditem : FolderItem
Folder item to work with.
RepositoryItemParameters
 InheriteditemName : String
[read-only] Item name.
RepositoryItemParameters
  outputSpatialReference : SpatialReference
The spatial reference to return the output feature set in.
OpenFeatureLayerParameters
 InheritedprojectName : String
[read-only] Project name.
RepositoryItemParameters
 InheritedresultType : BAResultType
[read-only] Type of a result returned by the task associated with these parameters.
BABaseParameters
  returnGeometry : Boolean
An option specifying the presence of the shape attribute in the returned record set.
OpenFeatureLayerParameters
 InheritedtaskName : String
[read-only] Name of a Business Analyst Server task associated with these parameters.
BABaseParameters
 InheritedworkspaceName : String
[read-only] Workspace name.
RepositoryItemParameters
Protected Properties
 PropertyDefined By
 InheriteditemVariableName : String
[write-only] Name of folder item variable.
RepositoryItemParameters
Public Methods
 MethodDefined By
  
Creates a new instance of the OpenFeatureLayerParameters class.
OpenFeatureLayerParameters
Property Detail
outputSpatialReferenceproperty
outputSpatialReference:SpatialReference

The spatial reference to return the output feature set in.


Implementation
    public function get outputSpatialReference():SpatialReference
    public function set outputSpatialReference(value:SpatialReference):void
returnGeometryproperty 
returnGeometry:Boolean

An option specifying the presence of the shape attribute in the returned record set.

The default value is true.


Implementation
    public function get returnGeometry():Boolean
    public function set returnGeometry(value:Boolean):void
Constructor Detail
OpenFeatureLayerParameters()Constructor
public function OpenFeatureLayerParameters(item:FolderItem = null)

Creates a new instance of the OpenFeatureLayerParameters class.

Parameters
item:FolderItem (default = null) — Folder item to open.
Examples
ActionScript to execute an Open Feature Layer task:
     
     var parameters:OpenFeatureLayerParameters = new OpenFeatureLayerParameters();
      
     // item is a com.esri.baserver.FolderItem.
     var item:FolderItem = new FolderItem();
     item.workspaceName = workspaceName;
     item.projectName = projectName;
     item.folderType = FolderType.STORE_LAYERS;
     item.itemName = itemName;
     
     parameters.item = item;
     
     // outputSpatialReference is com.esri.ags.SpatialReference.
     // If this parameter is omitted, the feature set will be returned in the default spatial reference
     // of the active dataset.
     parameters.outputSpatialReference = outSpatialReference;
     
     // The geometry is returned by default.
     //parameters.returnGeometry = true;
     
     openFeatureLayerTask.execute(parameters, new Responder(resultHandler, faultHandler));