MerginMaps / mobile

Mobile app for Mergin Maps 📲. Open QGIS projects and manage vector data on your phone, even offline 📶 (Android/iOS/Windows app)
https://merginmaps.com
GNU General Public License v2.0
280 stars 62 forks source link

Relation Reference filtering on Attribute Form does not work in Mergin Input #3011

Open leorudczenko opened 5 months ago

leorudczenko commented 5 months ago

Summary

We are working with a relational database structure within a GeoPackage and we are trying to create an Attribute Form for a geometry layer. One of the fields is a Relation Reference to another table which is a dictionary of values. In our real example, the list of values in this dictionary will be over 2000, which means it is not ideal if a user needs to scroll through them all. Therefore, we are trying to apply a filter to this drop down, based on a second attribute of the dictionary table. This filter works fine in QGIS, but does not appear in Mergin Input.

To Reproduce

We found that this can be replicated in a minimal way using the following steps:

Expected Result

The attribute form within Mergin Input should feature an additional drop down menu to reduce the selection options using the filter applied in QGIS, similar to what is seen in QGIS here where there are 2 drop down menus:

image

Instead, there is only 1 basic drop down menu in the attribute form within Mergin Input which shows all of the values:

image image

Example Project

You can see this issue in this public Mergin project.

Software Versions

volcan01010 commented 3 months ago

As an alternative to the drop-down filtering, a responsive text-box that filtered records (as it does in QGIS), would also be very helpful.