title: libreoffice base macro parametric open close get current form name
body: <p>libreoffice Base 4.3.3.2
  Opening a Form page by name and then close the current page form like this work: </p>
  
  <pre><code>oForm = ThisDatabaseDocument.FormDocuments.getByName("SecondForm") 
  oForm.Open 
  oFormC = ThisDatabaseDocument.FormDocuments.getByName("CurrentForm") 
  oFormC.Close 
  </code></pre>
  
  <p>but is there a way to close oFormC without writing by hand his name?</p>
  
  <p>trying with:</p>
  
  <pre><code>    oFormC = Event.Source.Model.Parent
      oFormC  = ThisDatabaseDocument.FormDocuments.getByName(Event.Source.Model.Parent) 
  oFormC = getParent()
  </code></pre>
  
  <p>return an error of var not set</p>
  
  <p>Can't find any help in documentation. </p>