<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 - Base form created using the UNO API is not editable"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132444">132444</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Base form created using the UNO API is not editable
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.3.5.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>normal
          </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>prrvchr@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=159978" name="attach_159978" title="biblio database with a non-editable form smtpMailerOOo">attachment 159978</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=159978&action=edit" title="biblio database with a non-editable form smtpMailerOOo">[details]</a></span>
biblio database with a non-editable form smtpMailerOOo

It seems that a Base form created using the API is not editable, it appears to
be a Draw document instead of a Write document.

You will find a copy of such a form in the attached biblio database (the form
called smtpMailerOOo) and will be able to see that the properties of the form
cannot be modified in Base even by choosing edit instead of open...

This form was created with the extension smtpMailerOOo
(<a href="https://github.com/prrvchr/smtpMailerOOo">https://github.com/prrvchr/smtpMailerOOo</a>) under python with the following
code:

<span class="quote">>    def _getForm(self, create, name='smtpMailerOOo'):
>        forms = self._database.DatabaseDocument.getFormDocuments()
>        if forms.hasByName(name):
>            form = forms.getByName(name)
>        elif create:
>            form = self._createForm(forms, name)
>        else:
>            return None, None
>        args = getPropertyValueSet({'ActiveConnection': self.Connection,
>                                    'OpenMode': 'openDesign',
>                                    'Hidden': True})
>        doc = forms.loadComponentFromURL(name, '', 0, args)
>        return doc, form</span >

<span class="quote">>    def _createForm(self, forms, name):
>        service = 'com.sun.star.sdb.DocumentDefinition'
>        args = getPropertyValueSet({'Name': name,
>                                    'ActiveConnection': self.Connection})
>        form = forms.createInstanceWithArguments(service, args)
>        forms.insertByName(name, form)
>        form = forms.getByName(name)
>        return form</span >

Form creation is done without problem under OpenOffice 4.1x and 4.2.</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>