Hi, a quick hint about writing a Xaction who must render a Prpr Report. If you try to use the xaction writing plugin for Eclipse, the xaction probably wont work. Here is the correct xaction, and you should overwrite the xaction with this in Eclipse (changing the prpt name of course):
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Test report in PDF format</title>
<version>1</version>
<logging-level>TRACE</logging-level>
<documentation>
<author>Emmanuel Guiton</author>
<description>Generates a PDF test report.</description>
<help/>
<result-type/>
<icon/>
</documentation>
<inputs/>
<outputs>
<test_report type="content">
<destinations>
<response>content</response>
</destinations>
</test_report>
</outputs>
<resources>
<report-definition>
<solution-file>
<location>test-report.prpt</location>
<mime-type>application/zip</mime-type>
</solution-file>
</report-definition>
</resources>
<actions>
<action-definition>
<component-name>SimpleReportingComponent</component-name>
<action-type>Test report</action-type>
<action-resources>
<report-definition type="resource"/>
</action-resources>
<action-outputs>
<outputstream type="content" mapping="test_report"/>
</action-outputs>
<component-definition>
<outputType><![CDATA[application/pdf]]></outputType>
<useContentRepository><![CDATA[true]]></useContentRepository>
<paginate><![CDATA[false]]></paginate>
</component-definition>
</action-definition>
</actions>
</action-sequence>
Hope this help.
Suscribirse a:
Enviar comentarios (Atom)
3 comentarios:
Thank you Andres.
Can you explain why the xaction creator does not work and yours does?
Regards
crafter
Hi Pradesh, well as I believe it was you who tell me how to fix that I think you'd explain that better....anyway I was looking the XML of the creator:
<response>test_report</response>
And mine:
<response>content</response>
I think that line is the key.
Regards,
Andrés
Is there a Jira issue created for this PDF outputType from xaction? I have the same problem. Your solution is not working for me.
Publicar un comentario