[QGIS-Developer] FIELDS_TO_COPY syntax for native:joinattributestable

Nyall Dawson nyall.dawson at gmail.com
Sat May 11 22:30:53 PDT 2019


On Sat, 11 May 2019 at 00:03, Anita Graser <anitagraser at gmx.at> wrote:
>
> Hi,
>
> I'm trying to figure out the syntax for using native:joinattributestable in the modeller. Specifically, I'd like to specify the FIELDS_TO_COPY parameter. I know from the Processing history, that the correct syntax is :
>
> FIELDS_TO_COPY: ['NAME','USE']
>
>
> but no matter how I try to enter the field names into to modeller GUI, I always end up with either everything mashed into one field name, e.g.
>
>
> FIELDS_TO_COPY: 'NAME,USE'

NAME;USE

It's completely opaque and not user friendly at all. This will
eventually get fixed when the fields parameter is ported to the new
wrapper API, where we can add specific helper tooltips and text around
the widget.

Nyall


>
>
> or escaped:
>
>
> FIELDS_TO_COPY: '[\'NAME\',\'USE\']'
>
>
> What's the correct way to specify the "Layer 2 fields to copy" in the modeler GUI?
>
>
> Regards,
>
> Anita
>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list