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

--- Comment #14 from [email protected] ---
Not the triggers for the ListBoxes are the problem, but only the form's trigger
which shall trigger the macro before the record will be changed. I mean two
things:

I have seen, that the macro fires two times, one event source is
'com.sun.star.comp.forms.ODatabaseForm' and another is
'org.openoffice.comp.svx.FormController'. And it is described in the
Base-Handbuch for LO 4.4 (p. 141 - 142), that already the opening of the form
is such a changing-the-record-event (ok, I think, I must accept this). But it
is not so easy to understand, why the macro should fire, if the mouse pointer
hovers over the change button after the record was changed, because the
semantics of this event mean 'before changing record'.

If I use the event 'while loading' to trigger the macro, then the ListBoxes are
correctly initialized and have content (CurrentValues are not empty), so that
the SQL query of the example does not fail. But if I use the event 'before
changing record' as trigger, it seems, that the ListBoxes are not yet
initialized and the CurrentValue attributes are still empty, if the macro fires
at first time. In the earlier version of Base (LO 4.0) this causes not an
error, because the CurrentValue attribute of the ListBox contains only an empty
string. Now (LO 4.4) it should contain a number, but it is empty and contains
nothing. 

I have used the If-then-contruct to filter the right event source and it works,
but in my opinion this is a workaround, because the semantics of this event
trigger are not clear for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to