Hello everyone,
I'm new on macros and I'm trying to update a form after change in Listbox, it works with a button with associated action of "Update form"
but I can't find the equivalent macro to associate with the listbox.
I've search on the macro's library (macros in FormWizard) but without results...
Thanks in advance
[Solved] Equivalent macro to Update or refresh form
[Solved] Equivalent macro to Update or refresh form
Last edited by xeski on Mon Dec 24, 2018 2:37 am, edited 1 time in total.
Libreoffice 6.0.6.2 on Windows 7
Re: Equivalent macro to Update or refresh form
Hi!
Something like this?
Bye!
Something like this?
Code: Select all
oForm=Event.Source
If oForm.isNew then
oForm.insertRow
Else
oForm.UpdateRow
End if
OpenOffice 4.1.5 on Windows 10
LibreOffice 5.1 on Windows 7
LibreOffice 6.0.1 on Windows10
LibreOffice 5.1 on Windows 7
LibreOffice 6.0.1 on Windows10
Re: Equivalent macro to Update or refresh form
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