Closed tudorbarascu closed 10 months ago
This would also count as a bug but I put it as a feature. Here's also a gif how it works QGIS side:
Thank you
@tudorbarascu thanks. We need to enable g3w-admin to send widget configuration to client.
@tudorbarascu we need to implement it. We deveop this widget feature on next release v3.7. Thanks
I've added a project with date prepared for g3w (with projects, project_data folder) that outlines the issue.
Having a pipe layer and a dictionary layer pipe_material that holds all the possible combinations between Material, Diameter and Nominal Pressure, the user is guided towards the selection of an ID that corresponds to a single valid combination between all these three characteristics (all coming from the dictionary layer pipe_material.
This is done using relations and chain filters (the order of filtering is material and then diameter). The QGIS Widget is configured like this:
In editing mode, the user first selects a material (PE) from the combobox and than selects from the Diometer combobox a Diameter that corresponds to that specific Material, and afterwards selects from the third combobox the final value with the combination of MAterial/Diameter/Nominal pressure.
In g3w this widget is not propagated and the user needs to enter the id by hand (he cannot see the Material, the Diameter or the Nominal pressure when editing) so the widget it's basically unusable when editing.
water_project.zip