Customize Jasper server interface (repository menu)

Hello everyone,

I want to customize my jasper server interface to hide / disable some buttons in the repository menu.

I have already hide some options when I right-click on a ressource (copy and schedule) but I don't know how to hide / disable action buttons on top of the page :

Do you have any idea to solve my problem ?

Thanks for your attention,

Jean-pierre

jeanpierrepolnareff91's picture
Joined: May 22 2019 - 1:10am
Last seen: 7 months 3 weeks ago

2 Answers:

If you simply want to hide it permanently, I think you can do it with 'overrides_custom.css' using the theme file.

Changing the UI With Themes
https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v790/changing-ui-themes
  -->Hiding UI Elements
     https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v790/hiding-ui-elements

- Default theme is enabled.


- Image of the display when the custom theme is enabled (copy is hidden)

 

- Example of 'overrides_custom.css' in the above example (Not guaranteed to work. It may affect other items as well)

#copy {
  display:none;
}


I hope this is useful to you.

yama818's picture
6449
Joined: Aug 17 2018 - 3:48pm
Last seen: 3 weeks 4 days ago

Thanks for your answer yama !

I managed to hide the copy button in a specific theme which I called "no_copy_theme" and I redirect the user to this theme during his login

if he have the role "ROLE_USER" and not "ROLE_ADMINISTRATOR" (modified WEB-INF/jasperserver-servlet-pro.xml)  :

EDIT : I found a method to hide items of the repository menu based on roles (ROLE_ADMINISTRATOR, ROLE_USER, ...) 

You need to modify the "WEB-INF/jsp/templates/container.jsp" file and replace the content of the subheader to only keep what you need.

Here, I have replace the copy button by "nothing" to delete it :

jeanpierrepolnareff91's picture
Joined: May 22 2019 - 1:10am
Last seen: 7 months 3 weeks ago
Feedback
randomness