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