https://bugs.documentfoundation.org/show_bug.cgi?id=168941

            Bug ID: 168941
           Summary: com.sun.star.form.XLoadable.reload() failing silently
           Product: LibreOffice
           Version: 25.8.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 203411
  --> https://bugs.documentfoundation.org/attachment.cgi?id=203411&action=edit
Database document with embedded HSQL demo and Basic code

The attached database document includes a form "Filter Data AutoRefresh"
triggering a macro to reload the filtered subform in two different ways:

1. The OK button triggers the macro on form event "After record action",
reloads the filtered subform and pops up a Msgbox.

2. The yellow list box triggers a similar macro on control event "Item status
changed".

Both macros finally call this StarBasic code:
    if hasUnoInterfaces(e, "com.sun.star.form.XLoadable") then
        e.reload()
        Msgbox "Reloaded form "& s

e is the form object, indeed.
s is the name of the form.

The second variant, coming from the control event, shows the Msgbox without
reloading the form actually.

I observe the same behavior with a very similar Python macro.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to