Filters to QField

Hey Everyone

I have made a dynamic filter in qqf, to filter some features based on the current date and it works perfectly on QGIS. Yet It showes no features when i synchronise the project to the qfield

Does annyone know’s how i can fix this? Thanks in advance

hello @Stef_Vanslembrouck !

How did you implement the the time filtering on QGIS? QField should support the “Temporal” function if you enable it on a per-layer basis, by going to the Layer Properties window > Temporal tab on the left side panel > enabling the Dynamic Temporal Control checkbox.

You can check this page of the docs for more info.

Hey

Currently i use the ´now´ function to determen the current day, but I also have used ´today´

But i would like to use a permanent filter, so i don´t know if the temporary filter would be fixing the problem. I tried it alread but my layer has now tim-features

hmm, since you mention expression functions such as now() and today(), I understand that you are creating filters on the layer with Layer menu > Filters..., or Ctrl + F, etc.; is that correct?

The functionality I mentioned is a different kind of filter, specifically for time. On QGIS it allows you to use special controls that can be found on the Temporal Controller panel (this panel is off by default, you can enable it by right-clicking on the toolbar). This function has some limitations, particularly more on QField, but let me know if you have tried this option.

Yes, the filter is made with Ctrl + F, see the screenshot. The temporay proterty is not posible to help with this fucntions (I think), since this filter should be switched on and of dependend on for what i need the use the data

In an ideal situation i would be able to adjust the filter in de Qfield app aswell.

Thanks already for the help

I see, maybe you can give it a try and translate the Filter logic to the Temporal function I’ve mentioned. That Docs page explains a simple setup to test it. You can use a field on your attributes in various ways to determine the “time” range on which each feature should appear. And even on QField there is an special control to dynamically enable and disable this kind of filtering already.

Let me know if you need any help trying to test that built-in temporal filtering function. Or if you think this function doesn’t fit your use-case, let me know why and let’s see what we can do about it.