jeanpierrepolnareff91 Posted November 3, 2021 Share Posted November 3, 2021 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 :/sites/default/files/user_uploads/jeanpierrepolnareff91/jasper_com_question_customize_jasper_ui.pngDo you have any idea to solve my problem ?Thanks for your attention,Jean-pierre Link to comment Share on other sites More sharing options...
Solution yama818 Posted November 7, 2021 Solution Share Posted November 7, 2021 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 Themeshttps://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. Link to comment Share on other sites More sharing options...
jeanpierrepolnareff91 Posted November 8, 2021 Author Share Posted November 8, 2021 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 loginif 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 : Link to comment Share on other sites More sharing options...
Recommended Posts
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