Packagecom.esri.ags.layers.supportClasses
Classpublic class TableDataSource
InheritanceTableDataSource Inheritance flash.events.EventDispatcher
Implements IDataSource, IJSONSupport

Since : ArcGIS API 3.0 for Flex

The TableDataSource class defines and provides information about a table, feature class, or raster that resides in a registered file geodatabase, enterprise geodatabase (SDE) or Shapefile workspace.

Note: Requires ArcGIS 10.1 or later.

See also

About dynamic layers [ArcGIS Help]
Live sample - Dynamic layer based upon a dynamic workspace
Live sample - Using DynamicLayerInfo and JoinDataSource


Public Properties
 PropertyDefined By
  dataSourceName : String
The name of the data source.
TableDataSource
  gdbVersion : String
Geodatabase version to use.
TableDataSource
  workspaceId : String
The workspace ID.
TableDataSource
Public Methods
 MethodDefined By
  
toJSON(key:String = null):Object
Convert this TableDataSource to a JSON object.
TableDataSource
Property Detail
dataSourceNameproperty
dataSourceName:String

The name of the data source.

This property can be used as the source for data binding.


Implementation
    public function get dataSourceName():String
    public function set dataSourceName(value:String):void
gdbVersionproperty 
gdbVersion:String

Since : ArcGIS API 3.0 for Flex

Geodatabase version to use. Requires ArcGIS 10.1 or later (and versioned data).

This property can be used as the source for data binding.


Implementation
    public function get gdbVersion():String
    public function set gdbVersion(value:String):void
workspaceIdproperty 
workspaceId:String

The workspace ID.

This property can be used as the source for data binding.


Implementation
    public function get workspaceId():String
    public function set workspaceId(value:String):void
Method Detail
toJSON()method
public function toJSON(key:String = null):Object

Convert this TableDataSource to a JSON object. If you need a JSON formatted string, you can pass this TableDataSource directly to JSONUtil.encode().

Parameters

key:String (default = null) — Unused but required for compatibility with JSON.stringify().

Returns
Object — JSON object

See also