Use list views

Dec 12, 2008 at 5:38 PM

I've not tried this web part out yet, but it sounds great. What I think would be useful if it could use the List's different views to filter the map points. So you could setup different views with different filters and it shows different maps as a result. Even better would be if the web part could have a drop drown of the view so that the user could change the view directly from the same page.

Don't know how easy any of that would be to implement?

Thanks,

Neil

Coordinator
Dec 15, 2008 at 1:27 PM
Hmmmm,

At the moment the web part gets all the list items 

Dim list As SPList = web.Lists(the_list)
Dim listItems As SPListItemCollection
Dim listItem As SPListItem
Dim q As New SPQuery
Dim strQ As String
strQ = "<OrderBy><FieldRef Name=""" & fieldTitle & """ /></OrderBy>"
q.Query = strQ
listItems = list.GetItems(q)

There's no reason why that can't be changed to the CAML query based on a selected view.  I'll have a look into how easy it is to add the listviewselector and then get the selected view.  I can't imagine it'll be very difficult but it's a great idea to add it - thanks for the feedback!

Mike

P.S. Thanks - now I have the Mr Plow song going through my head.
Dec 15, 2008 at 3:04 PM

Mike,

Thanks for looking into this. I think it would be very useful.

Neil

P.S. sorry about filling your head with annoying songs!