Build DataSource from code - without external resources? [message #759066] |
Fri, 25 November 2011 16:53  |
Eclipse User |
|
|
|
I would like to build a datasource from code that does not have any
reference to any external resources on the filesystem, eg. flatfile,
xmlfile, database etc.
As an example a xml datasource can be build like this:
OdaDataSourceHandle dataSourceHandle =
elementFactory.newOdaDataSource(dataSourceName,
org.eclipse.birt.report.data.oda.xml");
dataSourceHandle.setProperty("FILELIST", dataSourceFile);
But how do I build a datasource as a pojo without any reference to external
resources? I have tried:
ElementFactory elementFactory = report.getElementFactory();
OdaDataSourceHandle dataSourceHandle =
elementFactory.newOdaDataSource(dataSourceName);
but how do I populate it with some content that I can next connect a dataset
to? Maybe there are some examples showing how this can be done?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05477 seconds