Hide new report, analysis view, manage content button in Pentaho User console




If you want to hide Buttons for New Report analysis view , Manage Content then make changes as below.

Before changes :-


Step -1 ) go to biserver-ce\tomcat\webapps\pentaho\mantle\launch\launch.jsp

Step -2 ) commented following code in launch.jsp (from line number 397 to 418 )

List buttonIds = new ArrayList();
buttonIds.add("launch_new_report"); //$NON-NLS-1$
buttonIds.add("launch_new_analysis"); //$NON-NLS-1$
buttonIds.add("manage_content"); //$NON-NLS-1$

ButtonInfo newReportButton = new ButtonInfo();
newReportButton.buttonCommand = "openWAQR()"; //$NON-NLS-1$
newReportButton.buttonLabel = Messages.getString( "UI.PUC.LAUNCH.NEW_REPORT" ); //$NON-NLS-1$
newReportButton.buttonImage = "images/btn_ql_newreport.png"; //$NON-NLS-1$
buttonOverlays.put(buttonIds.get(0), newReportButton);

ButtonInfo newAnalysisButton = new ButtonInfo();
newAnalysisButton.buttonCommand = "openAnalysis()"; //$NON-NLS-1$
newAnalysisButton.buttonLabel = Messages.getString( "UI.PUC.LAUNCH.NEW_ANALYSIS" ); //$NON-NLS-1$
newAnalysisButton.buttonImage = "images/btn_ql_newanalysis.png"; //$NON-NLS-1$
buttonOverlays.put(buttonIds.get(1), newAnalysisButton);

ButtonInfo launchContentButton = new ButtonInfo();
launchContentButton.buttonCommand = "openManage()"; //$NON-NLS-1$
launchContentButton.buttonLabel = Messages.getString( "UI.PUC.LAUNCH.MANAGE_CONTENT" ); //$NON-NLS-1$
launchContentButton.buttonImage = "images/btn_ql_manage.png"; //$NON-NLS-1$
buttonOverlays.put(buttonIds.get(2), launchContentButton);

Step - 3) remove image tag from below code (line number 497)

td class="ql_icon_bar_left"

img src="images/ql_icon_bar_left.png" width="41" height="147"

Step - 4) remove class tag from below code (line number 500)

td class="ql_icon_bar_middle"

Step - 5) remove image tag from below code (line number 532)

td class="ql_icon_bar_right"

img src="images/ql_icon_bar_right.png" width="41" height="147"


After above successful changes clear cache of your browser and refresh.
Buttons will remove successfully.

After Successfully changes :-


Comments

Popular posts from this blog

Changing the Java VM Memory Limits in Pentaho BI

CAS with Pentaho Community Edition

utf8_general_ci VS utf8_unicode_ci what should we use?