Create Detailed Territory Report (Territory Design)

License Level:BasicStandardAdvanced

Summary

Creates a detailed summary report.

A detailed report can show a whole level or individual territories within a territory level. This is essential to show a quick snapshot of selected territories and their levels.

Usage

Syntax

CreateDetailedTerritoryReport_TD_td (in_territory_solution_layer, in_level, in_territories, {in_stat_fields}, {in_data_fields}, {in_report_folder}, {in_report_name}, {in_report_title})
ParameterExplanationData Type
in_territory_solution_layer

The Territory Solution layer to be used in the Report.

GP TD Layer
in_level

The Input Territory level.

String
in_territories
[in_territories,...]

The list of territory names that will be included to the report.

GP Multi Value
in_stat_fields
[in_stat_fields,...]
(Optional)

The variables to be included inside the Statistics section of the report.

GP Value Table
in_data_fields
[in_data_fields,...]
(Optional)

The variables to be included inside the Data section of the report.

GP Value Table
in_report_folder
(Optional)

The location of the Report Folder.

String
in_report_name
(Optional)

The name of the Report file.

String
in_report_title
(Optional)

The title of the Report.

String

Code Sample

The following Python window script demonstrates how to use Business Analyst geoprocessing tool in immediate mode.

import arcgisscripting
gp = arcgisscripting.create()
gp.CreateDetailedTerritoryReport_TD("new layer", "Territories[1]", "Territory 1[1];Territory 2[2]", "'Count';'AREA_SUM' SUM;'AREA_SUM' MIN;'TOTPOP_CY_SUM' MAX", "'Count';'AREA_SUM';'TOTPOP_CY_SUM'", "C:/BA Output/Project/Default Project/Reports/", "New Report" , "The Detailed Territory Report of New Territory Solution")

The following stand-alone script demonstrates how to use the tool.

# Import system modules
import arcgisscripting
gp = arcgisscripting.create()

# Set local variables
solution = "new layer"
level = "Territories[1]"
territories = "Territory 1[1];Territory 2[2]"
statistics = "'Count';'AREA_SUM' SUM;'AREA_SUM' MIN;'TOTPOP_CY_SUM' MAX"
data = "'Count';'AREA_SUM';'TOTPOP_CY_SUM'"
folder = "C:/BA Output/Project/Default Project/Reports/"
name = "New Report"
title = "The Detailed Territory Report of New Territory Solution"

# Execute tool
gp.CreateDetailedTerritoryReport_TD(solution, level, territories, statistics, data, folder, name, title)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires Business Analyst
ArcGIS for Desktop Standard: Requires Business Analyst
ArcGIS for Desktop Advanced: Requires Business Analyst
3/25/2014