I want to create an event listener for an ooBase form in ooBasic, I THINK I have the bones of how to do it but don't know the specifics.
It seems to require 2 lines of code along the lines of:
objFormListener = CreateUnoListener("FormListener_","com.sun.star.somecomponent.XEventListener")
ThisComponent.com_sun_star_somecomponent_XEventBroadcaster_addEventListener(objFormListener)
And then an event handler such as:
Sub Sub FormListener_notifyEvent(objEvent As Object) MsgBox objEvent.EventName & " fired" End Sub 'FormListener_notifyEvent
I have been unable to find what "somecomponent" should be! (I have tried "form" and "forms") to no avail.
Can anyone help?
ooBase Form Event Listener
ooBase Form Event Listener
OpenOffice 4.16 on Windows 10
Re: ooBase Form Event Listener
Also asked at https://ask.libreoffice.org/en/question ... -listener/
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 25.2.4.3; SlackBuild for 25.2.4 by Eric Hameleers
---------------------
Apache OpenOffice 4.1.15
LibreOffice 25.2.4.3; SlackBuild for 25.2.4 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue]
Unexpected '{' on line 32
.Re: ooBase Form Event Listener
Any reason why you do not use the script events on the form's event tab?
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: ooBase Form Event Listener
I'm trying to find out the sequence in which all events in my database will fire as an aid to building an application.
By using event listeners, I hope to save creating a handler for every single event.
By using event listeners, I hope to save creating a handler for every single event.

OpenOffice 4.16 on Windows 10
Re: ooBase Form Event Listener
Forget it. This is not how Base works. This is not a database development suite.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice