View Single Post

  #6 (permalink)  
Old 08-12-2004
Nostradamus Nostradamus is offline
Junior Member
White Belt
 
Join Date: Aug 2004
Posts: 8
Ok, I read in a list of customers, locate them on the map and put them on the map as a new PushPin DataSet, containing all the necessary informations for my purpose. So far everything just works fine for me. The next step would be that the user can right-click on one of these PushPins and select "Find nearby places" from the context menu on the map. The Find Nearby places search dialog of MapPoint pops up on the left side of the MapPoint control and you can specify the search radius. And here is what it want: When this search is done, a new PushPin DataSet is created which contains all the PushPins in the given radius. I now want to access this SearchResult DataSet to read out the customer information of these pushpins. I don't want to do the search within my Application.
My current solution to this problem is that I show a new form in which you have to enter the customer's name and the search radius. My App then looks for this pushpin and makes a FindNearby() query and I use this FindResult to extract the information from the found PushPins. This has two disadvantages: In my Application it can happen, that two or more pushpins have the same name, so the FindNearby() method sometimes doesn't start the search at the correct PushPin, so the SearchResult is sometimes just wrong for me. The second problem is that my App will be used by quite a number of "dumb-users", and letting them select the pushpin directly and use the context menu search will give more accurate results than giving them the oportunity to miss-type the company name in my form, which can cause trouble with the search.
If you had an idea on how to access the context menu SearchResult it would be great if you could share it with me.

Thx in advance
Reply With Quote