Run Print Activity

Description

The Run Print activity runs a Geocortex print. If the print template contains a Map Picture Box control, the control will show the currently selected map in the generated print. You must supply the URL of a print item located in ArcGIS Online or Portal for ArcGIS.

Usage

You could use a Display Form activity to get notes from the user and pass the notes as inputs to the Run Print activity so they are included in the print. Highlighted features and map markup will also show in the print.

Inputs

Url

Required

Type: String

The URL of the ArcGIS item for the print template you want to run.

Extent

Optional

Type: esri.Extent (3.x, 4.x)*

The extent of the map to be printed. If you omit the Extent input, the map's current extent is used.

If you configure both the Extent and Scale inputs, the Extent input is only used to determine the center point of the map.

Scale

Optional

Type: Number

The scale to zoom to, with the map centered on Extent if it is configured, otherwise centered on the current extent.

If you omit the Scale input, the map prints at Extent if it is configured, otherwise at the current extent.

Parameters

Optional

Type: Lookup<any | any[]>

Additional print parameters.

For example, suppose the print template has two print inputs, Title and Notes. You could allow the user to enter the notes (but not the title) in a form by using an expression similar to this: ={ Notes: $form1.state.textArea1.value, Title: "Flooded Areas" }

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of host application. See Underlying Technologies for information.

Outputs

href

Type: String

The URL to the print output.

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

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.

© 2020 VertiGIS North America Ltd. All Rights Reserved.

Documentation Version 5.19