Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters in Relation Reference #288

Closed
xyago opened this issue May 16, 2018 · 13 comments · Fixed by #5969
Closed

Filters in Relation Reference #288

xyago opened this issue May 16, 2018 · 13 comments · Fixed by #5969

Comments

@xyago
Copy link

xyago commented May 16, 2018

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!

@saemiw
Copy link

saemiw commented May 16, 2018

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.

@xyago
Copy link
Author

xyago commented May 17, 2018

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.

@saemiw
Copy link

saemiw commented May 17, 2018

Ah sorry, I misunderstood. I think you were talking about filters on the whole layer, not specific for this widget.

@m-kuhn
Copy link
Member

m-kuhn commented May 17, 2018

This is not yet implemented. The documentation is unfortunately not that detailed that it would mention every option.

@xyago
Copy link
Author

xyago commented May 17, 2018

Ok, thank you so much!!

Do you know any way to do that with Qfield?

@m-kuhn
Copy link
Member

m-kuhn commented May 17, 2018

Nothing that comes to my mind which would not involve a new feature in QField, I am sorry.

@signedav signedav changed the title Filters in Relation Reference not work Filters in Relation Reference Nov 18, 2019
@signedav signedav removed the checked label Nov 19, 2019
@suricactus
Copy link
Collaborator

Comming with the next release :)

@stafoo
Copy link

stafoo commented Feb 1, 2024

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?
immagine
immagine

Thanks!

@Pavo123
Copy link

Pavo123 commented Sep 6, 2024

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

@m-kuhn m-kuhn reopened this Sep 6, 2024
@FelixHinckel
Copy link

I have the same kind of problem. My project has a relation between an observation layer and a list of species.

The list :

Image
On this list, 3 protected species, and one unprotected.

The observation layer :

Image
The observation is only described by the name of the species.

Both layers are linked by a project relation :

Image

In the observation layer's form, the name of the species is chosen via a relation reference.

Image
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 :

Image

But in QField, when I want to add an observation, the filter is not active :

Image

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)

@nirvn
Copy link
Member

nirvn commented Jan 31, 2025

@FelixHinckel , can you provide a sample project?

@nirvn
Copy link
Member

nirvn commented Jan 31, 2025

@FelixHinckel , @xyago , this has been fixed. You can test APKs here (#5969) to confirm it works for you.

@FelixHinckel
Copy link

I just tried it, it works very well! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants