[Solved] Equivalent macro to Update or refresh form

Discuss the database features
Post Reply
xeski
Posts: 2
Joined: Sat Dec 08, 2018 11:31 am

[Solved] Equivalent macro to Update or refresh form

Post by xeski »

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
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
longi
Posts: 110
Joined: Mon Jul 15, 2013 5:04 pm

Re: Equivalent macro to Update or refresh form

Post by longi »

Hi!

Something like this?

Code: Select all

    oForm=Event.Source
    If oForm.isNew then
    oForm.insertRow
    Else
    oForm.UpdateRow
    End if
Bye! ;)
OpenOffice 4.1.5 on Windows 10
LibreOffice 5.1 on Windows 7
LibreOffice 6.0.1 on Windows10
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Equivalent macro to Update or refresh form

Post by Villeroy »

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
Post Reply