[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [birt-report-designer-dev] OdaDataSetHandle ref for existing.rptdesign template

ReportDesignHandle.findDataSet(datasetname);

Or you can get the dataset list:
ReportDesignHandle.getDataSets();

Thanks!

-----Original Message-----
From: birt-report-designer-dev-bounces@xxxxxxxxxxx
[mailto:birt-report-designer-dev-bounces@xxxxxxxxxxx] On Behalf Of Tom
Corcoran
Sent: Thursday, May 29, 2008 4:22 PM
To: birt-report-designer-dev@xxxxxxxxxxx
Subject: [birt-report-designer-dev] OdaDataSetHandle ref for
existing.rptdesign template


Starting with a .rptdesign template I am looking to manipulate this at
runtime to run against a number of databases.

http://dev.eclipse.org/newslists/news.eclipse.birt/msg20490.html
outlines doing		
OdaDataSetHandle dsHandle = designFactory.newOdaDataSet( "ds",
	
"org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" );
I could then point odaURL to the new database, using:
		dsHandle.setProperty( "odaURL",
"jdbc:classicmodels:sampledb" );

My question is how can I get an instance of OdaDataSetHandle for
existing
.rptdesign rather than create a new one?

-- 
View this message in context:
http://www.nabble.com/OdaDataSetHandle-ref-for-existing-.rptdesign-templ
ate-tp17517667p17517667.html
Sent from the Eclipse BIRT - Report Designer - Dev mailing list archive
at Nabble.com.

_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev