Jump to content
  • Hide 'Save Ad Hoc View As...' in Ad Hoc View Editor for Read Only Permission


    bnee_1
    • Features: Ad Hoc Version: v5.5 Product: JasperReports® Server

    Issue Description:

    How can we hide the "Save Ad Hoc View As..." option from users that have Read Only permission for that Ad Hoc View?


    Resolution:

    If you give a user role Read Only access to an Ad Hoc View, users of that role type can't choose "Save Ad Hoc View" or "Save Ad Hoc View and Create Report." However, they can select "Save Ad Hoc View As..." If you want to disable "Save Ad Hoc View As..." as an option for those users, you will need to modify these 4 files:

    1. WEB-INF/actionModel-adhocChart.xml
    2. WEB-INF/actionModel-adhocCrosstab.xml
    3. WEB-INF/actionModel-adhocIntelligentChart.xml
    4. WEB-INF/actionModel-adhocTable.xml

    Replace this line:

    <simpleAction labelKey="ADH_037_MENU_SAVE_REPORT_AS" action="designerBase.handleSaveAs"/>
    

    with these lines:

    <condition test="getIsNotWritable">
        <simpleAction labelKey="ADH_037_MENU_SAVE_REPORT_AS" disabled="disabled"/>
    </condition>
    <condition test="getIsWritable">
        <simpleAction labelKey="ADH_037_MENU_SAVE_REPORT_AS" action="designerBase.handleSaveAs"/>
    </condition>
    

    Save the xml files and restart the server.


    Ref. Case #00047764


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...