7

You probably use shapefiles to store your layer. To solve your issue, save the layer to a Geopackage. Shapefiles do not support Datetime field types. See the QGIS documentation about Shapefiles: Only Decimal number, Whole number, Text data and Date attributes are supported. See also this explanation.


3

Another solution (as was mentioned by @Vince) is to use the coalesce() function, like: coalesce("test1", "test2")


3

Use this expression that utilizes the concat() function: concat("name1", "name2", "name3")


3

On field B, for constraints use this expression: case when "field_A" = 'foo' then not (field_B is NULL) when "field_A" <> 'foo' then field_B is NULL or field_B is not NULL end


3

Assign pdf_table.columns() to a variable columns = pdf_table.columns() Make changes for column, header in zip(columns, pdf_headers): column.setHeading(header) Use setColumns pdf_table.setColumns(columns) layout.refresh()


1

You need to match the lenghts of your fields. To achieve that, go to Processing -> Refactor Fields Select you layer with the too short field as input, map it to your "longer" layer and run it. The resulting layer should be mergeable with your original "long" layer.


1

There are other solution available. Solution 1 : QgsAggregateCalculator (see documentation) with ArrayAggregate Available aggregates to calculate. Not all aggregates are available for all field types. This approach is available since QGIS 2.16. layer = QgsProject.instance().mapLayersByName('your_layer_name')[0] # define your layer name temp_layer = layer....


1

Somehow, using tools like Wedge_buffer or Buffer, setting parameters (like distance, azimuth or width) based on attribute fields does not seem to work. For this reason, a very simple way is to use Geometry by expression to create geometries using QGIS expressions. The model is extremely simple as you can see on the screenshot. Use this expression to create ...


Only top voted, non community-wiki answers of a minimum length are eligible