Dňa Po 22. Január 2007 17:59 Juraj Trenkler napísal:
> Dňa Po 22. Január 2007 10:28 Manolis Christodoulou napísal:
> > P.S.
> > Is this me, or UNO lacks good documentation. It seems like I need a PhD
> > even for simple tasks...
> >
> :-)
>
> That is my feeling too.
>
> Maybe this could help you as it helped me.
> http://www.oooforum.org/forum/viewtopic.phtml?t=29084&highlight=duplicate+f
>orm&sid=c8d898f84647c4b950cbae4ebc0c0a44
>
I did it (maybe from another source that I have given you) this way
Sub OpenFormPatient
oContexto = CreateUnoService("com.sun.star.sdb.DatabaseContext")
oFonte = oContexto.getRegisteredObject("lefantovce")
REM lefantovce is the name of my odb file
oForms = oFonte.DatabaseDocument.FormDocuments
oAConnection = oFonte.getConnection("","")
Dim pProp(1) As New com.sun.star.beans.PropertyValue
pProp(0).Name = "ActiveConnection"
pProp(0).Value = oAConnection
pProp(1).Name = "OpenMode"
pProp(1).Value = "open"
oForm = oForms.loadComponentFromURL("patient", "_blank", 0, pProp())
REM patient is name of the form
End Sub
I must admit I do not understand everything of the code but it works :-)
My problem is that I want to open the form "patient " to insert new RowSet
with data from another macro. I do not know how to "transfer" my variables to
this form.
OpenOffice Base is funny. :-))
juraj
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]