1) You didn’t say which version (hopefully latest, greatest) but you should only need the entry in the validation block. Note an “anything” validation is not recommended. 2) A qstring with no qitem is interpreted as a MapServer logical expression I believe, and your example is not a valid expression. What exactly is returned, I mean, what does empty mean? There might indicate a bug and a expression parsing error is being suppressed some where. 3) A qitem+qstring is meant to cover a very simple use case. You’d need to use a plain qstring or even better, WFS to do something more complex.
On Sat, Dec 11, 2021 at 8:54 AM Carlos Neves (LREC) <[email protected]> wrote: > Hi list, > > I need to query and highlite a map in a Mapserver layer using ITEMNQUERY > > 1st - I have validate qstring for any character > > METADATA > "wms_title" "counties" > "qstring_validation_pattern" ".*" > END > VALIDATION > "qstring" ".*" > END > > 2nd - I'm not sure, but it seems in Mapserver Manual that QITEM is an > option and you can use expressions like "qstring=county_name = New > York". I have no mapserver return error but the query allways returns > empty. > > > 3rd - With CGI qlayer=counties&qitem=county_name&qstring=New it works, > but i need to use others items and others search conditions like > substrings like "New Jersey" or "New York" > > > Any help would be appreciated > > Carlos > > > _______________________________________________ > MapServer-users mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/mapserver-users >
_______________________________________________ MapServer-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
