MicroStrategy ONE

Moving the Page Section on the Report Execution Page that Contains the List of Related Reports from the Left to the Right Side of the Page

You can customize any page in the application by specifying content for the page-sections on that page. The layout of the page-sections on a MicroStrategy Web page is determined by a page-template file. The page-template file to be used for a particular page is specified in the definition of that page in the Page Configuration file. If no page-template file is specified for a particular page, the page-template file for the default page is used.

In this scenario, you will move the Related Reports content on the for the Report Execution page from the left to the right side of the actual report. This customization is implemented even on the page for answering prompts as well as the Wait page. This is accomplished by making the dockRight page-section use the file used by the dockLeft page-section, and keeping the dockLeft page-section empty.

The Related Reports content, which provides a listing of all the reports available in the same folder, is not displayed by default. To make it visible, choose Related Reports from the Tools menu at the top of the screen.

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. Double-click the report (Report Execution) page. 

  5. Click the Template Properties tab at the bottom in the right frame to make changes to the Default page template. 

  6. Right-click the dockLeft page section and select Make section empty

  7. Right-click the dockRight page section and select Choose a new file

  8. Navigate to Report_LeftToolbar in the jsp or asp folder inside your MicroStrategy Web installation folder and click Open

  9. Right-click the dockRight page section and select Edit current file

  10. Click the Yes button in the prompt to edit Report_LeftToolbar.jsp/ascx

  11. Make the following change shown in bold.:

    Before customization:

    <web:scriptlet>

            if(typeof microstrategy != 'undefined') microstrategy.showAccordionWhileWaiting('td_mstrWeb_dockLeft', 'mstrWeb_dockLeft');

    </web:scriptlet>

    After customization

    <web:scriptlet>

            if(typeof microstrategy != 'undefined') microstrategy.showAccordionWhileWaiting('td_mstrWeb_dockRight', 'mstrWeb_dockRight');

    </web:scriptlet>

  12. Save your changes. 

  13. In the same Template Properties tab, select the Processing page template. 

  14. Right-click the dockLeft page section and select Make section empty

  15. Right-click the dockRight page section and select Choose a new file

  16. Navigate to the Report_LeftToolbar.jsp/ascx inside your customization plug-in folder (for example: /plugins/pluginName/jsp/Report_LeftToolbar.jsp  or /plugins/pluginName/asp/Report_LeftToolbar.ascx) and click Open

  17. In the same Template Properties tab, select the Waiting for User page template. 

  18. Right-click the dockLeft page section and select Make section empty

  19. Right-click the dockRight page section and select Choose a new file

  20. Navigate to the Report_LeftToolbar.jsp/ascx inside your customization plug-in folder (for example: /plugins/pluginName/jsp/Report_LeftToolbar.jsp  or /plugins/pluginName/asp/Report_LeftToolbar.ascx) and click Open

  21. Save your changes. 

  22. Navigate to report (Report Execution)->CSS->Customizations.

  23. Right-click reportPage.css and select New Selector

  24. Enter .mstrDockRight in the selector text field and click OK

  25. Right-click .mstrDockRight and select New Property

  26. Enter display and block in the property and value text fields respectively. 

  27. Right-click .mstrDockRight and select New Property

  28. Enter position and relative in the property and value text fields respectively. 

  29. Right-click reportPage.css (under report (Report Execution)->CSS->Customizations) and select New Selector

  30. Enter .mstrDockRight .mstrPanelTitleBar in the selector text field and click OK

  31. Right-click .mstrDockRight .mstrPanelTitleBar and select New Property

  32. Enter position and relative in the property and value text fields respectively. 

  33. Right-click reportPage.css (under report (Report Execution)->CSS->Customizations) and select New Selector

  34. Enter .mstrVerticalDocks .tdDockRight in the selector text field and click OK

  35. Right-click .mstrVerticalDocks .tdDockRight and select New Property

  36. Enter border-left and 1px solid #AAA in the property and value text fields respectively. 

  37. Right-click .mstrVerticalDocks .tdDockRight and select New Property

  38. Enter border and 0px in the property and value text fields respectively. 

  39. Right-click reportPage.css (under report (Report Execution)->CSS->Customizations) and select New Selector

  40. Enter .mstrDockRight .mstrPanelBody in the selector text field and click OK

  41. Right-click .mstrDockRight .mstrPanelBody and select New Property

  42. Enter padding and 0px !important in the property and value text fields respectively. 

  43. Right-click reportPage.css (under report (Report Execution)->CSS->Customizations) and select New Selector

  44. Enter .mstrDockRight .mstrPanelPortrait .body in the selector text field and click OK

  45. Right-click .mstrDockRight .mstrPanelPortrait .body and select New Property

  46. Enter padding and 0px !important in the property and value text fields respectively. 

  47. Right-click reportPage.css (under report (Report Execution)->CSS->Customizations) and select New Selector

  48. Enter .mstrDockRight .mstrPanelTitleBar .mstrPanelTitleButtonBar in the selector text field and click OK

  49. Right-click .mstrDockRight .mstrPanelTitleBar .mstrPanelTitleButtonBar and select New Property

  50. Enter position and absolute in the property and value text fields respectively. 

  51. Right-click .mstrDockRight .mstrPanelTitleBar .mstrPanelTitleButtonBar and select New Property

  52. Enter right and 0px in the property and value text fields respectively. 

  53. Right-click .mstrDockRight .mstrPanelTitleBar .mstrPanelTitleButtonBar and select New Property

  54. Enter top and 0px in the property and value text fields respectively. 

  55. Save your changes. 

  56. Launch MicroStrategy Web to view the customization.

See Also