Home
Analytics
Change datasource of .rptDocument at runtime
steven.peeters
<p>Hi,</p>
<p> </p>
<p>i'm currently building a Birt-server in Java using multi-threaded socket-based communication with separate run and render tasks.</p>
<p> </p>
<p>My question: is it possible to change the datasource of a .rptDocument at runtime?; An XML-datasource to be more specific... The XML-datasource structure is always the same, but the data is different.</p>
<p> </p>
<p>Why do I ask? it seems that creating the rptDocument takes by far the longest time in the process. (The cause for this might be that my rptDesigns are very complex)</p>
<p>So is it possible to keep the .rptDocument open at all times and just feed it different XML-Data?</p>
<p> </p>
<p>Kind regards,</p>
<p> </p>
<p>Steven</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
Find more posts tagged with
Magellan BI & Reporting
Comments
JFreeman
<p>I'm not sure there is a way to do this. The rptdocument is generated with all of the data included directly in the rptdocument so it can be opened without needing a connection to the data source. Additionally changes to the data could mean differences in the pagination, layout, etc. which means the whole thing will essentially need to be re-rendered anyways.</p>
<p> </p>
<p>I think the better approach is to investigate the performance difference of generating an rptdocument versus other output formats such as PDF/HTML.</p>