[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-users
Subject:    Re: [mapguide-users] Search multiple features
From:       GordonL <gordon.luckett () arrowgeomatics ! com>
Date:       2009-12-29 15:14:21
Message-ID: 1262099661573-4227979.post () n2 ! nabble ! com
[Download RAW message or body]


Why not use "IN"?

$opts->SetFilter("(NO_LOT in ('0124','0023'))");



ehsan wrote:
> 
> Hi, i would like to ask..i want to make searching for multiple features
> and select it on the map...
> to be clear this is what i want to do..
> before this i search on the map by using this code 
> 
>                 $opts = new MgFeatureQueryOptions();
>         	$opts->SetFilter("(NO_LOT='0124')");//set the query filter
>         	$featureClassName = $layer->GetFeatureClassName();
>         	$srcId = new MgResourceIdentifier($layer->GetFeatureSourceId());
>         	$features = $featureSrvc->SelectFeatures($srcId,
> $featureClassName, $opts);
> 		$hasResult = $features->ReadNext();
> 
> in this code i just search for one value for NO_LOT, what i would like to
> do is, i want to search NO_LOT by using multiple value for example to
> search for NO_LOT "0234" & "0023".
> is there a way that i could do to make it...? 
> 
> Thanks...
> 

-- 
View this message in context: http://n2.nabble.com/Search-multiple-features-tp4226584p4227979.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic