qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.54k stars 2.99k forks source link

Attribute table: "move selection to top" not working in form view #35619

Open edzellAmy opened 4 years ago

edzellAmy commented 4 years ago

When using polygon layers the attribute table move selection to top button doesn't do anything when attribute table is in form view. It works in table view, but not in form view. It works with point or line layers, but not polygon layers - have tried with shapefiles and postgres DB layers with same result.

Load a polygon layer Select one feature in the layer Open attribute table Switch to form view Click move selection to top button - nothing happens Switch to table view, selected feature is shown at the top of the table.

QGIS LTR 3.10.3 Windows 10

gioman commented 4 years ago

@edzellAmy works as expected here on 3.10.4 on linux.

stev-0 commented 4 years ago

I see this behaviour (with the form view only, not the attribute view) for all types of geometry on all versions (tested 3.8.3 and master). @edzellAmy can you attach the data that you thinks works and which doesn't as it could conceivably be data-specific. But I assume the feature was never implemented for the form view, unless I am not reproducing this right.

edzellAmy commented 4 years ago

I just checked again and now I can't get it to work with any geometry type. Although I thought it previously worked with points and lines i can't get it to now, so maybe I was mistaken. Attached are three geopackage layers, points, lines and polygons for which it doesn't work.
test_layers.zip

gioman commented 4 years ago

I can now replicate on both Linux and Windows.

Pedro-Murteira commented 2 years ago

I can replicate this behaviour on QGIS 3.16.14, but it appears to be fixed on QGIS 3.22.1.

gioman commented 2 years ago

but it appears to be fixed on QGIS 3.22.1.

@Pedro-Murteira I can still replicate the problem on 3.22.1.

Pedro-Murteira commented 2 years ago

@gioman In most of the tests I could not replicate it, but sometimes it happens exactly as described with the selection. test_35619!

gioman commented 2 years ago

@Pedro-Murteira there are cases where is seems to work (also on 3.16), for example I just tested a PostGIS point layer, and works as expected. This could be format-related, must be tested more.

edzellAmy commented 2 years ago

We are using QGIS 3.16.14 with Windows 10 and its still an issue with all our PostGIS polygon layers.
On our system it seems to work with shapefile points layers, but not with shapefile polygon and line layers.