[Qgis-developer] drill down in QgsValueRelationWidgetWrapper::createCache

Alessandro Pasotti apasotti at gmail.com
Tue Nov 17 03:56:46 PST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151117/cbc4af49/attachment.html>


More information about the Qgis-developer mailing list