TemplateReport Dataset question
I've created a rpx file that will work off of a layer in my mapservice and now I'd like to utilize the TemplateReport tool in my workflow. I've got the Template URI and the Output format established but I'm not sure what to put for the Dataset. I have a Featureset returned from my QueryTask and can convert that to a DataTable but not sure how to add it to a Dataset using the workflow. Thoughts?
Man thanks.
-
Hi Josh,
Once you have a data table, you will also need to create a new variable of type DataSet, and initialize it: dataset1 = new System.Data.DataSet()
Then you can use an InvokeMethod activity to add the data table to the new data set you just created. Leave the TargetType null, set the TargetObject to dataset1.Tables, set the MethodName to Add, and expand the Parameters property in the properties on the right hand panel, and add a new parameter with Direction: In, Type: DataTable, and Value: your data table variable.
You can then pass this data set to the TemplateReport activity.
-Victoria
0 -
Hi Victoria and Josh, do either of you know how to pass a North Arrow and Legend thru Template Report? I've got the map image and data figured out, just need these last two pieces. Thanks 0
Please sign in to leave a comment.
Comments
2 comments