Bug report #19063
Unable to retrieve variables from another layout item
|Affected QGIS version:||3.1(master)||Regression?:||Yes|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||26893|
According to the function help and documentation
map_get(item_variables('Map 1'), 'map_scale') would help me retrieve the scale of a map item and use it for example in a label. This does no longer work unless I manually set the Item ID property of the map item, using only digits (eg. 1 or 124).
I'm not sure it makes sense and it's a nice UX to have for example my map named 1 instead of Map1 or my local map...
#2 Updated by Harrissou Santanna about 3 years ago
- File DEPARTEMENT.7z added
- File item_variables.PNG added
- File item_variables.qgz added
Nyall Dawson wrote:
Note that no items have an id by default - you always need to manually set ids.
Then what does represent the "Map 1", "Map 2" texts that appear at the top of the map item properties, and replaced by the "Item ID" when set? aren't they some kind of default internal IDs? Should they not be used for such a feature?
can you attach a sample project?
Done (project, data and screenshot).