[Libreoffice-bugs] [Bug 118824] CurrentValue Returns Wrong Value in Base - Different from OOo

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 27 09:11:22 UTC 2018


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

--- Comment #3 from robert at familiegrosskopf.de ---
This is a feature, not a bug. There are differences between LO and AOO.
Special:
Since LO 4.1 the current value in listboxes gives the value, which is submitted
to the database.
Since LO 4.1.2 datafields must be read by oField.currentValue.Year ...Month
...Day

You could get the value, which is shown in the listbox, with
--------
SUB Listenfeldanzeige
DIM oDoc AS OBJECT
DIM oForm AS OBJECT
DIM oListbox AS OBJECT
DIM oController AS OBJECT
DIM oView AS OBJECT
oDoc = thisComponent
oForm = oDoc.Drawpage.Forms(0)
oListbox = oForm.getByName("Listenfeld")
oController = oDoc.getCurrentController()
oView = oController.getControl(oListbox)
print "Angezeigter Inhalt: " & oView.SelectedItem
END SUB
--------
Works with LO and AOO.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180727/282747f6/attachment-0001.html>


More information about the Libreoffice-bugs mailing list