Bug 150937 - When opening Advanced filter dialog the "From" field should be filled with the address of current selection
Summary: When opening Advanced filter dialog the "From" field should be filled with th...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Data-Filter
  Show dependency treegraph
 
Reported: 2022-09-13 19:45 UTC by Rafael Lima
Modified: 2024-04-19 08:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2022-09-13 19:45:36 UTC
After going through bug 150936 the user pointed out to the fact that the Advanced filter does not use the selected cell range by default, which would be very handy.

Steps to reproduce
1) Create a new ODS file and populate a column with values (f.i. range A1:A10)
2) Select the range A1:A10
3) Go to Data - More filters - Advanced filter
4) Notice that the "Read filter criteria from" field is empty; to apply a filter to range A1:A10 the user will have to select it again

Expected result
The "Read filter criteria from" should have the selected range "A1:A10" in it by default (similar to what the solver currently does with the "Target Cell")

System info

Version: 7.3.5.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1
Calc: threaded
Comment 1 ady 2023-02-06 17:35:56 UTC
What if the "criteria" is not the entire range, but a specific value in some specific cell (that may or may not be part of the range to be filtered)?

For example, say the list is in A2:A11, and the criteria to filter that range is in C2.

What I am trying to say is that the name of the box, "Read Filter Criteria From" seems already confusing. A user could wonder: is this field/box aimed at the entire range to be filtered, or is the criteria by which to filter a certain range?

The request to pre-fill the box with the selected range is entirely reasonable (as the default range for the field). I'm just adding that the field / dialog seems unclear and partly not working as users would expect (as shown in the original bug 150936).
Comment 2 Heiko Tietze 2024-04-08 11:10:03 UTC
While there are many use cases that make it necessary to change the parameters, I see no harm in using a selection on start.

Btw, if I define a range it's neither listed in this dialog nor using the name instead of the actual range is accepted. What is this dropdown about at all?
Comment 3 Heiko Tietze 2024-04-19 08:01:09 UTC
We discussed the topic in the design meeting, and there is no objection to prefill the input controls.

Regarding the label we may change it to a more common string like "Select Range" but it's questionable if this renaming makes anything more clear for users.