I am using JasperReports Server 6.4.2. On the Output Options tab of the New Schedule window, I have the following list of output formats:

enter image description here

And I would like to add a checkbox to this form for building a report in .txt format. I uncommented the following line in the \ JasperReports Server \ apache-tomcat \ webapps \ jasperserver \ WEB-INF \ flows \ viewReportBeans.xml file:

<!-- <entry key="txt" value-ref="txtExporterConfiguration"/> --> 

and also uncommented the following lines:

 <!-- <bean class="com.jaspersoft.jasperserver.war.dto.ByteEnum"> <property name="code"> <util:constant static-field="com.jaspersoft.jasperserver.api.engine.scheduling.domain.ReportJob.OUTPUT_FORMAT_TXT"/> </property> <property name="labelMessage"> <value>report.output.txt.label</value> </property> </bean> --> 

in the file \ JasperReports Server \ apache-tomcat \ webapps \ jasperserver \ WEB-INF \ flows \ reportJobBeans.xml . After that, I rebooted the server, but nothing has changed - the "Formats" form remains the same. How to add the "Text only" checkbox to this form to build a report in .txt format?

    1 answer 1

    Finally I found instructions on how to do this. The steps I missed are: editing the \ JasperReports Server \ apache-tomcat \ webapps \ jasperserver \ scripts \ scheduler \ view \ editor \ outputTabView.js file and disabling the javascript.optimize property in the WEB-INF \ js.config.properties file . After these actions, the "TXT" checkbox finally appeared on the form:

    enter image description here