Package | com.esri.baserver.tasks.reports |
Class | public class CustomerDemographicProfileParameters |
Inheritance | CustomerDemographicProfileParameters StandardReportParameters StandardReportParameters BATaskParameters Object |
Output options for this task include creating a report (outputTypes.getReport). You need not specify the output options for this task because the getReport output type is set by default.
See also
Property | Defined By | ||
---|---|---|---|
activeDatasetID : String
Active dataset ID. | BATaskParameters | ||
customers : PointLayer
A point layer containing point features which represent the locations of customers
to get the demographic profile for (required). | CustomerDemographicProfileParameters | ||
geographyLayerID : String
ID of a standard geography layer to get demography from (requred). | CustomerDemographicProfileParameters | ||
outputReportItem : FolderItem
Configuration options for storing the output report in the repository. | StandardReportParameters | ||
outputTypes : OutputTypes
Task output types. | BATaskParameters | ||
resultType : BAResultType [read-only]
Type of the result returned by the task associated with these parameters. | BATaskParameters | ||
standardReportOptions : ReportOptions
Standard report options. | StandardReportParameters | ||
taskName : String [read-only]
Name of a Community Analyst Task associated with these parameters. | BATaskParameters |
Method | Defined By | ||
---|---|---|---|
CustomerDemographicProfileParameters(customers:PointLayer = null, geographyLayerID:String = null)
Creates a new instance of the CustomerDemographicProfileParameters class. | CustomerDemographicProfileParameters |
customers | property |
customers:PointLayer
A point layer containing point features which represent the locations of customers to get the demographic profile for (required).
public function get customers():PointLayer
public function set customers(value:PointLayer):void
geographyLayerID | property |
geographyLayerID:String
ID of a standard geography layer to get demography from (requred).
public function get geographyLayerID():String
public function set geographyLayerID(value:String):void
CustomerDemographicProfileParameters | () | Constructor |
public function CustomerDemographicProfileParameters(customers:PointLayer = null, geographyLayerID:String = null)
Creates a new instance of the CustomerDemographicProfileParameters class.
Parameterscustomers:PointLayer (default = null ) — The customer layer used to get the demographic profile for.
| |
geographyLayerID:String (default = null ) — ID of a standard geography layer to get demography from.
|
var parameters : CustomerDemographicProfileParameters = new CustomerDemographicProfileParameters(); // The PointLayer type could take either data as type // com.esri.ags.tasks.FeatureSet, com.esri.baserver.FolderItem, // or an array of com.esri.bacore.PointRecord items, e.g. //var points:Array = [new PointRecord("Customer 1", "Steiner St. & Geary Blvd", "1", 37.78415, -122.4346)]; // Set customers as an array of PointRecord items. parameters.customers = new PointLayer(points); // Set ID of a geography layer to get demography from. parameters.dataLayerID = "US.BlockGroups"; // Set report parameters. parameters.standardReportOptions = new ReportOptions("PDF"); customerDemographicProfileTask.execute(parameters, new Responder(resultHandler, faultHandler));