Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to set multiple xml data source by using report engine API?
bitisony
I define two xml data sources in my report design, how can I set these two data sources by using report engine API?
The report design define data source is:
<data-sources>
<oda-data-source extensionID="org.eclipse.datatools.enablement.oda.xml" name="titleDataSource" id="340">
<property name="FILELIST">E:/my project/report branch/rm3/src/shared/common/com/trapeze/appl/shared/intrfc/reports/reporttitle.xml</property>
</oda-data-source>
<oda-data-source extensionID="org.eclipse.datatools.enablement.oda.xml" name="reportDataSource" id="358">
<text-property name="displayName"></text-property>
<property name="FILELIST">C:Documents and SettingsxiaochuanDesktopavailability.xml</property>
</oda-data-source>
</data-sources>
===============================================
The Java code is:
ByteArrayInputStream bis =
new ByteArrayInputStream(xmlData.toString().getBytes("UTF8"));
HashMap contextMap = new HashMap();
contextMap.put("org.eclipse.birt.report.data.oda.xml.inputStream",
bis);
contextMap.put(
"org.eclipse.birt.report.data.oda.xml.closeInputStream",
new Boolean(true));
Thank you very much for your help!
Find more posts tagged with
Comments
rogertu
Currently no way. You can file an enhancement in Bugzilla.