I have a simple python macro (based on ScriptForge) that opens a dialog. When I run it from Tools>Macros>Run Macro it works. Now I have connected it to the event execution of a form-button, but then I get an error: com.sun.star.unoRuntimeError. Error during invoking dlg…dlg takes 0 positional arguments but 1 was given.
LibreOffice base 7.6.1.2 with Firebird database.
def dlg():
from scriptforge import CreateScriptService
dlg = CreateScriptService('SFDialogs.Dialog', '/home/frie/Dropbox /accounting_development/boekhouding_template (copy).odb', 'Standard', 'kolommenbalans')
dlg.Execute()