Bug report #9538
Unable to save changes to the description expression in Relation Reference widget
|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|
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.
#1 Updated by Matthias Kuhn about 6 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 about 6 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.
#4 Updated by Matthias Kuhn about 6 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.
#6 Updated by Giovanni Manghi about 1 year ago
- Status changed from In Progress to Closed
- Resolution set to end of life
End of life notice: QGIS 2.18 LTR