Re: Export-import SRB report

Sergio Corato <[email protected]> Thu, 14 Jan 2010 01:13:18 +0100
Newsgroups gmane.comp.openoffice.dba.user
Message-ID <[email protected]>
Ocke Janssen ha scritto:
> Hi Sergio,
>
> I would prefer 3 :-) insert the reportdefinition from db1 into db2. 
> Please have a look at
>
> http://svn.services.openoffice.org/opengrok/xref/Current%20(trunk)/dbaccess/source/ui/misc/UITools.cxx#1816 
>
>
> - get the report definition from the getReportDocuments() from the 
> database doc of db1
> - create a new instance of report defintions from db2 with the report 
> as argument (see code)
> - insert new created instance into db2 report documents
>
>
> - oj
>
Well, it's not very clear to me  ;-) (OOoBasic and some Python user), 
something like Turkish,  but it's a good point to start!

Is the report definition:
oDb = oContext.getByName(HIDB)
oDatabase = oDb.DatabaseDocument
oReportDefinition = 
oDatabase.getReportDocuments.getByName("Rapporto1").getComponent.Detail.ReportDefinition
?

Thx
Sergio