NewGraphEnvironment / dff-2022

Building digital field forms and processing data collected using R, postgresql, QGIS and other tools
Creative Commons Zero v1.0 Universal
0 stars 3 forks source link

`value map` vs `value relation` for building `form_fiss_site` #95

Closed NewGraphEnvironment closed 1 year ago

NewGraphEnvironment commented 1 year ago

cant remember if using value map over value_relation to build .qlr was a conscious choice because we needed to add null as an option in some of the dropdowns or if I just didn't get around to building as a value_relation. May be an issue somewhere regarding it but can't find it right now.

Should try simple tests before rebuild of the form_fiss_site_values.gpkg from the newest template

NewGraphEnvironment commented 1 year ago

Looking at the latest form_fiss_site.qml in Sublime Text editor there is only one spot (see "1 match" in screenshot) that uses value_relation ( feature_type_3 ) .

Pretty sure there were issues with not being able to assign a null (once a field was entered on the phone) and that was the reason I went back to value map.

For now we can convert feature_type_3 to use a value map from data/form_fiss_site_values.gpkg so we no longer get the QGIS "Missing layer form dependency" error related to the archived form_fiss_site_values_202209100809.gpkg not being in the project.

image

Going to leave this open as I have not yet merged the latest PR which has changes to this .qml