Passing multiple webmaps to a report in Workflow
Hi, I'm running into an issue trying to pass two web maps into the ‘Webmap Parameters’ for a ‘Run Report’ action in Workflow. My understanding of the process is this:
1. Create report with two Map Picture Boxes
2. Use generate ‘Generate Webmap for Report’ actions in Workflow to create 2 webmap objects. Make sure to set the ‘Map Name’ parameter for each after the report Map Picture Box map control name in the report. Example: mapPictureBox1 and mapPictureBox2. This will tell the report where to put each webmap.
3. Within the ‘Run Report’ action set ‘Include Map’ to true and then pass in the web map objects like this: =$webmapForReport1.result, $webmapForReport2.result
4. The report will generate with the Map Picture Boxes name after each input ‘Generate Webmap for Report’ action.
When I try to run this with a single input webmap like =$webmapForReport1.result it seems to work properly.
When I use both, only the second webmap listed in the input passed in shows in the report.
Example:
=$webmapForReport1.result, $webmapForReport2.result
Will show the proper result only for mapPictureBox2
=$webmapForReport2.result, $webmapForReport1.result
will only show the proper result for mapPictureBox1
In the console the RunReport action seems to be recognizing both webmap objects properly. I assume I'm making a syntax error on the input parameter but can't figure out what it should be.
Thanks!
-
The Webmap Parameters need to be passed into an Array:
=[$webmapForReport1.result,$webmapForReport2.result]
You also need to remove the value from the “Include Map” input as it gets confused.
This may result in a larger amount of data being sent to the report, so you may need to increase the limits in the Web.Config. VertiGIS support helped me with this one:
C:\Program Files\VertiGIS\VertiGIS Studio Reporting\Deployment\Service\Web.config
This increased it from ~4MB to 20MB. The "maxRequestLength" one is measured in kilobytes and the "maxAllowedContentLength" one is in Bytes.
1 -
Thanks Ali! This is exactly what I was looking for
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires