qgis / qwc2-demo-app

QWC2 demo application
Other
240 stars 149 forks source link

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

Closed naub1n closed 1 week ago

naub1n commented 1 week 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 1 week ago

Thanks, fixed in [1] and [2]

naub1n commented 1 week ago

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