Bug report #9538
Unable to save changes to the description expression in Relation Reference widget
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | GUI | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Windows 7 64 bit | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | end of life |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 18126 |
Description
I have been doing tests with the new relations functionality. Trying to use the relation reference widget to edit my data, I have noticed that it's not possible to save changes in the description expression.
Earlier versions of master something like this "coalesce("oid", <NULL>)" was used by defaulf, where "oid" was the referenced field, and the widget would work but was not customizable. Later versions no default value is set, and the related comboboxes seem to have items but with no values.
Associated revisions
[relations] Preview expression from relation reference field config dialog
Fix #9538
History
#1 Updated by Matthias Kuhn almost 11 years ago
Indeed, this seems to be behaving strange... Will have a look at it sometime.
Please note that for the time being you can use the following workaround: Open the attribute table for the parent (referenced) layer, switch to form view and define the preview expression there. In my tests, this was then taken into account for the relation reference widget as well.
#2 Updated by Alexandre Neto almost 11 years ago
- File Captura_de_tela_2014-02-11_13.54.04.png added
Indeed. I have tested and the workaround works fine.
I noticed another issue though. In the referencing layer (child) attribute table list, trying to edit the referencing field (using the widget) the combobox does seems to open. Check line 2 in the attached image.
Anyway, I must say that I still love this new feature.
#3 Updated by Matthias Kuhn almost 11 years ago
- Status changed from Open to Closed
Fixed in changeset 5e21c55d2b6358da0a8b61beb490ea0dd5f26a0c.
#4 Updated by Matthias Kuhn almost 11 years ago
- % Done changed from 0 to 50
- Status changed from Closed to In Progress
This fixes the worst part of the problem, i.e. that the expression is not saved when edited in the config dialog. I'll leave this open until the other part (get reasonable defaults) is also fixed.
#5 Updated by Giovanni Manghi over 7 years ago
- Regression? set to No
- Easy fix? set to No
#6 Updated by Giovanni Manghi over 5 years ago
- Status changed from In Progress to Closed
- Resolution set to end of life
End of life notice: QGIS 2.18 LTR
Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/