Select to view content in your preferred language

Widget for Selecting streets within a neighborhood, with output table?  v2.5

1069
6
06-14-2012 12:09 PM
NancyGnanicys
Deactivated User
I have flexviewer v2.5. I would like to be able to click and select a polygon (neighborhoods layer) on my map and then have all street names that intersect the selected neighborhood to appear in a list/table.  Or ideally, type in the neighborhood name that would in turn zoom to the area and then give me a list of street names within the neighborhood. If my neighborhood layer is able to select the Arcgis Basemap street names that would be even better but for for now will stick to selecting from our own street centerline file.  Is this a very specific widget/tool that would need to be created on desktop first?  Just stuck as to where to begin since after experiementing with the query widget did not seem to take me quite where I needed to be. Any suggestions appreciated!

Newbie to APIs/Arcgis Server 10.0
Tags (2)
0 Kudos
6 Replies
NancyGnanicys
Deactivated User
I have figured out my starting point, I believe I need to create a geoprocessing tool using model builder, then publish it on Arcgis Server.  I found this site to be helpful (see page 68 specifically for what I was trying to do). After this I will need to experiement with the Flexviewer builder and see how this will all integrate into my rather simple application.

http://www.scribd.com/doc/85030350/10/GP-service-example-Selecting-data#outer_page_57
0 Kudos
NancyGnanicys
Deactivated User
[ATTACH=CONFIG]15381[/ATTACH]
So far I have a model builder in a toolbox with a script I found that allows for a selection of the neighborhood of question in a drop down box.  All was working well on the desktop side and functioning perfectly (select neighborhood from drop down in toolbox>runs the process>I get the streets that intersect the neighborhood selected).  But then I decided to publish it to be consumed in Flexviewer. I followed the publishing geoprocessing tools help in Arcgis Resources but am getting stuck with the %scratchworkspace% part.  Found here:http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_models_for_geoprocessing_serv...

I initially just published the tool without reading the "publishing your geoprocessing tool" section and noticed how it created the scratch folders automatically in my arcgisjobs folder however when I tried to geoprocess the streets did not select, and I got an error.  So now I am stuck here really confused about where I am supposed to set the scratchworkspaces at.  I have changed the Output Feature Class Location multiple times to the E:\arcgisserver\arcgisjobs folder.  I have also checked the scratchworkspace in my arcmap under geoprocessing and it set to the correct area as well.  The model runs on my desktop but am afraid that with my lingering %scratchworkspace% issue it will not publish correctly to be used in Flexviewer v2.5.  I'm using arcgisv 10.0, SqlServer 2005, and am trying to publish it via geoprocessing with a source map, but that can be changed to which ever will help me be able to do this.  The end result with display a list of streets that intersect the neighborhood chosen, but so far I'm far from.  Any pointers, ideas or suggestions would be greatly appreciated.
0 Kudos
NancyGnanicys
Deactivated User
My model works fine in arcmap.  I posted the model above.  I implemented the suggestion I found on a posting here
http://forums.esri.com/Thread.asp?c=158&f=2276&t=250985
about copying the feature but still no luck after I post it and try to consume it in my viewer.  The viewer shows the drop down menu to select the neighborhood, but when I execute, I get nothing, not even the highlighted streets as I do in Desktop.  Is there another step I'm missing to be able to view the selection at all in my web app?  Please help!!!
0 Kudos
JohnGarvey
Deactivated User
Just a quick thought, is your model set to return a feature set or record set instead of feature class...
0 Kudos
NancyGnanicys
Deactivated User
Just a quick thought, is your model set to return a feature set or record set instead of feature class...


All the green colored outputs are set to return as a feature class. The model runs in desktop just fine except that after the process executes, I have to pan around and just slightly move the map to get the selected streets to display each time, I"m not sure if that is normal or not either.
0 Kudos
JohnGarvey
Deactivated User
I use flex and the arcgis viewer. The model outputs have to be either a feature set or records set.
0 Kudos