<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Dropdown list disabled in Form if no primary key defined in data model"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=141016">141016</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Dropdown list disabled in Form if no primary key defined in data model
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Base
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>frank.derville@orange.fr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When creating a form with a dropdown list, my data (stored in MySQL database)
had no primary key defined (nor foreign key). I was able to create the dropdown
list. But when I used the form the list was empty and disabled. There was no
error message.

Expected behavior : have an error message saying the a primary key should be
defined on which field of which table.

Steps to Reproduce:
1. Create 2 tables with a common field but do not declare primary key
2. Create a form with first table
3. Add a dropdown list from the second table
4. See the result in Display mode

Actual Results:
The dropdown list is empty and disabled in the form

Expected Results:
An error message that helps identifying the issue and not lose time


Reproducible: Always


User Profile Reset: No



Additional Info:
When creating the dropdown list there should have been an error message</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>