Without looking into it in detail, adding this to the expression context
sounds like a good idea.

On 11/17/2015 12:56 PM, Alessandro Pasotti wrote:
> Hi,
>
> it seems that the widget's expression context does not have access to
> the currently edited record.
>
> Maybe I've just not found a way to do that but it's impossible to
> filter relations with an expression built upon the the values of the
> "main" record (the one currently edited in the form) because
> $currentfeature refers to the relation layer,
>
> A possible solution would be to add a $currentformfeature to the
> expression and add the edited feature to the expression context.
>
> Would it be a possible solution?
> Any hint?
>
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it <http://www.itopen.it>
>
>
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to