diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2024-12-03 17:06:16 +0100 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2024-12-04 10:21:45 +0100 |
commit | d28fcb3e26497ab1982ffcaee613e33821773c2a (patch) | |
tree | 485f1053025c2bb70dee63d62d0223b532c05dd3 /sc | |
parent | 43e511e642a2ce7026b30ea5c212940ff3eb522e (diff) |
ScriptForge (SF_Session) enhance ExecuteCalcFunction
The ExecuteCalcFunction() method is a wrapper
of the
com.sun.star.sheet.FunctionAccess::callFunction()
method.
This method accepts a broad variety of arguments
- scalars: numeric and strings only
- data arrays (= arrays os arrays)
- 2D arrays (1D arrays give errors)
- com.sun.star.table.XCellRange objects
depending on the called function and its
execution or not as an "array function".
The actual commit makes that the arguments passed to
session.ExecuteCalcFunction()
are checked as formally correct: scalars are filtered
as numeric or strings, dates and booleans are converted,
arrays are reshaped to 2D where necessary.
The actual change facilitates, as an example,
the use of complex array functions like XLOOKUP,
a powerful search engine on large data sets.
The implemented functionalities are valid in Basic
and Python.
The help documentation might be completed with
additional examples.
Change-Id: I6bba1e21828ef09c5c6f0463cbcfa1f5df695073
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177744
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'sc')
0 files changed, 0 insertions, 0 deletions