Bug report #12989

"The relation is not valid.." message is shown always

Added by aperi2007 - about 5 years ago. Updated about 5 years ago.

Status:Closed
Priority:Normal
Assignee:Matthias Kuhn
Category:Relations
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:21067

Description

Hi,
I notice that when set a relation and go to identify the layer, the window show the message
"the relation is not valid..." indipendently that the relation is valid or not.

I prepare a simple package to test this and an image to show the issue.
Start the project and clink identify on the polygon available.

I work using the last qgis 2.8.2 on windows 7 64bit.

pacchetto_issue.zip - sample test project (83 KB) aperi2007 -, 2015-06-18 12:53 AM

History

#1 Updated by Giovanni Manghi about 5 years ago

  • Affected QGIS version changed from 2.8.2 to master

I see it also on master/linux.

#2 Updated by Matthias Kuhn about 5 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

In the demo project the referencing side of the relation in the relation manager is not the same as the one configured in the layer properties.

The layer which is in "referencing layer" - the child side, the one where you have N elements holding a reference to a parent element - is the one where the field widget can be configured as Relation Reference. You will notice that the combobox for choosing the relation is empty on the widget config dialog.

The other side (the parent) needs to have the relation editor (which can be found in the dock at the bottom of the fields dialog for the drag and drop editor).

For your project don't use the relation reference widget on the SUOLOREL side as that it is the parent side and with the autogenerated form the embedded form are already shown (see at the bottom of the form).

Also available in: Atom PDF