<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - CurrentValue Returns Wrong Value in Base - Different from OOo"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118824#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - CurrentValue Returns Wrong Value in Base - Different from OOo"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118824">bug 118824</a>
              from <span class="vcard"><a class="email" href="mailto:robert@familiegrosskopf.de" title="robert@familiegrosskopf.de">robert@familiegrosskopf.de</a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>