I have a simple project in
QGIS 3.10.5: a polygon layer and a point layer. When the user add a point feature which intersects a polygon feature, a calculate field make this intersection and get the id attribute of the polygon feature.
In my desktop project, I used refFunctions extension, and result is ok. I have a calculate field in my point layer with an expression:
I deployed this project in QField and
refFunctions isn't working anymore, even when
geopackage is synchronised with desktop project. I tried an other expression without using,
refFunctions but it's not working better.
aggregate( layer:= 'polygonLayer', aggregate:='concatenate', expression:=polygonID, concatenator:=', ', filter:=intersects($geometry, geometry(@parent)) )
How to calculate an intersection between two layers (and get an attribute value) with
Can I use a "native"
QGIS function to make this intersection in a calculate field? (without using aggregate because my field is an integer id)
In my point layer, I also have a date field wich have a default value
format_date( now(),'yyyy-MM-dd HH:mm:ss'). When I add a feature in QField, date is well calculated and displayed in the form but aggregate function result isn't. When I synchronize my layer with
QFieldSync, date value is ok but my intersection field with aggregate function is
How to explain this? Both are functions, why behaviours are different?
Documentation seems to indicate, this should works, maybe I'm missing something.