Report generation from Published Service.

1563
4
01-25-2017 12:01 AM
MathanManohar
New Contributor III

Hi All,

I have a layer called StaffDeployment and its data in the attribute table. The layer has been published as service through ArcMap in the ArcGIS Portal. Now I want to create the reports according to the dropdown selection in the browser. I got the REST URL of the published service.

URL:

https://domainname.com/agswa/rest/services/StaffDeploy/FeatureServer/0

JSON Format:

https://domainname.com/agswa/rest/services/ StaffDeploy/FeatureServer/0?f=pjson

Query:

1. How to attain the report in an HTML web Page?

2. Since the GEO information, How well we can use the JSON format to create an report?

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Mathan,

   You use a queryTask to query the map service to get the records you want and then use domContruct to create your report using standard html elements (like hr, Span, img, div, table). It can be done but there is no simple shortcuts, you have a lot of work ahead of you creating and fomatting and laying out the dom elements to make your report.

MathanManohar
New Contributor III

Thanks Robert for your help.

Query:

1. Do I need to install ArcGIS Datarewier in ArcGIS portal for using Query task?

I was referring the below document.

DataReviewer - Dashboard Results with Filter | ArcGIS API for JavaScript 3.19  

//This should point to the Data Reviewer soe
  var drsSoeUrl = "https://datareviewer.arcgisonline.com/arcgis/rest/services/Samples/reviewerDashboard/MapServer/exts/DataReviewerServer";


0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Mathan,

  No, the QueryTask is part of the JS API.

MathanManohar
New Contributor III

Thanks Robert for the clarification.

0 Kudos