qgis / qwc2-demo-app

QWC2 demo application
Other
242 stars 155 forks source link

MapViewer Search - $TEXT$ replaced only once in GetFeatureInfo request #562

Closed naub1n closed 5 months ago

naub1n commented 5 months ago

hi,

I try to use filters in search box with logical operator:

{
    "params": {
        "expression": {
            "my_layer": "\"code\" ILIKE '%$TEXT$%' OR \"name\" ILIKE '%$TEXT$%'"
        },
        "resultTitle": "{code}:{nom}",
        "title": "AllInOne Search"
    },
    "provider": "qgis"
}

but when I write "Blaise" in searchbox, only the first $TEXT$ variable is replaced in GetFeatureInfo request:

https://geo-dev.lesagencesdeleau.eu/dsiun/api/v1/featureinfo/scan/Cyclope/recherche?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&CRS=EPSG:3857&WIDTH=100&HEIGHT=100&LAYERS=my_layer&FILTER=my_layer:"code"+ILIKE+'%Blaise%'+OR+"name"+ILIKE+'%$TEXT$%'&WITH_MAPTIP=false&WITH_GEOMETRY=true&feature_count=100&info_format=text/xml&QUERY_LAYERS=my_layer

Docker images used :

manisandro commented 5 months ago

Thanks, fixed in [1] and [2]

naub1n commented 5 months ago

Wow Thx !!! I try it on the next docker image release!