MicroStrategy ONE
Using Custom Cell Rendering Classes
The previous topics provided code samples for customizing the cell rendering classes. In this topic, a configuration file is modified to make MicroStrategy Web use your custom classes for rendering the cell contents.
MicroStrategy Web uses gridClasses.properties configuration file (located in WEB-INF/classes/resources) to determine the classes that should be used for rendering the cell contents. Each section of the report grid is mapped to a class. If you create a custom cell rendering class, identify the section of the report grid and set its value to the name of your custom class. To use all the custom classes created (based on the code samples in the previous topics), make the following changes to the gridClasses.properties configuration file using the Web Customization Editor.
MicroStrategy SDK provides a Web Customization Editor that can be used to create a customization plug-in. The following steps guide you in creating the plug-in and deploying it.
-
Enable the Property Files setting from the Show Advanced Options in MicroStrategy Preferences.
-
Click on MicroStrategy Web Configuration inside the Application Settings view to expand the hierarchical tree. The expanded list comprises the different settings that can be modified to perform customizations.
-
Click on Property Files to expand the list of property files used in MicroStrategy Web.
-
Navigate to WEB-INF->classes->resources and double-click on gridClasses.properties to launch the Web Properties Editor.
-
Click the Value field for the property colHeader and update the entry to com.microstrategy.web.app.transforms.CustomReportGridCellColHeaderImpl.
-
Click the Value field for the property colTitle and update the entry to com.microstrategy.web.app.transforms.CustomReportGridCellColTitleImpl.
-
Click the Value field for the property displayCell and update the entry to com.microstrategy.web.app.transforms.CustomReportGridCellImpl.
-
Click the Value field for the property metricValue and update the entry to com.microstrategy.web.app.transforms.CustomReportGridCellMetricValueImpl.
-
Click the Value field for the property rowHeader and update the entry to com.microstrategy.web.app.transforms.CustomReportGridCellRowHeaderImpl.
-
Click the Value field for the property rowTitle and update the entry to com.microstrategy.web.app.transforms.CustomReportGridCellRowTitleImpl.
-
Save your changes.