Open
Description
When I open the documentation/forms_one-to-many-relations
project, I do not see any value in the relation reference
field (child feature's link to parent).
See Manhole ID
on the image below.
Closer look revealed that the field config does not contain some of the important information:
- config from a working project
QMap(("AllowAddFeatures", QVariant(bool, false))("AllowNULL", QVariant(bool, true))("MapIdentification", QVariant(bool, false))("OrderByValue", QVariant(bool, false))("ReadOnly", QVariant(bool, false))("ReferencedLayerDataSource", QVariant(QString, "/home/shockwave/Lutra/projects/test_input/23.8./tc05_relations/db.gpkg|layername=district"))("ReferencedLayerId", QVariant(QString, "db_district_03d52629_f825_45d6_9ee5_8da8552b9987"))("ReferencedLayerName", QVariant(QString, "districts"))("ReferencedLayerProviderKey", QVariant(QString, "ogr"))("Relation", QVariant(QString, "district_n_district_fk_db_distric_fid"))("ShowForm", QVariant(bool, false))("ShowOpenFormButton", QVariant(bool, true)))
- config from this project:
QMap(("IsMultiline", QVariant(bool, false))("Relation", QVariant(QString, "inspection_manhole-id_manhole_lo_unique-id"))("UseHtml", QVariant(bool, false)))
Let's see what is going on here.