[Lizmap] Edition: related tables not shown in form

Paolo Cavallini cavallini at faunalia.it
Fri Oct 9 09:48:53 PDT 2020


Hi all,
I configured a sample project with a father table and three children:
https://lizmap.faunalia.eu/index.php/view/map/?repository=faunalia&project=test_relations
The children are shown correctly in the popup, but disappear from the
edition tool.
When generating the popup, I get an error[0]. The relation is done via
an alphanumeric field, with complex content like O-F064-I1630, instead
of the usual ID. Could this be an explanation?
Cheers.

[0]
2020-10-09T18:42:14     WARNING    Traceback (most recent call last):
              File
"/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/lizmap/plugin.py",
line 1575, in maptip_from_form
              html_content =
Tooltip.create_popup_node_item_from_form(layer, root, 0, [], '',
relation_manager)
              File
"/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/lizmap/tooltip.py",
line 144, in create_popup_node_item_from_form
              h = Tooltip.create_popup_node_item_from_form(layer, n,
level, headers, html, relation_manager)
              File
"/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/lizmap/tooltip.py",
line 144, in create_popup_node_item_from_form
              h = Tooltip.create_popup_node_item_from_form(layer, n,
level, headers, html, relation_manager)
              File
"/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/lizmap/tooltip.py",
line 103, in create_popup_node_item_from_form
              field_view = Tooltip._generate_date(widget_config, name)
              File
"/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/lizmap/tooltip.py",
line 301, in _generate_date
              dfor = widget_config['display_format']
             KeyError: 'display_format'

-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more


More information about the Lizmap mailing list