[QGIS-Developer] $currentfeature VS @current_feature

matteo matteo.ghetta at gmail.com
Wed Jul 8 05:03:15 PDT 2020


Hi all,

before to file a ticker I'd like to have a small feedback. Maybe I'm
missing something but what is actually the difference between
$currentfeature and @current_feature?

Because I was expecting to use @current_feature together with attribute
like:

attribute(@current_feature, 'my_field')

within the Default Value of a Field in the Attributes Form, but it
didn't work while

attribute($currentfeature, 'my_field')

works nice

If someone has a small explanation I will gladly add it to the documentation

Cheers and thanks for any hint

Matteo


More information about the QGIS-Developer mailing list