Filters in Relation Reference
I activate filters in Relation Reference widget don´t show in QGIS.
I don´t know if this is an issue or is not implemented yet.
Is there any other option that can do something similar?
Thank you!
When you say QGIS, you mean QGIS not QField yes?
Anyway especially when using the qfieldsync-Plugin filters should not be used. It screws up the synchronising. But you can use rule-based rendering and "hide" (i.e. don't render) the features you don't want to see.
I mean about the filters in the Relation Reference widget in QGIS, which let you filter values in a same table using the columns values. It is a Relation Reference option in QGIS 2.18 and works in Qgis but not in Qfield. The documentation of the Qfield say that Relation Reference is implemented. You are referring to filters layer? Thanks.
Ah sorry, I misunderstood. I think you were talking about filters on the whole layer, not specific for this widget.
This is not yet implemented. The documentation is unfortunately not that detailed that it would mention every option.
Ok, thank you so much!!
Do you know any way to do that with Qfield?
Nothing that comes to my mind which would not involve a new feature in QField, I am sorry.
Comming with the next release :)
Hello
in my QField project I'm not able to use the filter function in relation reference widget.
The same project works in QGIS as expected.
Am I doing something wrong?
Thanks!
Did this issue get solved? I too am using the relation reference widget and using 2 filters in it but in QField I can only choose the relation value and not the filters, they do not appear at all.
I am using the 3.3.11 Darien version of QField
I have the same kind of problem. My project has a relation between an observation layer and a list of species.
The list :
On this list, 3 protected species, and one unprotected.
The observation layer :
The observation is only described by the name of the species.
Both layers are linked by a project relation :
In the observation layer's form, the name of the species is chosen via a relation reference.
There is a filter on the relation : only protected species can be selected.
In Qgis, when I want to add an observation, I can choose from these three species :
But in QField, when I want to add an observation, the filter is not active :
Is there a way to activate the filter? (It works for Value Relation, but I need to use a relation reference.)
QGis 3.34.6-Prizren QField 3.4.2 Ebo (Windows ans Android versions)
@FelixHinckel , can you provide a sample project?
@FelixHinckel , @xyago , this has been fixed. You can test APKs here (https://github.com/opengisch/QField/pull/5969) to confirm it works for you.
I just tried it, it works very well! Thanks a lot!