Bug report #16064

Data defined position of table in print composer

Added by Martin Höpke over 7 years ago. Updated about 6 years ago.

Category:Map Composer/Printing
Affected QGIS version:2.18.2 Regression?:No
Operating System:Linux Mint Easy fix?:No
Pull Request or Patch supplied:No Resolution:worksforme
Crashes QGIS or corrupts data:No Copied to github as #:23979


The data defined position of a table in the print composer isn't working since 2.18.

According to this post: http://gis.stackexchange.com/questions/218124/data-defined-position-of-table-in-print-composer-qgis-2-18

OVhGX.png (330 KB) Martin Höpke, 2017-01-11 01:07 PM


#1 Updated by Nyall Dawson over 7 years ago

Looks like in this case "box_pos" is not equal to 'right', so the ELSE value of 10 is being returned. I'd add a temporary label somewhere on the composition and check what's present in the "box_pos" field.

Note that the preview in the expression builder just operates on the first feature found in that layer, so may not reflect the values for the atlas page being shown.

#2 Updated by Martin Höpke over 7 years ago

Note according the screen shot: The text filed have got the same settings as the table but it's working. The expression of the text field and table x-position is:

"CASE WHEN "box_pos" = 'left' THEN 148

#3 Updated by Giovanni Manghi almost 7 years ago

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

#4 Updated by Nyall Dawson over 6 years ago

  • Status changed from Open to Feedback
  • Description updated (diff)

Please retest using layouts engine on qgis 3.0 master

#5 Updated by Giovanni Manghi about 6 years ago

  • Resolution set to worksforme
  • Status changed from Feedback to Closed

Closing for lack of feedback, please reopen if necessary.

Also available in: Atom PDF