[Qgis-user] many-to-one relationships: add new parent within the child form

Matthias Kuhn matthias at opengis.ch
Mon May 16 00:51:44 PDT 2016


Hi Mihai,

I have been working on this recently, this is now possible with current
master/nightly builds and will be released with 2.16.
It needs to be activated in the widget configuration.

Matthias

On 05/16/2016 04:01 AM, Mihai Terente wrote:
> Hello everyone,
>
> Is there a way to create parent features within a child form in
> many-to-one relationships?
>
> For example, suppose I have 2 layers Address (parent, table) and POI
> (child, point). The many-to-one relationship between these two layer
> could be set up like this:
> Address:
>     - ID, serial, PK
>     - ...
> POI
>     - ID, serial
>     - ADDRESSID pointing to Address.ID
>
> As far as I know, at present whithin the POI (child) form, an Address
> (parent) can only be referenced, not created, e.g. with Relation
> Reference widget. The parent must exist.
>
>
> Thanks,
> Mihai
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

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




More information about the Qgis-user mailing list