[Libreoffice-bugs] [Bug 133910] New: UNO: `callFunction`does not accept optional Array parameter

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 11 19:37:51 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=133910

            Bug ID: 133910
           Summary: UNO: `callFunction`does not accept optional Array
                    parameter
           Product: LibreOffice
           Version: 7.0.0.0.beta1+
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: smartazaiz at gmail.com

Description:
Calling Calc functions which accepts additional argument as an array of values
throws a BASIC runtime error.

Steps to Reproduce:
1. Run this code:

Sub Main
        oFA = createUnoService( "com.sun.star.sheet.FunctionAccess" )
        holidays = Array("2020-06-09", "2020-06-10")

        ' API should provide the use of one or both of these `callFunction` for
Array args
        Print CDate( oFA.callFunction( "WORKDAY", Array( "2020-06-08", 1,
"2020-06-09", "2020-06-10")))
        Print CDate( oFA.callFunction( "WORKDAY", Array( "2020-06-08", 1,
holidays)))
End Sub

Actual Results:
BASIC runtime error.
An exception occurred 
Type: com.sun.star.lang.IllegalArgumentException
Message: .

Expected Results:
11.06.2020


Reproducible: Always


User Profile Reset: No



Additional Info:
Array arguments should have the possibility to be accepted like the scalar
arguments inside Array(.......) argument of `callFunction`


Version: 7.0.0.0.beta1 (x64)
Build ID: 94f789cbb33335b4a511c319542c7bdc31ff3b3c
CPU threads: 4; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: fr-CH (fr_FR); UI: en-GB
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200611/efd1f31f/attachment.htm>


More information about the Libreoffice-bugs mailing list