Hi
we have a FeatureTable widget showing some features from a previous rectangle selection.
The FeatureTable is related to the main layer.
So far so good.
We also have a filter dialog where one can define a definitionExpression which is applied to the same main layer. This leads to some features from the main layer will disappear from the map. So this also works as expected.
The thing is, that it seems, that due to the link between the FeatureTable widget and the layer given to that widget, the definitionExpression of the layer also applies to the FeatureTable.
Means: All features, filtered out are also not displayed any more in the FeatureTable.
I can imagine, that this is intendet behavior.
But: I dont want this.
I would like to keep all features from the point in time where I did the original selection.
When after that the definitionExpression changes, I do not want the FeatureTable to be changed.
But I want to keep functionality of the FeatureTable like check-selecting features in it and process several actions we appended to it (like highlight the Feature with a red circle around it).
In case a feature is not shown on the map due to the filter but is shown in the FeatureTable, I want to place this red circle on the map even the actual feature is not shown.
TL;DR:
Does anyone know any way to avoid the FeatureTable being filtered by the given layers definitionExpression?