Open qgib opened 7 years ago
Author Name: Harrissou Santanna (@DelazJ)
Dominique Lyszczarz wrote:
Actually layer's filter at provider level is very limited compared to the expression engine and a filtered layer become non-editable which create confusion.
I'd just like to add that the edit limitation is related to the data format you are working with (shapefiles?). Database like formats do not suffer from that. This has to do with, if I recall well what had been answered in the past, some difficulty/impossibility to guarantee features "primary key"... or something like that...
Author Name: Dominique Lyszczarz (@domlysz)
Editing filtered layer does not works either with Geopackage, or maybe I'm missing something.
Author Name: Giovanni Manghi (@gioman)
I'd just like to add that the edit limitation is related to the data format you are working with (shapefiles?). Database like formats do not suffer from that. This has to do with, if I recall well what had been answered in the past, some difficulty/impossibility to guarantee features "primary key"... or something like that...
I also had this perception, but does not seems right see #27356-3 and https://github.com/qgis/QGIS/issues/26317#issuecomment-495886155 does not seems a trivial thing to implement/change (edited).
Author Name: Dominique Lyszczarz (@domlysz) Original Redmine Issue: 17033
Redmine category:expressions
Actually layer's filter at provider level is very limited compared to the expression engine and a filtered layer become non-editable which create confusion. A frequently used work-around is to setup a rule-based style to just filter visible features using the common expression engine.
It will be more natural to just replace the provider filter by expression engine if there is no blocking reasons (performance ?).