Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Set a XML DataSource Programmatically
Set a XML DataSource Programmatically [message #342625] Tue, 29 January 2008 08:57
Eclipse UserFriend
Originally posted by: pari.gandhi.gmail.com

Hello World,

Here is what I am trying to do:-

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.

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.

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?


String xmlString = "<application>.................</application>";
ReportDesignHandle reportDesignHandle = 
(ReportDesignHandle)design.getDesignHandle();
    SlotHandle dataSets = reportDesignHandle.getDataSets();



How can set the xmlString as my dataSource? Any ideas / pointers?

Regards,
Mikey
Previous Topic:Set a XML DataSource Programmatically
Next Topic:Set a XML DataSource Programmatically
Goto Forum:
  


Current Time: Sun May 05 10:54:06 GMT 2024

Powered by FUDForum. Page generated in 0.02923 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top