[OpenLayers-Users] 'IN'-filter
Vivek Chaure
vivekmchaure at gmail.com
Mon May 13 03:34:31 PDT 2013
Hi Stephan,
With OpenLayers.Filter.Comparison.BETWEEN operator ,
if you know the min(rnummer) and max(rnummer) I think you can use it
instead of EQUAL_TO.
regards,
-
Vivek M. Chaure
M.Tech.(CS), IIT Kharagpur.
*
*
On Mon, May 13, 2013 at 3:23 PM, Stephan Deckers <stephandeckers at hotmail.com
> wrote:
> Hi,
>
> Consider the following filter :
>
> var f1 = new OpenLayers.Filter.Logical({
> type: OpenLayers.Filter.Logical.AND,
> filters: [
> new OpenLayers.Filter.Comparison({
> type: OpenLayers.Filter.Comparison.EQUAL_TO,
> property: "rnummer ",
> value: "1000578"
> }),
> new OpenLayers.Filter.Comparison({
> type: OpenLayers.Filter.Comparison.EQUAL_TO,
> property: "rnummer ",
> value: "100546"
> })]
> });
>
> This will return all rows where the property 'rnummer' equals '1000578'
> or '100546'. I don't know in advance how many rnummers I have, so I am
> looking for a way to get openLayers to invoke a SQL-'IN' statement Can
> I do this or are there better ways to achieve what I want ?
>
> thanks, Stephan
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130513/f7a325f6/attachment.html>
More information about the Users
mailing list