Bug 155316 - Function Wizard should remember the Category field selection from its prior use, at least per session (RFE)
Summary: Function Wizard should remember the Category field selection from its prior u...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Function-Wizard
  Show dependency treegraph
 
Reported: 2023-05-15 11:10 UTC by ady
Modified: 2023-07-25 23:32 UTC (History)
2 users (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 ady 2023-05-15 11:10:37 UTC
Background info:

When using the Search field of the function Wizard, the Category immediately changes to "All".

On non-empty cells that already contain a formula, the default Category of the Function Wizard depends on the category of the first function used in the formula in that cell.

As of LO 7.4 (and 7.5), the behavior of the F.W on a cell that has no formula yet, regarding its Category field, is to always start with the Category "All" selected by default when starting the F.W.

After the RFE in bug 104487, the behavior was slightly modified. On a cell that has no function (i.e. empty, direct values, or with simple operators), the default Category when opening the F.W. would be the same as the category of the _main_ function that was last _seen_ in the F.W.

My request/suggestion is that when opening the F.W. on cells that don't have yet at least one function (of the list of functions in the F.W.), then the default Category would be the same that was left set in that Category field the last time the F.W. was used (at least for that session).

This should also be the behavior (on cells with that conditions) when that prior Category was "All", or when that Category was "Last Used". Currently, after the resolution of bug 104487, this is not the case.

The behavior when opening the F.W. on a cell that already has at least one function should not change. The behavior of the Category field when typing on the Search field should also be maintained.

This proposal would effectively improve the efficiency of the "Last Used" Category (and of "All"), without disrupting other use-cases. Additional details were discussed in bug 104487.
Comment 1 Stéphane Guillou (stragu) 2023-07-25 20:50:06 UTC Comment hidden (obsolete)
Comment 2 ady 2023-07-25 23:32:54 UTC
Experienced/advanced spreadsheet users will probably understand the request easier than generic users. This is why bug 104487 has so many specific detailed explanations, and this request is based on that.

The following STR are based on LO 7.6. Older versions will behave differently (because of the implementation of tdf#104487).

1. Start with LO completely closed (i.e. new LO session). Start a new Calc spreadsheet.
2.
 A1: 1
 A2: 2
 A3: 3

3. In cell A4, click on the Function Wizard icon. Note that the Category field is "All"; the cursor blinks within the Search field.
4. Search for "average". The Function list is filtered.
5. In the Function list, select AVERAGE and follow the FW -> A4: =AVERAGE(A$1:A$3)

6. Go to cell A5; click on the Function Wizard icon. Note that the Category field is "Statistical"; the cursor blinks within the Search field.
7. Search for "concat" (a function that is not in the same Category as the prior function). The Function list is filtered.
8. In the Function list, select CONCAT and follow the FW -> A5: =CONCAT(A$1:A$3)

9. Go to cell A6; click on the Function Wizard icon. Note that the Category field is "Text"; the cursor blinks within the Search field.
10. Click on the Category field and select "Last Used" (i.e. shows the "recently used" functions). At least AVERAGE and  CONCAT will be shown in the Function list in the FW.
11. In the Function list of the FW, select any function you would like and continue with the FW up to finishing it, inserting a new formula in cell A6. For example, A6: =SUM(A$1:A$3)

12. Go to cell A7; click on the Function Wizard icon.


In order to show the complete set of possibilities (or algorithm, or logic), I would have to add many more steps. Please read tdf#104487 and comment 0 in this bug 155316.

Current behavior (LO 7.6, _not_ in older versions, see comment 0):
On a cell that has no function (i.e. empty, direct values, or with simple operators), the default Category when opening the F.W. would be the same as the category of the _main_ function that was last _seen_ in the F.W. (This is never the "Last Used" category.)


Expected behavior:
See comment 0.

Let's CC Andreas Heinisch (quote from bug 104487 comment 18, "it is clear now").