Passing values to Print or Report templates from workflow
Hi,
Can anyone indicate if it is readily possible to pass a value (for example from a variable assigned during a workflow activity (e.g. obvious activity output is getCurrentUser)) into a print or report template?
Brad
-
Hi Brad
try https://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=20&thread=46973
Thanks
Ralph
0 -
Hi,
I've never made the thread Ralph is referencing work. If you find a way through, Brad, I would like to know what you do, perhaps in a small workflow you can upload.
Thanks
Rene
0 -
Its not readily supported although can be done (i'm yet to do it) - this has been confirmed by Latitude.. I've copied the response from them for your info; they are to upload a sample workflow in near future in Code Gallery that demonstrates this type of functionality. In short however, its loosely coupled & minimal support right now for doing this type of thing....
"There is only one way to pass values to a report in a workflow, and that is by using the Template Report activity. This activity accepts a Data Set as input. The data tables in the data set can be constructed manually, or you can use a Feature Set as in this example.
All reports that you create in Essentials use a Data Set to contain the data that they retrieve from your site/layers. This data set can hold one or more data tables. In most cases, when the only data you are using in the report is from a feature layer in your site, the report only needs one data table. However, if you wanted to include linked data, or map data, in addition to feature layer data, the map data or linked data would be sent in additional data tables in the data set.
The important thing to note here is that by supplying the data set to the report ourselves in the Workflow, we are telling the report to use only the values that we provide, instead of the data that Essentials normally would pass to the report template.
For a layer report, we can replicate the table that Essentials would be sending by converting a feature set to a data table. However, there is not an easy way to replicate the Map data that Essentials sends to print templates. This is because Map data is special – it has its own data table, with a column each for the map, legend, scale bar, north arrow, etc. If we were to run a Print Template using the Template Report activity, we would have to somehow construct a data table that contained all of this information from the site. There isn’t currently an easy way to get this information, and I’m not sure if there is a hard way either.
For more information on the data tables and how they work in the reports, please see the article “How Data is Bound to a Report” in the Help in Report Designer, under Data and Migration."
Brad
0
Please sign in to leave a comment.
Comments
3 comments