Bug report #18697

[Layout] Data-defined attribute table source layer has some limitations

Added by Harrissou Santanna almost 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:3.1(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26585

Description

In a Print layout, Add an attribute table, and in its properties set 'layerA' as layer source
In the layer source data-defined widget, simply type 'layerB' expression to use instead the layerB as source value. Nothing happens. Pressing "Refresh table data" does nothing.

I'd expect attribute table columns being filled (when compatible) by layerB values instead of still showing layerA values.

Also if you deselect the table and select it back, the data-defined expression is cleared.

The same happens with expressions like case when 1=1 then 'layerB' end (when there's an else parameter, it works "as expected")

Also available in: Atom PDF