I have 3 Forms:
-Formulario Factura
-Formulario VerFacturas
-Formulario Anyo
The first one is Anyo that has a button to open the form "Formulario VerFacturas", but when I click on the button to open the form, it opens on new window, and the same happends when I try to open the next form (Formulario Factura).
And my question is: How can i do to form.open in the same window.
One example of my code that does this:
Code: Select all
Sub VerFacturasDeAnyo (event as Object)
Dim Doc As Object
Dim Controller As Object
Dim oLbanyoLBCM As Object
'Const sNewDocumentName="Formulario VerFacturas"
Doc = ThisComponent
oForm = Doc.DrawPage.Forms.GetByIndex(0)
oLbanyo = oForm.getByName ( "lb_anyo" )
Controller = ThisComponent.getCurrentController()
oLbanyoLBCM = Controller.getControl(oLbanyo)
sAnyoselec = oLbanyoLBCM.getSelectedItem()
'MsgBox sAnyoselec
'oNewFormDocument=ThisDatabaseDocument.FormDocuments.getbyname(sNewDocumentName).open
ThisDatabaseDocument.FormDocuments.GetByName("Formulario VerFacturas").Open 'I tried the commented lines and this, but both do the same.
End Sub
and what I really want is this: "target='_self'"
Thanks for helping!!!