I think you are going to have to write code to loop through a list of layers 
selected by the user and query each to get results building a query against 
each independently. This would be a combination of the Select Within code UI 
and the Address Search to provide the input and select the layers.

Dave

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jamo181
Sent: Monday, November 03, 2008 6:58 PM
To: [email protected]
Subject: [mapguide-users] Search accross multiple layers


Hi I'm trying to use the searchprompt.aspx and search.aspx to create a new
search that will be able to allow the user to search across more than 1
field and more than 1 layer...

I have been able to search more than 1 field so far, however I'm unsure on
how to search more than 1 layer.
These layers will have common properties, ( all cadastre, all have lot on
plan etc)

I'm stuck at this point.

            String featureClassName = layer.GetFeatureClassName();
            MgResourceIdentifier srcId = new
MgResourceIdentifier(layer.GetFeatureSourceId());
            MgFeatureReader features = featureSrvc.SelectFeatures(srcId,
featureClassName, opts);

My first attempt would be to try and add more features to the feature reader
...? is this possible?

Or can someone point me in the right direction to learn how to create a
filter across multiple layers...?

Cheers

Adam
--
View this message in context: 
http://www.nabble.com/Search-accross-multiple-layers-tp20314877p20314877.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to