My model start by asking two input layer LAYER1
and LAYER2
.
Then, in field calculator for LAYER1
, i want to join an attribute value from LAYER2
. Using this code :
attribute( get_feature( 'LAYER2','ID1',"ID1"),'FIELD1')
The problem is that I'm not able to know the name of the input layer LAYER2
So I try to use the layer_property in order to see if the modeler recognize the name of yhe valeur but he won't:
layer_property( @LAYER2 ,'layerName')
But it always return a NULL value. Is there is something that you have to done to return the name of the layer?