Search task that returns intersecting features?

3962
14
Jump to solution
04-22-2016 12:09 PM
helenchu
Occasional Contributor II

What I'm trying to do is to have all intersecting points returned with the attribute grid view from a selected polygon.  Users click to select the polygon.  Is there a widget like that out there ?  Thanks.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Helen,

  The eSearch widget allow you to draw a point on the map that will select a polygon and then use the "By Spatial" tab to select features that intersect the selected polygon. If you configure the search layer to be added as an operational layer and open in Attribute Table widget then the results will display in grid format in the Attribute Table widget.

Enhanced Search Widget Version 2.0.1 - 4/20/16

View solution in original post

14 Replies
RobertScheitlin__GISP
MVP Emeritus

Helen,

  The eSearch widget allow you to draw a point on the map that will select a polygon and then use the "By Spatial" tab to select features that intersect the selected polygon. If you configure the search layer to be added as an operational layer and open in Attribute Table widget then the results will display in grid format in the Attribute Table widget.

Enhanced Search Widget Version 2.0.1 - 4/20/16

helenchu
Occasional Contributor II

Thank you so much Robert.  I'll work on it.

0 Kudos
helenchu
Occasional Contributor II

Hi Robert,

I followed the instructions http://www.tapasdas.com/WABv2.pdf to implement your widgets however I got the below error when I ran startup.bat.  Anything that I missed ?  Thankyou very much for your help.

err.PNG

In config.json I have:

  "geometryService": "http://srvarcdev.harriscad.org/arcgis/rest/services/Utilities/Geometry/GeometryServer",

The page opens fine.

In my WAB folder:

WAB_widgets.PNG

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Helen,

  I have not seen that error before. I am not sure what to suggest besides install a fresh copy of WAB on your machine in a different folder try installing the eSearch widget again. You must have made a syntax error in some file.

0 Kudos
helenchu
Occasional Contributor II

Thanks.  It's weird cuz I haven't touch any of those files at all.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

So did you have WAB running before then?

0 Kudos
helenchu
Occasional Contributor II

When I registered my app, everything went fine, no error, got my app ID.  However, when typed http://localhost:3344/ it returns error: "Unable to access http://srvarcdev.harriscad.org/arcgis A server with the specified hostname could not be found"

If I copy paste http://srvarcdev.harriscad.org/arcgis to browser it will auto redirect to http://srvarcdev.harriscad.org/arcgis/rest/services and this page shows up fine. 

On this server I have portal set up http://srvarcdev.harriscad.org/portal/home/

and in the step to register my app, I have the URL http://localhost:3344/webappbuilder

Do you think the issue here is my url path ?  Thanks.

webappbuilder.PNG

Thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Helen,

Is srvarcdev.harriscad.org a public facing url? When I try and go to it, I get an error.

I would change the GeometryService url back to the default of

"geometryService": "http://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",

0 Kudos
helenchu
Occasional Contributor II

No it's internal not a public site.  When I typed or copy the url it does the redirect thing.  The page still shows up fine though.

http://srvarcdev.harriscad.org/arcgis/rest/services?redirect=http://srvarcdev.harriscad.org/arcgis/r...

I changed the url back to default as you advised.  Same error!

When I run startup.bat as administrator, I got " "server" directory does not exist" 

Thank you

0 Kudos