[Qgis-developer] drill down in QgsValueRelationWidgetWrapper::createCache
Matthias Kuhn
matthias at opengis.ch
Tue Nov 17 04:22:42 PST 2015
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
> Qgis-developer at lists.osgeo.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151117/bb3f4e7d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151117/bb3f4e7d/attachment-0001.sig>
More information about the Qgis-developer
mailing list