Qgis: Drop multiple fields with the drop field(s) tool from Graphical Modeler

Created on 13 Nov 2019  ·  4Comments  ·  Source: qgis/QGIS

Describe the bug

It's possible to select multiple field(s) too drop if you run the Drop field(s) algorithm from the Processing Toolbox. It's only possible to drop a field at a time if you use the same algorithm from Graphical Modeler.

How to Reproduce
Open a new Graphical Modeler, and add a layer with the columns "layer" and "path" (leftover after a "Merge vector layers" algorithm). Add the drop field(s) algorithm. Write a list off columns to drop. The result will be something like this:

{ COLUMN: '[\'layer\',\'path\']', INPUT: '(...)', OUTPUT: 'TEMPORARY_OUTPUT' } Field “['layer','path']” does not exist in input layer

QGIS version
3.10.0

Bug

Most helpful comment

Yes of course, you are right.
But just a tooltip would have helped immensely. The output field already has a placeholder - "[enter name if final result"]. Would it be possible to add a placeholder that states "[separate multiple fields with a semicolon]"?

All 4 comments

Seperate the field names with a ";" character

Really thought I had tried every combinations of delimiters, brackets, and quotation marks. Thanks anyway!
Let me start over again... can i ask for a Feature Request for a graphical way to add multiple fields?

It is not possible to add fields in a way other than manual, as at desing-time we don't know which fields layer has.

Yes of course, you are right.
But just a tooltip would have helped immensely. The output field already has a placeholder - "[enter name if final result"]. Would it be possible to add a placeholder that states "[separate multiple fields with a semicolon]"?

Was this page helpful?
0 / 5 - 0 ratings