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)
Select one of multiple emitters of the same type?
ebirkenes
Hi.
I'm using the Web Viewer to render reports. I have two Excel emitters installed, the standard one and the Tribix emitter.
Is there any way to select at runtime which emitter to use? Either by a script in the report or by a URL parameter or something like that? I want one specific report to use the standard emitter and the others to use the Tribix emitter.
I've tried modifying emitterID in RenderOption in a script like this:
reportContext.getRenderOption().setOption("emitterID", "org.eclipse.birt.report.engine.emitter.prototype.excel");
but it has no effect.
-- EB
Find more posts tagged with
Comments
johnw
You pretty much nailed it. You specify an output format in the RenderOption. That output format has to match a emitter ID that is specified in the plug-in ID of the emitter. So, for example, the HTML emitter uses a emitter ID of "HTML", the PDF uses a type of "PDF", ect. Usually, when I write emitters, I use custom ones, such as "MyHTMLEmitter" instead of a generic extension so there is no mix up. Make sure you are using the generic RenderOption class, not the sub-class of HTMLRenderOption or anything like that. And make sure that the Tribix emitter doesn't use the same "XLS" ID as the standard one.