Change data source of an attribute table frame with data-defined override button #36195
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Print Layouts
Related to QGIS Print Layouts, Atlas or Reporting frameworks
Context
Switch data source of an attribute table frame in a composer with data-defined override button to take into account if a layer's name changed.
Description
In a composer build with an attribute table frame, data-defined override button don't apply when trying to change the data source.
As documentation specify, data-defined override button allows to dynamically change the layer which is used to populate the table, but changes are not applied.
The source layer reference in the main drop-down list stays persistent, even if
@layer_name
or@layer_id
are changed in expression builder. Same behaviour observed with Geopackages and Shapefiles.Expressions tryed to define an other source layer (e.g myLayer_1 and myLayer_2) :
'myLayer_2'
@layer_name = 'myLayer_2'
Expressions tryed to switch between two layers (e.g myLayer_1 and myLayer_2) :
@layer_name = coalesce('myLayer_1','myLayer_2')
coalesce(layer_property('myLayer_1','name'),layer_property('myLayer_2','name'))
If it's not a bug, may documentation needs to be more explicit and provides a syntax example ?
How to reproduce
QGIS and OS versions
3.10.2-A Coruña
Windows 10 Professional
Additional context
Documentation : https://docs.qgis.org/3.10/en/docs/user_manual/print_composer/composer_items/composer_attribute_table.html#main-properties
Source issue : https://gis.stackexchange.com/questions/360482/qfield-display-attributes-table-frame-in-pdf-with-editing-offline-mode
The text was updated successfully, but these errors were encountered: