Bug/problem in the Relation Reference widget?

المشرف العام

Administrator
طاقم الإدارة
I have not managed to Save separate attribute values using Relation reference in QGIS?, so I continue exploring chain filters and then saving the whole combination into one attribute. But:

Is it possible to chain filters for only a limited number of filters?

I have 8 attributes depending on each other: Available options in the 2nd. drop down list depend on the chose made in the 1st list, the available options in list 3 depends on the chose made in list 2. Available options in th enext list should be narrowed down due to the selcetions made in the previous list(s).It works fine for the 5 first lists, but then in the 6th. list, all values are available, but only one should actually be allowed.

I have created a project relation:

The vegetasjonstyper.csv-file contains all allowed combinations of the 8 attributes and looks like this (just small parts of the whole file):

...2evg;2;e;;;;g;v;;2evj;2;e;;;j;;v;;2evk;2;e;;;;;v;;k2evn;2;e;;;;n;v;;2ex;2;e;;;;;x;;2ex];2;e;;;;;x;;]2ex};2;e;;;;;x;};...2f{;2;f;;;;;;{;2f};2;f;;;;;;};2f*;2;f;*;;;;;;2f*&;2;f;*;&;;;;;2f*#;2;f;*;;#;;;;2f&;2;f;&;;;;;;2f&*;2;f;&;*;;;;; Example 12f&+;2;f;&;+;;;;;2f&;2f#;2;f;;;#;;;; Example 2...In the 2212-2_p layer properties, the attribute Signatur is set to Relation Reference with filters and chain filters like this:

Example 1: When digitizing a new point, I choose from the different drop down lists starting from the left. It works fine for the 5 first lists showing only possible symbols (i.e. combinations taken from the relation to vegetasjonstyper.csv). (Btw, still strange value order.)





But in the 6th. list all symbols (based on the occurences in the csv-file) are listed.

Why is not only the "empty" option available?

Example 2: The problem occur already in list 5 if I choose "empty" in list 4. Then all options are available in list 5 (but only one option (#) should be possible):



Is there a problem in the Relation reference widget or have I missed something?



أكثر...
 
أعلى