Hi


> On 12 Nov 2019, at 08:10, Alexander Bruy <alexander.b...@gmail.com> wrote:
> 
> Hi Tim,
> 
> if I'm not mistaken, these inputs only available inside expression editor when
> it opened from a modeler algorithm. And they are added as top-level items,
> and don't belong to any group.


Ah thanks you are right! Adding the Field Calculator algorithm for example lets 
me see it:





But I got other issues now:


I can’t get my expression to validate:


attribute(
get_feature(  @datatable , 'id',  @foreignkeycolumn), 'uuid’)


It validates when I substitute @datatable instead of a hard coded string, but 
not when I substitute @foreignkeycolumn instead of a hard coded string.


Trying to run it anyway (unsurprisingly) gives:

QGIS version: 3.10.0-A Coruña
QGIS code revision: 6c816b4204
Qt version: 5.12.3
GDAL version: 2.4.1
GEOS version: 3.7.2-CAPI-1.11.2 b55d2125
PROJ version: Rel. 5.2.0, September 15th, 2018
Processing algorithm…
Algorithm 'Convert Lookup To UUID' starting…
Input parameters:
{ 'datatable' : 
'/Users/timlinux/gisdata/MaceiraMergin/Maceira/smallholding.gpkg|layername=structures',
 'foreignkeycolumn' : 'wall_type_id', 'lookuptable' : 
'/Users/timlinux/gisdata/MaceiraMergin/Maceira/smallholding.gpkg|layername=wall_type'
 }

Prepare algorithm: qgis:fieldcalculator_1
Running Field calculator [1/1]
Input Parameters:
{ FIELD_LENGTH: 99, FIELD_NAME: '_uuid', FIELD_PRECISION: 3, FIELD_TYPE: 2, 
FORMULA: 'attribute(\nget_feature( @datatable , \'id\', @foreignkeycolumn), 
\'uuid’)', INPUT: 
'/Users/timlinux/gisdata/MaceiraMergin/Maceira/smallholding.gpkg|layername=structures',
 NEW_FIELD: True, OUTPUT: 'memory:Calculated' }
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
No root node! Parsing failed?
OK. Execution took 0.413 s (1 outputs).
Model processed OK. Executed 1 algorithms total in 0.514 s.
Execution completed in 0.58 seconds
Results:
{}

Loading resulting layers
Algorithm 'Convert Lookup To UUID’ finished


Regards

Tim
—









Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com <http://kartoza.com/> to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

I'd love to connect. Here's my calendar link <https://calendly.com/timlinux> to 
make finding time easy.

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to