[mapguide-users] query code help...
lolob
azzam_wahab at hotmail.com
Wed Jan 23 22:12:05 EST 2008
Thanks..
I followed your suggestion and made some changes to the code...but no
luck...is there something wrong here..
$opts = array();
$queryOptions = new MgFeatureQueryOptions();
if ($this->args['USEPROPERTYFILTER'] == 'true')
{
$propertyFilter1 = $this->args['PROPERTYNAME'];
if ($this->args['ISSTRING'] == 'true')
$propertyFilter1 .=
sprintf($this->strExpressions[$this->args['OPERATOR1']],
$this->args['VALUE1']);
else
$propertyFilter1 .=
sprintf($this->numExpressions[$this->args['OPERATOR1']],
$this->args['VALUE1']);
$propertyFilter2 = $this->args['PROPERTYNAME'];
if ($this->args['ISSTRING'] == 'true')
$propertyFilter2 .=
sprintf($this->strExpressions[$this->args['OPERATOR2']],
$this->args['VALUE2']);
else
$propertyFilter2 .=
sprintf($this->numExpressions[$this->args['OPERATOR2']],
$this->args['VALUE2']);
$propertyFilter3 = $this->args['PROPERTYNAME3'];
if ($this->args['ISSTRING'] == 'true')
$propertyFilter3 .=
sprintf($this->strExpressions[$this->args['OPERATOR3']],
$this->args['VALUE3']);
else
$propertyFilter3 .=
sprintf($this->numExpressions[$this->args['OPERATOR3']],
$this->args['VALUE3']);
array_push($opts, $propertyFilter2, $propertyFilter2, $propertyFilter3);
$queryOptions->SetFilter('('.implode(') AND (', $opts).')');
}
http://www.nabble.com/file/p15057891/query_main.jpg
--
View this message in context: http://www.nabble.com/query-code-help...-tp15035839s16610p15057891.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list