lizmap-web-client: [Bug]: LWC 3.9.0-RC.3 - New Function: Relation "Display table of children" does not show any children

What is the bug? (in English)

Hey, i wanted to try the new recommended setting for related tables and changed the setting of the parent layer in the plugin to Display table of children (recommended) - but then no children are displayed in LWC

Setting it back to Display related children with popups works, children are shown then.

On the child layer i tried every type of Popup (Automatic, Maptip, Drag’n’Drop) which did not make a difference. Am I overlooking something or is this a bug?

Steps to reproduce the issue

  1. In LWC QGIS plug, Set PopUp of parent layer to "Drag’n’Drop Layout and relation setting to Display table of children (recommended)
  2. No children are displayed when clicking on a parent feature in LWC

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.9.0-rc.3 - commit 83bac6103 https://github.com/3liz/lizmap-web-client/commit/83bac6103
  • Lizmap plugin : 4.5.0
  • QGIS Desktop : 3.40.7
  • QGIS Server : 3.40.7
  • Py-QGIS-Server or QJazz : not used
  • QGIS Server plugin atlasprint : 3.4.2
  • QGIS Server plugin lizmap_server : 2.13.0
  • QGIS Server plugin wfsOutputExtension : 1.8.3
List of Lizmap Web Client modules :
* Version Lizmap Web Client 3.8 needed
List of safeguards :
* Mode : normal
* Allow parent folder : no
* Prevent other drive : yes
* Prevent PG service : yes
* Prevent PG Auth DB : yes
* Force PG user&pass : yes
* Prevent ECW : yes

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Ubuntu 24.04

Browsers

Firefox

Browsers version

120

Relevant log output


About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 16 (15 by maintainers)

Most upvoted comments

yes, this did it! Absolutely amazing functionality to be honest! This is great!

I’ll leave this ticket open until it is fixed (or feel free to close, if the fix is already merged)

PR started : https://github.com/3liz/lizmap-plugin/pull/638 Keen to discuss to allow to set primary keys at the layer level :

image

This should replace all PK config sets : attribute layer, atlas and filter by polygon

CC @rldhont and @mdouchin

ok i get what you are pointing to - at the moment only the field set as “Display” is shown - but how can i add other columns? This i do not grasp - but i guess it will be covered in the docs once ready? 😃

The radiobutton alone in the plugin, it only enables the default behaviors.

But digging in some HTML, you can decide to enable or not dragging, sort your child features according to a field, DESC or ASC, adding some extra fields, pan/zoom to child geometries…

Look at the JS documentation : https://docs.3liz.org/lizmap-web-client/js/module-FeaturesTable.html

Or in your parent layer maptip (without any use of the radio button), it possible to trigger “lizmap-features-table” :

<lizmap-features-table
  layertitle="child sub-districts"
  layerid="sousquartiers_24ceec66_e7fe_46a2_b57a_af5c50389649"
  data-show-highlighted-feature-geometry="true"
  data-center-to-highlighted-feature-geometry="true"
  uniquefield="id"
  expressionfilter="quartmno = '[% "quartmno" %]'"
  withgeometry="1"
  sortingfield="libsquart"
  sortingorder="asc"
  draggable="yes"
>
  <lizmap-field data-alias="Virtual code" data-description="Virtual code">"squartmno"</lizmap-field>
  <lizmap-field data-alias="Virtual area" data-description="Virtual area">round($area,2)</lizmap-field>
  <lizmap-field data-alias="Forbidden" data-description="Virtual forbidden">env('TEST')</lizmap-field>
</lizmap-features-table>

@meyerlor Can you publish your children table in the attribute table tool, it should do the trick. We are on a fix to avoid this.

Linked PR in :

I tried quickly, I couldn’t reproduce your issue. Can you check your CFG file ? Is-it containing for the parent layer :

children_lizmap_features_table : true
popupDisplayChildren: 'False'

A true boolean value for lizmap feature table, the “new” way. Maybe you would have a ‘False’ as string for the “legacy” way (the not recommended one).

Can you check with your Web developers tools (F12), with the inspector where your children should have been inserted. You should be able to find a lizmap-features-table ?

Image

Maybe you got an error in the Javascript console when opening the popup ?