Bug report #20666

in an embedded layer joined attributes are visible only after refreshing the map

Added by Thomas M almost 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Attribute table
Affected QGIS version:2.18.25 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:28486

Description

new description

when embedding a layer from another project, if the layer has a join, then in the embedded layer the joined attributes are only visible after refresh the map canvas.

old description
**Joined two layers "parcel" with "owner" layer after the fields of type string.
Options join:
- cache join layer in virtual memory: off
- create attribute index on join field: off
- choose which fields are join: on
- custom field name prefix: off

In layers "parcel" is visiblited fields "owner" layers - project is save .
When will he use the option "Embed layers and group" in other project in layer "parcel" is not visible fields "owner" layers.

When record in layer "pracel" is less than 20000, "owner" layers fields are visiblited.

History

#1 Updated by Giovanni Manghi almost 6 years ago

  • Status changed from Open to Feedback

So, I have understand correctly:

the join work, but then when embedding the layer (with a join) into a different project then the attributes of layer are missing the ones from the joined one, but only if the joined one has more than 20000 rows. is that it?

#2 Updated by Thomas M almost 6 years ago

I carried out the tests again.
However, this is not about the number of records.
When embedding the layer (with a join) into a different project then the attributes of layer are missing, but how to refresh the map (F5) everything will/join be visible

In version QGIS3 all is ok.

#3 Updated by Thomas M almost 6 years ago

I noticed that in embedding the layer into a different project are missing options layers propertis->edit widget

#4 Updated by Giovanni Manghi almost 6 years ago

Thomas M wrote:

I carried out the tests again.
However, this is not about the number of records.
When embedding the layer (with a join) into a different project then the attributes of layer are missing, but how to refresh the map (F5) everything will/join be visibl

so, embedding layers with a join works but joined attributes only show after refreshing the map, correct?
what about on 3.4.2?

#5 Updated by Thomas M almost 6 years ago

Giovanni Manghi wrote:

so, embedding layers with a join works but joined attributes only show after refreshing the map, correct?

YES

what about on 3.4.2?

on 3.4.0 embedding layers with a join works (without refreshing the map)

#6 Updated by Giovanni Manghi almost 6 years ago

  • Subject changed from Join layers - embed layers and group to in an embedded layer joined attributes are visible only after refreshing the map
  • Status changed from Feedback to Open
  • Description updated (diff)

#7 Updated by Jürgen Fischer almost 6 years ago

  • Status changed from Open to Feedback

Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

#8 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed

Also available in: Atom PDF