Jump to content
JasperReports Library 7.0 is now available ×
  • How to disable the file attachment in scheduling


    sthomas_3

    Issue Description

    In production we want to disable sending report attachments to users. "Include report files as ZIP attachment" in report output tab while creating schedule.

    Resolution

    Need to edit file

    C:Program FilesApache Software Foundationapache-tomcat-8_4webappsjasperserver-pro621optimized-scriptsbower_componentsjrs-uisrcschedulertemplateeditornotificationsTabTemplate.htm

    Comment below lines:

    <li class="leaf"> 
    <div class="control radio"> 
    <label for="jrsSchedule_resultTypeRadio2" class="wrap"> 
    {{- i18n["report.scheduling.job.edit.includereportfilesasattachments"] }} 
    </label> 
    <input value="asAttachedFiles" type="radio" name="resultSendTypeRadio" id="jrsSchedule_resultTypeRadio2"> 
    </div> 
    </li> 

    But this is inside an optimized script. Hence you have to follow the steps for optimized script which is available in ultimate guide document.

    Ref. Case 00072084


    User Feedback

    Recommended Comments

    We relied on this solution for v7.5.x through v7.9.1, but starting with v8.0.0 the file indicated doesn't exist anymore - in fact the entire tree it was in is gone.

    Any tips on where to look now to disable this functionality?

    Link to comment
    Share on other sites

    hello,

    Just edit jasperserver-prooptimized-scriptsschedulerSchedulerMain.js

    The tree is hidden.

    look for jrsSchedule_resultTypeRadio3 and remove

    nttttttt<li class="leaf">ntttttttt<div class="control radio">nttttttttt<label for="jrsSchedule_resultTypeRadio3" class="wrap">ntttttttttt{{- i18n["report.scheduling.job.edit.includereportfiesaszip"] }}nttttttttt</label>nttttttttt<input value="asAttachedZip" type="radio" name="resultSendTypeRadio" id="jrsSchedule_resultTypeRadio3">ntttttttt</div>nttttttt</li>

    or replace it  with 

    nttttttt<!--li class="leaf">ntttttttt<div class="control radio">nttttttttt<label for="jrsSchedule_resultTypeRadio2" class="wrap">ntttttttttt{{- i18n["report.scheduling.job.edit.includereportfiesaszip"] }}nttttttttt</label>nttttttttt<input value="asAttachedZip" type="radio" name="resultSendTypeRadio" id="jrsSchedule_resultTypeRadio3">ntttttttt</div>nttttttt</li-->

    do the same with jrsSchedule_resultTypeRadio2

    restart the application

     

    this should work

     

    Link to comment
    Share on other sites



    Guest
    This is now closed for further comments

×
×
  • Create New...