Select to view content in your preferred language

Multiple Report Request?

2195
5
04-26-2011 01:04 PM
AmyWright_Webber
Regular Contributor
Hello,

Does anyone have an example of using a single origin point to generate multiple reports?  I am successfully using the drive time and the simple rings sample to generate a report.  I can certainly change reports by changing the template name.

However, is there a way to submit a list or array of template names and have them all generated from the same origin point?  For example, I would like the user to be able to select their origin point and then have both the "market_profile" and "Site_Map" report templates generate.

Thanks!

Amy
0 Kudos
5 Replies
SisiYan
Frequent Contributor
One thing I can think of is using the Run Favorites function;
Basically, you can set up a series of favorite report template and then when you pick a location-> run favorites, all the report for that single location will be generated.
0 Kudos
BrendaWolfe
Esri Contributor
Yes, you can run multiple reports for a single location.  Simply click "Add" to add the reports to the bottom of the page, then click "Run Selected Reports" and your order for up to 20 reports will be processed.  You will be notified in the UI and via email when the order is ready.
0 Kudos
AmyWright_Webber
Regular Contributor
Yes, you can run multiple reports for a single location.  Simply click "Add" to add the reports to the bottom of the page, then click "Run Selected Reports" and your order for up to 20 reports will be processed.  You will be notified in the UI and via email when the order is ready.


Thank you for your reply but I am developing custom applications using the BAO API. The above solution applies to the Business Analyst Online application.

Right now I am just saving the point and sending it separate programatic requests for each separate report.  If someone has a more efficient solution, I would certainly welcome it.

Thanks!

Amy
0 Kudos
ChrisDistefano
Esri Contributor
Hi Amy.

Yes, the BAO API supports generating multiple reports with a single request. You simply include them in the ReportOptions parameter (e.g. REST Drive Time Service ReportOptions parameter)

This simple example will produce a Market Profile and Site Map report in PDF format based on the drive time rings (1, 3, and 5 minute rings) generated from a single point origin:

http://baoapi.esri.com/rest/report/DriveTime?DistanceUnits=esriDriveTimeUnitsMinutes&f=PJSON&Radii=1...{"Points":[{"longitude":-117.183838,"latitude":34.042737,"name":"origin1","description":"origin1","storeID":"1"}],"spatialReference":{"wkid":4326}}&TaskOutputType=GetReport&ReportOptions=[{"TemplateName":"market_profile","ReportFormat":"PDF"},{"TemplateName":"site_map","ReportFormat":"PDF"}]&Token=YOUR_TOKEN

Click THIS LINK to execute this sample using demo user credentials.

Thanks for your question Amy.
0 Kudos
AmyWright_Webber
Regular Contributor
This is a much overdue Thank you!  That works great!

Amy
0 Kudos