Also, Don't forget that high hierarchy/context @variables can be overwritten variables defined by the user or lower contexts.
You can't do that with a function. A quarta, 8/07/2020, 15:01, matteo <matteo.ghe...@gmail.com> escreveu: > Thanks Andreas and Harrissou for the clarification. > > Actually what is confusing me is that the variable @current_feature is > suggested in bold directly in the Expression Builder within the > Attribute Forms. > > I know that variable depends on the scope (e.g. @symbol_color) but I > thought that IF a variable is suggested then it should be available in > that context. > > I prepared a super small project > > faunalia.eu/~matteo/bug.zip > > if you try to add a feature to the point layer you will see that one > filed is working and the other not. > > Cheers and thanks > > Matteo > _______________________________________________ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer