MicroStrategy ONE

Adding Custom Toolbar Items

In this scenario, you perform two customizations:

Adding a custom toolbar item that uses existing event and arguments

In the first customization of this scenario, you create a new toolbar item on the Report Execution page. When it is clicked, this new toolbar item opens the Preferences Page displaying the grid-related preferences.

Before customization:

After customization:

This customization can be accomplished using either of the following methods:

Deploying the plug-in provided with MicroStrategy SDK

MicroStrategy SDK provides a plug-in (ZIP file) that can simply be extracted to thepluginsfolder to view the customization in MicroStrategy Web. The following steps guide you in locating the plug-in and deploying it.

  1. Access the plug-in: JSP version or ASP .NET version

  2. Extract the plug-in to the plugins subfolder inside the MicroStrategy Web installation folder.   

  3. Launch MicroStrategy Web to view the customization.

Using the Web Customization Editor to create a plug-in

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. 

  1. Launch the Web Customization Editor

  2. 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. 

  3. Click on Pages to expand the list of pages used in MicroStrategy Web. 

  4. Right-click the report (Report Execution) page and select Toolbars->Add Custom Toolbar Elements. This launches the New Toolbar Element wizard

  5. Check the box for toolbar ReportViewToolbarModel

  6. Click Next

  7. Click Browse to select the icon that will be used for the new toolbar item. 

  8. Enter Open Preferences - Grid Display Section in the text field for Tooltip Description

  9. Select the radio button for An event within MicroStrategy Web

  10. Click Next

  11. To select the event enumeration class, click Browse and enter EnumServletEvents

  12. Select EnumServletEvents from your project and click OK. 

  13. Select  WebEventOpenPreferences from the drop-down menu for Event to trigger when menu element is selected

  14. Click Add in the EventsArguments section. 

  15. Select WebEventArgumentPreferenceGroup from the drop-down menu and click OK

  16. Enter grid in the Argument Value text field. 

  17. Click Next

  18. Click Finish

  19. Launch MicroStrategy Web to view the customization.

Adding a custom toolbar item that accesses pages outside of MicroStrategy Web

In addition to being able to add toolbar items that access functionality in MicroStrategy Web, you can also create toolbar items that access any HTML page or web site. This feature is especially useful if you are embedding MicroStrategy Web in a different application or want to provide links to your company’s web site from within MicroStrategy Web. In the second customization of this scenario, you add a custom toolbar item that will open the search capability of the MicroStrategy Web site.

Before customization:

After customization:

This customization can be accomplished using either of the following methods:

Deploying the plug-in provided with MicroStrategy SDK

MicroStrategy SDK provides a plug-in (ZIP file) that can simply be extracted to thepluginsfolder to view the customization in MicroStrategy Web. The following steps guide you in locating the plug-in and deploying it. 

  1. Access the plug-in: JSP version or ASP .NET version

  2. Extract the plug-in to the plugins subfolder inside the MicroStrategy Web installation folder.   

  3. Launch MicroStrategy Web to view the customization.

Using the Web Customization Editor to create a plug-in

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. 

  1. Launch the Web Customization Editor

  2. 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. 

  3. Click on Pages to expand the list of pages used in MicroStrategy Web. 

  4. Right-click the report (Report Execution) page and select Toolbars->Add Custom Toolbar Elements. This launches the New Toolbar Element wizard

  5. Check the box for toolbar ReportViewToolbarModel

  6. Click Next

  7. Click Browse to select the icon that will be used for the new toolbar item. 

  8. Enter Search MicroStrategy Web Site in the text field for Tooltip Description

  9. Select the radio button for A hyperlink to a different page and enter http://www.microstrategy.com/search/index.asp?search=sdk in the text field next to it. 

  10. Click Next

  11. Click Finish

  12. Launch MicroStrategy Web to view the customization.

See Also