[Libreoffice-bugs] [Bug 107839] New: BeforeUpdating and AfterUpdating events are not firing when records are edited in a Table Control
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun May 14 05:08:25 UTC 2017
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 at lists.freedesktop.org
Reporter: BridgeportContractor at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170514/99f4659a/attachment.html>
More information about the Libreoffice-bugs
mailing list