I have created a form in LibreOffice Base. Some form fields need to be manipulated each time I change to another record.
For example there’s a field that holds the name of an image. When the record is shown, this name is used to display this image at true size in another field. I have a python macro that is connected to the “After Record Update” event for this.
It works well, except when the form is first loaded. When loading the form the “After Record Update” event is not triggered for the initial record to show. Looking at the form’s available events I thought perhaps to attach the same code to the “When Loading” event. This fails however because at that stage the form’s DrawPage is not yet available so I can’t go in and edit form controls.
So I’m a bit at a loss here. What event should I listen for to be able to change form controls right after the form has loaded ?