Jump to content
We've recently updated our Privacy Statement, available here ×
  • Need to Hide 'View As Tree' Button


    okyrychenko
    • Features: JasperReports Server, User Interface Version: v6.0.1 Product: JasperReports® Server

    Issue Description

    We need to hide the "view as tree" button in ad-hoc view creation - "Select Data" Page. We are OK if both of the "View as Tree" and "View as List" buttons are hidden.

    [toc]

    Resolution

    You hide it by changing the files <jasperserver-pro>scriptsadhocdatachoosertemplatedatachooserTabTemplate.htm and <jasperserver-pro>optimized-scriptsadhocdatachoosertemplatedatachooserTabTemplate.htm

    to this:

    <button class="button {{= additionalCssClasses }}{{ if (exposeAction) { }} {{= action}} {{ } }} up" 
            style="{{ if(action === 'tree') { }} {{= 'display: none;' }} {{ } }}"
            title="{{ if(action === 'list') { }} {{= i18n.ADH_108_DATA_CHOOSER_LIST_TAB_TOOLTIP }} {{ } else { }} {{= i18n.ADH_108_DATA_CHOOSER_FOLDERS_TAB_TOOLTIP }} {{ } }}">
        <span class="wrap">{{= label }}</span>
    </button>
    

    If you want to hide both buttons, change it to this:

    <button class="button {{= additionalCssClasses }}{{ if (exposeAction) { }} {{= action}} {{ } }} up"
            style="display: none;"
            title="{{ if(action === 'list') { }} {{= i18n.ADH_108_DATA_CHOOSER_LIST_TAB_TOOLTIP }} {{ } else { }} {{= i18n.ADH_108_DATA_CHOOSER_FOLDERS_TAB_TOOLTIP }} {{ } }}">
        <span class="wrap">{{= label }}</span>
    </button>
    

    Ref. Case 00060237


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...