Cognos Report Template - Insert Map

See here for a comprehensive set of instructions for inserting objects into a Cognos Report.

Step 01> Open Cognos Report Studio, Select Page Explorer, then page 1.

Step 02> Select the Toolbox Tab on the Insertable Objects Panel.

Step 03> Drag and Drop the Image Object onto the report.

Step 04> Click the Image on the report to open the image Properties.

 

Step 05> In URL Source > Source Type, Select Report Expression.

Step 06> In URL Source > Report Expression, Enter the Dekho URL:

'http://localhost:8080/Dekho/MapServlet?width=100&height=100&sessionid=' + ParamValue('sessionid')

Step 07> Select Page Explorer, then Prompt Pages.

Step 08> From the Insertable Objects , Insert a page onto the Prompt Pages panel.

Step 09> From the Insertable Objects panel, drag a Text Box Prompt onto the report.

Step 10> Double-Click the newly created prompt page.

Step 11> Enter sessionid and Click Finish.

Refer to this Table for additional parameters to modify the report.

Step 12> Save the report.

 

Parameter

Example

Notes

sessionid

sessionid=A328DC621DG328DC621DG3

The Dekho session id. Dekho will not return a map if no valid session id is provided.

mapname

themapname

The map name. It needs to be url encoded. Spaces are represented as If not set, the current map in %20. If blank the current map in Dekho will be used.

width

width=640

Width of the map in pixels.

height

height=480

Height of the map in pixels.

resolution

resolution=150

How many dots/pixels per inch. Use this setting in conjunction with the width and height to define the width of the map in the report in inches.

format

format=png24

Format of the map image

selection

selection=mapservice.layername:2,6,4;

sde.suburb:5,3,1,4

Override the selected features on the map. If not set, the current selection in Dekho will be used. Format is <full layer name1>:<objectid1>,<objectid2>; <full layer name2>:<objectid3>

layers

layers=mymapservice.cadastre, mymapservice.suburb

Defines the visible layers when drawing the map. If the layer is in a group or a map service, then the parent group and/or parent service must also be visible. This follows the same behaviour as the visibility checkboxes in the Dekho legend. If a layer is checked visible, but its parent service is invisible, the layer will not appear.

extents

Extents=329042,58162,333558,58200

<minx>,<miny>,<maxx>,<maxy>

zoomtoselection

zoomtoselection=true

true or false

 |- zoomfactor

zoomfactor=2.0

Used in conjunction with zoomtoselection=true. Zoom to selection, then zoom out by this zoom factor. The default is 2.0

 |- scale

scale=2500

Used in conjunction with zoomtoselection=true. Zoom to selection then set scale to this value


Cognos Report Template - Insert Table