https://bugs.documentfoundation.org/show_bug.cgi?id=107839
Bug ID: 107839
Summary: BeforeUpdating and AfterUpdating events are not firing
when records are edited in a Table Control
Product: LibreOffice
Version: 5.2.5.1 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Base
Assignee: libreoffice-bugs@lists.freedesktop.org
Reporter: bridgeportcontrac...@gmail.com
Created attachment 133306
--> https://bugs.documentfoundation.org/attachment.cgi?id=133306&action=edit
Embedded example to demonstrate this issue
In a Table Control, in a Base Form, when a record is edited and then any record
motion occurs (i.e. the cursor is moved up or down a line which saves the
record to the database), I would expect that the BeforeUpdating event would
fire.
Instead BeforeUpdating fires only when the form is closed which isn't right
either.
This is an important event that can be used to ensure records are entered
correctly. (In my case I want to fill an entry with a computed value if it
happens to be null, before the record is saved.)
In the example database provide, the attached .odb will beep the speaker when
the event fires using this Basic code:
Private Sub BeforeUpdating(oEvent As Object)
Beep
End Sub
I can also confirm that the record actually does get changed in a similar form,
in which the form is connected to a MariaDB database. The record gets updated
but no event fires.
The AfterUpdating has a similar issue.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs