[mapguide-users] Re: sum of a field on selected items

2011-03-28 Thread Jackie Ng
There is a "Listing Selected Parcels" example in the MapGuide Developer's Guide. What I've just outline is a variant of that example, except instead of printing out properties of each selected feature, we are totaling a certain numerical property of each selected feature. - Jackie -- View this m

Re: [mapguide-users] Re: sum of a field on selected items

2011-03-28 Thread farouk azzouhri
Hi , thank you jackie for your idea , although I see that it is dificult for me as a beginner :s but , I'll try it !! ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Re: sum of a field on selected items

2011-03-28 Thread Jackie Ng
A high-level overview: In a PHP script, create a MgSelection from your MgMap. Call GetLayers on the MgSelection For each MgLayer in this result, if the layer's name matches the one you're interested in (Agencies), call GetSelectedFeatures on MgSelection using this layer Loop through the MgFeatu