Run Report Activity

Description

The Run Report activity runs a Geocortex report. You must supply the URL of a report item located in ArcGIS Online or Portal for ArcGIS.

Usage

You could allow the user to select features and areas on a map and pass them as inputs to the Run Report activity. The report must be configured to expect these inputs. You could then provide the user a link to download the report.

Inputs

Url

Required

Type: String

The URL of the report to run.

Feature Ids

Optional

Type: Object[]

The IDs of the features to generate the report for.

This corresponds to the FeatureIds input parameter of layer reports.

Parameters

Optional

Type: Lookup<any | any[]>

Additional report parameters.

Example: ={ title: "Report Title", parameter1: 1, parameter2: "two" }

Include Map

Optional

Type: Boolean

Indicates whether the activity should include a web map when running the report. If the report template contains a Map Picture Box control and Include Map is true, the control will show the currently selected map in the generated report.

Webmap Parameters

Optional

Type: ObjectObject[]

The parameters for including a map or maps in a report.

Result File Name

Optional

Type: String

The name of the result file that is downloaded.

Data Sources

Optional

Type: ObjectObject[]

Replace the data from one or more data sources at run time.

Each object in the array has a name and a value:

{
    "name": "{data-source-name}",
    "value": { replacement-data }
}

The name is the name of the data source whose data you want to replace. The name must match the name of the data source in the report.

The value is an object that defines the data to use in the report. The value is defined using the same schema as the data source in the report.

Outputs

href

Type: String

The URL to the report result.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Supported Environments

Environments capable of running this activity

Server

 

Client

Geocortex Web

Geocortex Mobile

Geocortex Viewer for HTML5

Web AppBuilder

Levels of Support:      Full Support      Partial Support      No Support

Partially Supported Environments

Offline Support

This activity does not work when the device is offline.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, Web AppBuilder for ArcGIS 2.4.

See also...

Run Reports from Geocortex Workflows