On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
Set a XML DataSource programmatically
Mikey
Junior Member
Hello World,<br />
<br />
Here is what I am trying to do:-<br />
<br />
I have created a report called test.rptdesign. I have specified a XSD file as the datasource of my report and the report's dataset contains the elements in the XSD schema.<br />
<br />
right, now I am want to invoke this report programmatically. I have a Java Object that I have converted to XML (using JAXB) and I now want to set the XML as the datasource for this report at runtime. <br />
<br />
ie., While design time, I have specified a XSD schema as my datasource, but while run time I want the report to point to a XML file. Makes sense? How would I go about doing this?<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
String xmlString = "<application>.................</application>";
ReportDesignHandle reportDesignHandle = (ReportDesignHandle)design.getDesignHandle();
SlotHandle dataSets = reportDesignHandle.getDataSets();
</pre>
<br />
How can set the xmlString as my dataSource? Any ideas / pointers?<br />
<br />
Regards,<br />
Mikey
<br />
Here is what I am trying to do:-<br />
<br />
I have created a report called test.rptdesign. I have specified a XSD file as the datasource of my report and the report's dataset contains the elements in the XSD schema.<br />
<br />
right, now I am want to invoke this report programmatically. I have a Java Object that I have converted to XML (using JAXB) and I now want to set the XML as the datasource for this report at runtime. <br />
<br />
ie., While design time, I have specified a XSD schema as my datasource, but while run time I want the report to point to a XML file. Makes sense? How would I go about doing this?<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
String xmlString = "<application>.................</application>";
ReportDesignHandle reportDesignHandle = (ReportDesignHandle)design.getDesignHandle();
SlotHandle dataSets = reportDesignHandle.getDataSets();
</pre>
<br />
How can set the xmlString as my dataSource? Any ideas / pointers?<br />
<br />
Regards,<br />
Mikey
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax