[QGIS-Developer] Disable/commenting provider filter?

Alexandre Neto senhor.neto at gmail.com
Tue May 11 13:31:43 PDT 2021


Bad workaround then :-p

A terça, 11/05/2021, 21:10, Matthias Kuhn <matthias at opengis.ch> escreveu:

> Unfortunately, that won't work, filters are not part of the style.
>
> On Tue, May 11, 2021 at 9:24 PM Alexandre Neto <senhor.neto at gmail.com>
> wrote:
>
>> As an workaround, can't you just create a new style and remove the
>> filter? Then go back to the default style?
>>
>> Obviously a checkbox would be much more user friendly.
>>
>> Alexandre Neto
>>
>> A terça, 11/05/2021, 09:52, Andreas Neumann <andreas at qgis.org> escreveu:
>>
>>> Hi Richard,
>>>
>>> Yes - I think this would be very useful. I would prefer the checkbox for
>>> enabling/disabling without losing the filter string.
>>>
>>> Thanks,
>>> Andreas
>>>
>>> On Mon, 10 May 2021 at 16:41, Richard Duivenvoorde <rdmailings at duif.net>
>>> wrote:
>>>
>>>> Hi List,
>>>>
>>>> When I add a filter to a layer, I often want to temporarily disable
>>>> that
>>>> filter (just to see what the full view is).
>>>>
>>>> Working a lot with sql scripts recently, in which you comment out (a
>>>> part) of a sql query by putting '--' in front of it, I tried that also
>>>> in the Query builder, and though it looks like I'm commenting out my
>>>> query (the query is greyed-out), it's not working, I get a parsing
>>>> error.
>>>>
>>>> So usability question:
>>>> - would other people be interested in temporarily disabling the layer
>>>> filter query, or am I the only one :-)
>>>>
>>>> If yes:
>>>>
>>>> - should it be implemented by 'commenting' out part of the query?
>>>> - or should there be some 'temporarily disable' checkbox in the query
>>>> builder)
>>>> - should it be a context menu (either the layer, or the little filter
>>>> overlay icon in the layermanager)
>>>>
>>>> Tech question:
>>>> - any forseeing issues with such thing?
>>>>
>>>> Regards,
>>>>
>>>> Richard Duivenvoorde
>>>> _______________________________________________
>>>> QGIS-Developer mailing list
>>>> QGIS-Developer at lists.osgeo.org
>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>>
>>>
>>>
>>> --
>>>
>>> --
>>> Andreas Neumann
>>> QGIS.ORG board member (treasurer)
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210511/8344a8b2/attachment-0001.html>


More information about the QGIS-Developer mailing list