teksi / wastewater

[DEV] Future TEKSI wastewater module, adapted data model to fit VSA-DSS 2020 new standard
https://teksi.github.io/wastewater
GNU General Public License v3.0
2 stars 5 forks source link

selection of default value (value_obj_id) by fk_provider and fk_dataowner in qgis version 3.24.11 not visible #480

Open tomep opened 1 month ago

tomep commented 1 month ago

Describe the bug After selecting, for example, the fk_provider, a selection appears in the "value_obj_id" field, but it is not visible.

To Reproduce Exact steps to reproduce the behavior:

  1. Go to Table "default values" and open the attributtable
  2. put into editing mode
  3. create a new entry
  4. select in the first field e.g. fk_owner
  5. nun möchte ich im zweiten attribut die organisation auswählen. diese ist jedoch nicht sichtbar.

Expected behavior I can select the organization

Screenshots / data image

Desktop (please complete the following information):

Additional context In TWW 2024.0.1 and QGIS 3.24.9 it works

cymed commented 1 month ago

Have you loaded the organisations? Also I strongly encourage using the latest LTR if possible (3.34)

tomep commented 1 month ago

Yes. Organisations are importet. QGIS Version is 3.34.11

ponceta commented 1 month ago

Something seems not working 100% on QGIS side with the attribute table and non-spatial entity creation.

Can you show us what you see when changing to form view :

image
tomep commented 1 month ago

OK, here i see a warning:

image

ponceta commented 1 month ago

Yes, the warning is here to tell you that the value_obj_id has to be filled. But can you select the desired organisation through that window? (You will be able to select an organisation only if you imported / created these before)

image

If this works, then it is mainly a documentation / UX/UI issue -> we already defined that we wanted to be able to have a specific GUI for this setting but the tool is missing right now.

ponceta commented 1 month ago

@cymed we could maybe reword value_obj_id with something more explicit like fk_organisation ?

cymed commented 1 month ago

The functionality allows all kind of obj_id entries, not only organisations. Thus the name

tomep commented 1 month ago

ok, sorry it works. i can choose empty fields ;-). image but i have 7 empty rows to choes. in the organisation table i have also 7 organisations image if I select one of them, I can save image

ponceta commented 1 month ago

Theses are not empty rows, it seems like your project has translated a value that should not have been translated.

If you can show us what widget configuration for value_obj_id in your default_values layer properties ?

Here is a valid configuration but translation to _de could have altered it.

image

ponceta commented 2 days ago

This is mainly a translation issue because we don't have it on the base project.

image