Bug report #9538

Unable to save changes to the description expression in Relation Reference widget

Added by Alexandre Neto over 10 years ago. Updated about 5 years ago.

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.

Relation_reference_widget.PNG (23.4 KB) Alexandre Neto, 2014-02-11 03:59 AM

Captura_de_tela_2014-02-11_11.56.19.png (29.8 KB) Alexandre Neto, 2014-02-11 03:59 AM

Captura_de_tela_2014-02-11_13.54.04.png (48.4 KB) Alexandre Neto, 2014-02-11 05:58 AM

Associated revisions

Revision 5e21c55d
Added by Matthias Kuhn about 10 years ago

[relations] Preview expression from relation reference field config dialog
Fix #9538

History

#1 Updated by Matthias Kuhn over 10 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 over 10 years ago

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 about 10 years ago

  • Status changed from Open to Closed

#4 Updated by Matthias Kuhn about 10 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 about 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#6 Updated by Giovanni Manghi about 5 years ago

  • Status changed from In Progress to Closed
  • Resolution set to end of life

Also available in: Atom PDF