Select to view content in your preferred language

Modify Analysis Widget WAB

414
0
01-23-2020 11:57 PM
AlbertoLópez
Occasional Contributor

Hello;

 

I need to modify some of the operations (Aggregate Points, etc) of the WAB Analysis widget with the ArcGIS JS API (3.X).

What I need is to filter the features  of the layers involved in the analysis operations, and pass to the geoprocessing service only the filtered features.

The widget uses geoprocessing service, for example:

-https://analysis6.arcgis.com/arcgis/rest/services/tasks/GPServer/AggregatePoints

-https://analysis6.arcgis.com/arcgis/rest/services/tasks/GPServer/XXXX

-Etc

 

But I don't see in the code (Widget.js) where the geoprocessing service is called, and how the parameters are passed to it.  

I see when geoprocessing service is called in the Network tab of the developer tools:

The last line of code that runs before the geoprocessing service is called  is this (I believe):

But I do not see how I can modify the code to pass my own parameters. For example, like this:

 

https://developers.arcgis.com/javascript/3/jssamples/gp_resultmapservice.html (Class: Geoprocessor)

Any suggestions?

Thanks, greetings.

0 Kudos
0 Replies