Re: [QGIS-Developer] row_number and other functions missing from form and symbology

2020-10-21 Thread Paolo Cavallini
Hi Nyall,

Il 22/10/20 01:12, Nyall Dawson ha scritto:

> These are only available in contexts where the function is used in a
> table -- e.g. field calculator, layout attribute tables, etc. But they
> aren't available outside of tables (for symbology, forms, etc) where
> there aren't any concept of "rows" to number.

Thanks for your explanation. I intended to use row_number in an
expression to set a default value for a data entry form, it seems a
valid user case to me. I solved the issue with max+1, anyway.
Cheers.

-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more
___
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

Re: [QGIS-Developer] row_number and other functions missing from form and symbology

2020-10-21 Thread Nyall Dawson
On Wed, 21 Oct 2020 at 20:47, Paolo Cavallini  wrote:
>
> Hi all,
> I noticed that some functions (I checked row_number) are present in the
> field calculator, but absent from symbology and forms. Is there a reason
> for this, or is it simply work to be done?

Hi Paolo,

These are only available in contexts where the function is used in a
table -- e.g. field calculator, layout attribute tables, etc. But they
aren't available outside of tables (for symbology, forms, etc) where
there aren't any concept of "rows" to number.

Nyall


> All the best.
> --
> Paolo Cavallini
> www.faunalia.eu - QGIS.org
> training, support, development on QGIS, PostGIS and more
> ___
> 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
___
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

[QGIS-Developer] row_number and other functions missing from form and symbology

2020-10-21 Thread Paolo Cavallini
Hi all,
I noticed that some functions (I checked row_number) are present in the
field calculator, but absent from symbology and forms. Is there a reason
for this, or is it simply work to be done?
All the best.
-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more
___
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