Scenario:
You want to remove the "Home" button from the TIBCO JasperReports® Server UI or show it only to certain users. How to do that?
Solution:
The button display conditions are speficied in the file {JRS WAR}/WEB-INF/actionModel-navigation.xml. You will need to edit the file and locate the following line:
<context name="main_home_mutton"/>
To add a condition to the button, add checkAuthenticationRoles" testArgs="ROLE_ID" inline of the tag. For example:
<context name="main_home_mutton" test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR"/>
If you surround the mutton with the condition like this:
<condition test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR"> <context name="main_home_mutton"/> </condition>
It will show an error for users when logging in. You will need to restart the server after making the change
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now