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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 18 14:27:43 UTC 2018


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

            Bug ID: 118824
           Summary: .CurrentValue Returns Wrong Value in Base - Different
                    from OOo
           Product: LibreOffice
           Version: 6.0.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jmadero.dev at gmail.com

Description:
The attached database is a database I'm building pertaining to my book library.
If you open "MyLibrary" and click on the Google looking button next to the
second line dropdown (reads "Orson Scott Card") Google will search for the
AuthorID (12) instead of the actual value in the drop down ("Orson Scott
Card"). OOo works as expected and searches for the actual value in the dropdown
(i.e., the author's name).

Here is the code used in my macro:

Sub GoogleAuthor
   Dim launcher As Object
   Dim aWebPage As String   

      myLibraryForm = ThisComponent.Drawpage.Forms.getByName("MainForm")
      book_author = myLibraryForm.getByName("Author").CurrentValue
      launcher = CreateUnoService("com.sun.star.system.SystemShellExecute")
      aWebPage =
"https://www.google.com/search?source=hp&ei=NUpNW6KJAoritQXXqozYCw&q=Author: "
& book_author
      launcher.execute(aWebPage, "", 0)

End Sub

Steps to Reproduce:
1. Open attached database
2. Open Form Document named "MyLibrary"
3. Click on the Google looking button next to "Orson Scott Card"

Actual Results:
Browser opens and Google searches for "Author: 12".

Expected Results:
Browser should open and search for the actual value in the dropdown which would
be "Author: Orson Scott Card"


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Not an issue in OOo 4.1.5.

-- 
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/20180718/ab5c570c/attachment.html>


More information about the Libreoffice-bugs mailing list