[ https://issues.apache.org/jira/browse/OFBIZ-2347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770038#action_12770038 ]
chris snow commented on OFBIZ-2347: ----------------------------------- I am having a problem passing parameters to a report: message ERROR rendering error page [/error/error.jsp], but here is the error text: org.eclipse.birt.report.engine.api.impl.ParameterValidationException: Required parameter rpStockRef is not set. description The server encountered an internal error (ERROR rendering error page [/error/error.jsp], but here is the error text: org.eclipse.birt.report.engine.api.impl.ParameterValidationException: Required parameter rpStockRef is not set.) that prevented it from fulfilling this request. rpStockRef is the report parameter defined in the report. This is my form: <form name="Report1" type="single" target="Report1Action" default-map-name="listName"> <field name="stockRef"><text-find size="10"/></field> <field name=" "><display/></field> <field name="showReport" title=" "> <hyperlink target="Report1Action" description="Display as pdf in new tab" target-window="new"/> </field> <field name="Submit"><submit/></field> </form> The controller: <request-map uri="Report1Action"> <security https="true" auth="true"/> <event type="service" path="org.ofbiz.snows.snows.snowsServices" invoke="Report1Action"/> <response name="success" type="view" value="Report1Action"/> </request-map> <view-map name="Report1Action" type="birt" page="component://snows/reports/collection_list.rptdesign" content-type="application/pdf"/> This works without the service and manadatory parameters on the report. This is the service: <service name="Report1Action" engine="simple" location="org/ofbiz/snows/snows/snowsServices.xml" invoke="Report1Action"> <description>Report1Action</description> <attribute name="birtParameters" type="Map" mode="OUT"/> </service> <simple-method method-name="Report1Action" short-description="Report1Action"> <set field="birtParameters.rpStockRef" value="5199A"/> <field-to-result field="birtParameters"/> </simple-method> Note that I have hard coded the field value initally. I tried it with the mode set as IN, OUT and INOUT. > BIRT Component > -------------- > > Key: OFBIZ-2347 > URL: https://issues.apache.org/jira/browse/OFBIZ-2347 > Project: OFBiz > Issue Type: New Feature > Affects Versions: SVN trunk > Environment: software > Reporter: Chatree Srichart > Assignee: Hans Bakker > Fix For: SVN trunk > > Attachments: birt.zip, birtfiles.txt > > > I have component for use Eclipse BIRT as report builder. > Features: > 1. BIRT View Handler > 2. BIRT Email Service > I hope contributers contribute it to trunk. > INSTALLATION > 1. download birt.zip from attachment file > 2. extract birt.zip > 3. copy birt folder to hot-deploy folder > 4. download Eclipse BIRT runtime from > http://download.eclipse.org/birt/downloads/ > 5. extract birt-runtime-x_x_x.zip > 6. copy all jar file from birt-runtime-x_x_x/ReportEngine/lib folder to > hot-deploy/birt/lib folder > 7. change birt.engine.home property in hot-deploy/birt/config/birt.properties > to your ReportEngine path in birt-runtime_x_x_x folder > 8. add birt-container in ofbiz-container.xml file after beanshell-container > container like this > <container name="birt-container" > class="org.ofbiz.birt.container.BirtContainer"> > <property name="delegator-name" value="default"/> > <property name="dispatcher-name" value="birt-dispatcher"/> > <property name="delegator-group-helper-name" value="org.ofbiz"/> > </container> > 9. compile birt component > 10. start ofbiz > ** I have use birt-runtime version 2.3.1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.