As part of my JavaScript App, using Web AppBuilder, I created two geoprocessing widgets. One allows the user to input a user defined area to calculate population density (Zonal Statistics as Table tool). After the tool has ran, the geoprocessing widget returns a table with the following fields:
Rowid | FID | COUNT | AREA | SUM |
---|
Is it possible to configure the results to only display the SUM field? Something like "Total Population: [SUM]" in the results tab.
My other geoprocessing widget allows the user to input a user defined area to calculate the total number of structures within a given area (Spatial Join). The results are drawn on the map - making the user select the output polygon to retrieve the count total. Similar to my first question, is it possible to display the structure count within the geoprocessing results tab opposed to on the map within a polygon?
Thank you.
Did you have any luck figuring this out? I also wanted to do something similar and format a return values number of decimal places..
did you ever figure this out? I did something like it so let me know.
For now, WAB doesn't have this feature.
Junshan-
Any idea when these might be a feature in AGOL? I've been doing a pretty thorough search without luck on where to get started on attempting a GP, and it seems to be a fairly requested item.
Thanks
What are you trying to do with the GP service?
I am trying to calculate geometry on features in a table, much like you would calculate geometry in ArcMap. This operations doesn't have to be a GP but seems to be the only real option in this case. Many users I deal with will never touch ArcMap, so it isn't an option to send them there, nor are they willing to wait for me to do it for them
Everything to date with WAB for measuring lines/polygons has been through the draw tool;
I have used ArcMap and python to create a GP service that calculates offset so I think it would be possible to do what you are wanting to do..
Terry - So I thought I would give the GP a try, but instead of calculating geometry (acres) on a field in a table in WAB, I get a whole new export. My steps were;
So, I'm curious how exactly did you do this offset using a GP? By the way - I'm also looking into using the Geometry engine in the ESRI JS API.
I did a linear offset for routes, what kind of offset are you wanting to perform?