Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
ResourceLocator / IreportdesignSource
Migrateduser
<p>Hello,</p>
<p> </p>
<p>when starting up birt, I can set an IResourceLocator to the EngineConfig when calling Platform.startup and getting Reportengine. I reuse the IReportEngine for every RenderTask.</p>
<p>In the IResourceLocator I have implemented a special Resource loading for my purpose.</p>
<p>I need to parametrized this IReportDesignSource for every RenderTask.</p>
<p>Is it possible to set a IResourceLocator for every RenderTask? Or is there a way to pass parameters to the rendertask which I can lookup in the IResourceLocator?</p>
<p> </p>
<p>sample; (reduce to the min.)</p>
<pre class="_prettyXprint">
IResourceLocator locator = new (...)
EngineConfig config = new EngineConfig();
config.setResourceLocator(locator);
Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
IReportEngine repEngine = factory.createReportEngine(config);
[...]
IReportRunnable repRunnable = engine.openReportDesign( Reportdesign as ByteArray );
IRunAndRenderTask task = engine.createRunAndRenderTask( repRunable );
[...]
task.run()
</pre>
Find more posts tagged with
Comments
There are no comments yet