g3w-suite / g3w-client-plugin-editing

https://g3w-suite.readthedocs.io/en/latest/g3wsuite_editing.html
0 stars 3 forks source link

Attribute editing: value relation widget (order value) #131

Closed leolami closed 1 month ago

leolami commented 3 months ago

Checklist

Motivation

Manage options:

Now in G3W-SUITE, the values show in the dropdown menù follows the alphabetic order of the value column

IN QGIS, instead, the default order is based on the key value (ever alphabetic)

There is a option that permits to order the value on the base of the values colum (ever alphabetic)

Example in QGIS

Image

Suggested solution

It is therefore necessary to arrange things like this:

Alternatives considered

volterra79 commented 1 month ago

@leolami it seems that already application request values ordered by value

http://localhost:3000/vector/api/data/qdjango/50/roads_ea006d6f_bd87_4635_aae0_4e9e7842b3f4/?ordering=name&formatter=0

Can you provide an project to test it? Thanks

leolami commented 1 month ago

In fact, as I wrote above:

Now in G3W-SUITE, the values ​​show in the dropdown menu follows the alphabetic order of the value column, by default

IN QGIS, instead, the default order is based on the key value (ever alphabetic)

As you can see from the example we have to manage things in this way, compared to the current situation

As a project you can use Buildings by modifying the option at the "value relation" widget level for the "address" field, as per the image attached above

volterra79 commented 1 month ago

@leolami i understand now. @wlorenzetti client need to receive an options attribute ordering with key or value field