EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB225292: How to Remove the Word ‘Metrics’ from Specific Reports Using MicroStrategy Web SDK


Community Admin

• Strategy


SUMMARY: By default, Strategy Web shows the word 'Metrics' in a report template. When it is viewed in Strategy Web, it appears as shown in the following screenshot:
 

ka04W000000OdXhQAK_0EM440000002GQi.jpeg

This column can be hidden with for specific reports only using Strategy Web SDK as shown below:
 

ka04W000000OdXhQAK_0EM440000002GQm.jpeg

 
Follow these steps to create this customization:

  • In the Web Customization Editor, navigate to Application Settings > Styles > ReportGridStyle
  • Right-click the style to create a duplicate and called it ReportGridStyle2 as shown below:
ka04W000000OdXhQAK_0EM440000002GQo.jpeg
  • Double-click to open the copied style in the editor
  • Navigate to the Style Parameters section
  • Add a new Actual Parameter "hideMetricsLabel" to the Style as shown below:
ka04W000000OdXhQAK_0EM440000002GQq.jpeg
  • After adding the parameter, change its value to "TRUE" as shown below:
ka04W000000OdXhQAK_0EM440000002GQw.jpeg
  • Next, create the file "visualizations.xml" under <Plugin name>/WEB-INF/xml/config/. If any folders in this path do not exist, they will need to be created manually as well.
  • Open the xml file created in the previous step in a text editor and add the following content to it:
    
    <visualizations>
      <visualization-list name="ajax">
         <visualization desc="Displays the Report Grid without the Metrics label" style-name="ReportGridStyle2" scope="1" />
      </visualization-list>
    </visualizations>

     
  • Restart the application server to apply the change.

Follow these steps to apply the customization to the web environment:

  • Once the server has been restarted, log on to Strategy Web and make sure the visualizations editor has been enabled by going to 'Preferences' > 'Project Defaults' > 'General' section and checking the check box next to 'Enable Custom Visualizations Editor' as shown below:

ka04W000000OdXhQAK_0EM440000002GQk.jpeg
  •  Run a report where the 'Metrics' label should be hidden. Then, go to Tools> 'Custom Visualizations' as shown below:
ka04W000000OdXhQAK_0EM440000002GQg.jpeg
  • When the Custom Visualizations editor displays, check the box next to 'Enable this report to use custom Visualizations'. Select the style added from a previous step, then click OK as shown below:
ka04W000000OdXhQAK_0EM440000002GQQ.jpeg
  • The report now displays without the word 'Metrics' as shown above. Save the report in order to keep the changes.  

 
Code Customization:
WARNING:
This customization is provided as a convenience to Strategy users and is only directly applicable to the version stated. While this code may apply to other releases directly, Strategy Technical Support makes no guarantees that the code provided will apply to any future or previous builds. In the event of a code change in future builds, Strategy Technical Support makes no guarantee that an updated version of this particular customization will be provided. In the event of a code change in future builds, Strategy may not be able to provide additional code on this matter even though this customization is provided at this time for this specific build. For enhancements to this customization or to incorporate similar functionality into other versions, contact your Account Executive to inquire about Strategy Consulting assistance.
 


Comment

0 comments

Details

Knowledge Article

Published:

June 21, 2017

Last Updated:

June 21, 2017