Select to view content in your preferred language

Search 5 features closest to a point, & display results in a caculator type of form

638
2
02-08-2011 07:18 AM
xingwenchen
Deactivated User
Hi,

I'd like to create a widget within Flexviewer platform (Flex 3 or Flex 4) to do the following:
1. query a point feature from a business location layer or cursor location;
2. Search a client locations layer to find the closest 5 clients;
3. display results in the following way (like a table):
   Record #,          Name,            Distance(mi),             Unit Cost($),           Total Cost($)
       1     Client1            15                          
       2    Client2            15.6                       
       3    Client3            19.3  
       4    Client4            21
       5    Client5            22.4

"Unit Cost" would be a user input box to specify a value, and the total cost would be calculated.

I appreciate your input & thoughts. If you can provide code samples, that would be awesome. Thanks.

Xingwen Chen
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Xingwen,

    First things first. Remember to post Flex Viewer questions to the Flex Viewer Forum:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

Where you would want to begin is with the Closest Facility Sample for determining the 5 closest clients.

http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ClosestFacility
0 Kudos
xingwenchen
Deactivated User
Thanks, Robert. That's good starting point. I'll give it a try.
Have a great day!

Xingwen Chen
0 Kudos