How to print multi-page reports
Hi Everyone,
I have a workflow that creates custom JSON to pass to a named data source in Reporting. The schema of my JSON is as follows:
{
"enteredDate":Null,
"enteredTime":Null,
"enteredReason":Null,
"features":[
<The standard Esri schema for a FeatureSet
pulled from the results of a query activity>
]
}

This JSON is passed as an argument into my report and what I'm hoping for is one full report page for each feature, but that is not what's happening. I am hoping someone can point me in the right direction. I think I understand a little about what's happening, but I'm unsure of the way around it.
** please ignore the actual values, they are test attributes as I don't yet have access to the requisite ones
The first photo above shows what I'm looking at in the properties pane for the whole report. If I do not have Data Member set to features, I get a single report page with a single set of details (2nd image), for only one of the features from the JSON that's passed in. If I do set the Data Member to features, I end up with two pages (3rd and 4th images).
I do understand kind of what's happening, as the date, time, and reason fields are only in the JSON once, but the attributes are in an array of features, so any dynamic data source based text in the report will be repeated.
However my intention is to have the report run and generate the 2nd image (bottom left), once for each feature in the JSON data source, but for it to keep re-using the date, time, and reason fields. Then the report will return the link to the downloadable report.
I would assume there is some way this is possible in VSR, since there was in Geocortex Reporting; however, you were passing in a .NET DataSet, where you could add extra fields for the data you wanted repeated (i.e. date, time, reason).
Is this possible? Thanks in advance!


-
I believe I've solved my own issue, which is wonderful. I found a Tech Tips video on creating sections and groups in your report.
Creating group headers and footers and putting my information in there helped to repeat static elements across pages (date, time, reason), and ensure that each record in my custom JSON was given its own page.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar