Esri Business Analyst Server API for Silverlight 2.2 Reference
BenchmarkReportParameters Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BAServer.Tasks.Reports Namespace : BenchmarkReportParameters Class

Glossary Item Box

The BenchmarkReportParameters class provides input parameters for the Benchmark Report task.

Object Model

BenchmarkReportParameters ClassBoundaries ClassFolderItem ClassOutputTypes ClassBAResultType ClassReportOptions Class

Syntax

Remarks

The BenchmarkOptions parameter specifies how to create the benchmark area:

Value Description
BenchmarkOptions.useOneOfTheTradeAreas selects the benchmark area by OID from the benchmark layer (the benchmarkLayer and benchmarkAreaOID parameters should be specified)
BenchmarkOptions.useAverageValues creates the benchmark area by calculating average summarization values for all areas in the trade area layers
BenchmarkOptions.useMedianValues creates the benchmark area by calculating median summarization values for all areas in the trade area layers
BenchmarkOptions.useNone means no benchmark (creates a report without comparison with benchmark)

The TAinRows parameter determines the orientation of the summarization fields in the report:

  • true value outputs the report with the summarization fields in columns and the trade areas in rows.
  • false value (default) outputs the report with the summarization fields in rows and the trade areas in columns.

The FieldSortType parameter specifies the sorting rules based on the field specified with the SortFieldName parameter value:

Value Description
BenchmarkSortOptions.sortNone means no sorting
BenchmarkSortOptions.sortByFieldOnly sorts by the field itself
BenchmarkSortOptions.sortByFieldDifference sorts by the calculated difference between the field value and the benchmark field value
BenchmarkSortOptions.sortByFieldPercent sorts by the calculated percent of the field value with respect to the benchmark field value
BenchmarkSortOptions.sortByFieldIndex sorts by the field index (available for some summarization fields)

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.

Example

The code snippet below creates BenchmarkReportParameters and then executes a Benchmark Report task.
C#Copy Code
BenchmarkReportParameters parameters = new BenchmarkReportParameters();
             
// Set trade areas as a list of the Boundaries type items.
parameters.TradeAreas = new List<Boundaries>(){ boundaries };
             
// Set fields of the geography data layer to be summarized for trade areas and compared with the benchmark. 			
parameters.Summarizations = new List<string>(){"TOTPOP_CY", "HHPOP_CY"};
            
// Set report parameters. 
parameters.StandardReportOptions = new ReportOptions("PDF");
             
benchmarkReportTask.ExecuteAsync(parameters, new AsyncResponder(resultHandler, faultHandler));

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.BATaskParameters
      ESRI.ArcGIS.Client.BACore.Client.StandardReportParameters
         ESRI.ArcGIS.Client.BAServer.Tasks.StandardReportParameters
            ESRI.ArcGIS.Client.BAServer.Tasks.Reports.BenchmarkReportParameters

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 Esri, Inc. All Rights Reserved.