MicroStrategy ONE

Displaying Different Subscription Types on Separate Pages

One of the default links in the menu on the left is a shortcut to the My Subscriptions page. By default, the My Subscriptions page displays a list of subscriptions (History List and Mobile subscriptions) as well as MicroStrategy Distribution Services deliveries (E-mail, File and Print subscriptions).

In this customization scenario, you modify the My Subscriptions page so that only the list of History List and Mobile subscriptions is displayed on the page. You also add a new shortcut to the menu called My Deliveries and create a new My Deliveries page. Clicking the new My Deliveries link opens up the new My Deliveries page, which displays only a list of MicroStrategy Distribution Services deliveries (E-mail, File and Print subscriptions).

Before customization:  My Subscriptions page

After customization:  My Subscriptions page

After customization:  My Deliveries page

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. Create a new plug-in and give it a meaningful name. For example: DisplayingSubsSchedsSepPages

  3. Exit the Web Customization Editor. 

  4. Navigate to the WEB-INF/xml/layouts subfolder inside the MicroStrategy Web installation folder and copy the layout definition file, SubscriptionsLayout.xml

  1. Paste this copy of layout definition file, SubscriptionsLayout.xml, inside your customization plug-in folder (example: plugins\DisplayingSubsSchedsSepPages\WEB-INF\xml\layouts) and rename it as DeliveriesLayout.xml

  2. If the Web Customization Editor is closed, launch it again and access your plug-in

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

  4. Click on Styles to expand the list of styles used in MicroStrategy Web. 

  5. Right-click NCSubscriptionsListStyle and select Duplicate. This creates a duplicate style called CopyOfNCSubscriptionsListStyle that opens in the Style Properties editor in the right frame. 

  6. Right-click CopyOfNCSubscriptionsListStyle and select Rename

  7. Enter DSDeliveriesListStyle in the text field and click OK

  8. Click Style Layouts at the bottom in the right frame.

  9. Click ... and navigate to the custom layout definition file, DeliveriesLayout.xml in the plugins\DisplayingSubsSchedsSepPages\WEB-INF\xml\layouts subfolder inside the MicroStrategy Web installation folder. 

  10. Click Open. The path to the custom layout definition file gets filled in the Layout Definition text field. 

  11. Save your changes. 

  12. Refresh the Application Settings view by clicking the Refresh View icon,

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

  14. Click on Styles to expand the list of styles used in MicroStrategy Web. 

  15. Double-click DSDeliveriesListStyle to open the Style Properties editor in the right frame. 

  16. Click Edit Layout in the Style Properties editor (under Style Layouts tab) to edit the new layout definition file, DeliveriesLayout.xml

  17. Remove the following entire <mstrlayout:if name="isFeatureAvailable"> block of code for History List Subscriptions and Mobile Subscriptions.:

    <mstrlayout:if name="isFeatureAvailable">

       <mstrlayout:argument value="scheduling"/>

       <mstrlayout:then>

         <div class="mstrTitle">

          <mstrlayout:render name="descriptor">

           <mstrlayout:argument type="String" value="mstrWeb.5001"/> <!-- History List Subscriptions -->

          </mstrlayout:render>

          <span class="mstrIcon-inline">

           <mstrlayout:render name="userHelpAnchor">

             <mstrlayout:argument type="String" value="History_List_on_schedule.htm"/>

           </mstrlayout:render>

          </span>

         </div>

       <mstrlayout:render name="subscriptionsByDeliveryMode">

           <mstrlayout:argument type="int" value="16"/>

       </mstrlayout:render>

       </mstrlayout:then>

    </mstrlayout:if>

      

    <mstrlayout:if name="isFeatureAvailable">

       <mstrlayout:argument value="use-mobile"/>

       <mstrlayout:then>

          <div class="mstrTitle">

           <mstrlayout:render name="descriptor">

            <mstrlayout:argument type="String" value="mstrWeb.5002"/> <!-- Mobile Subscriptions -->

           </mstrlayout:render>

           <span class="mstrIcon-inline">

            <mstrlayout:render name="userHelpAnchor">

             <mstrlayout:argument type="String" value="Delivering_reports.htm"/>

            </mstrlayout:render>

           </span>

          </div>

       <mstrlayout:render name="subscriptionsByDeliveryMode">

            <mstrlayout:argument type="int" value="128"/>

       </mstrlayout:render>

       </mstrlayout:then>                        

    </mstrlayout:if>

  18. Save your changes. 

  19. Navigate back to MicroStrategy Web Configuration->Styles

  20. Double-click NCSubscriptionsListStyle to open it in the Style Properties editor. 

  21. Click Style Layouts at the bottom. 

  22. Click Edit Layout in the Style Properties editor (under Style Layouts tab) to edit the layout definition file, SubscriptionsLayout.xml

  23. Click Yes in the prompt. SubscriptionsLayout.xml opens for editing. 

  24. Remove the following entire code for E-mail Subscriptions, File Subscriptions and Print Subscriptions.:

      <div class="mstrTitle">

       <mstrlayout:render name="descriptor">

         <mstrlayout:argument type="String" value="mstrWeb.5003"/> <!-- E-mail Subscriptions -->

       </mstrlayout:render>

       <span class="mstrIcon-inline">

         <mstrlayout:render name="userHelpAnchor">

           <mstrlayout:argument type="String" value="Email_on_schedule.htm"/>

         </mstrlayout:render>

       </span>

      </div>

     <mstrlayout:render name="subscriptionsByDeliveryMode">

       <mstrlayout:argument type="int" value="1"/>

     </mstrlayout:render>

     

      <div class="mstrTitle">

       <mstrlayout:render name="descriptor">

         <mstrlayout:argument type="String" value="mstrWeb.5004"/> <!-- File Subscriptions -->

       </mstrlayout:render>

       <span class="mstrIcon-inline">

        <mstrlayout:render name="userHelpAnchor">

          <mstrlayout:argument type="String" value="Export_on_schedule.htm"/>

        </mstrlayout:render>

       </span>

      </div>

     <mstrlayout:render name="subscriptionsByDeliveryMode">

       <mstrlayout:argument type="int" value="2"/>

     </mstrlayout:render>

     

      <div class="mstrTitle">

       <mstrlayout:render name="descriptor">

         <mstrlayout:argument type="String" value="mstrWeb.5005"/> <!-- Print Subscriptions -->

        </mstrlayout:render>

        <span class="mstrIcon-inline">

         <mstrlayout:render name="userHelpAnchor">

          <mstrlayout:argument type="String" value="Print_on_schedule.htm"/>

         </mstrlayout:render>

        </span>

      </div>

     <mstrlayout:render name="subscriptionsByDeliveryMode">

       <mstrlayout:argument type="int" value="4"/>

     </mstrlayout:render>

  25. Save your changes. 

  26. Navigate to Pages->mySubs (My Subscriptions)

  27. Right-click mySubs (My Subscriptions) and select Duplicate->by making a copy of this page. The copy opens in the Basic Properties editor. 

  28. Enter myDeliveries in the text field for Name

  29. Remove the entry from the text field for Descriptor ID. Keep it blank. 

  30. Enter My Deliveries in the text field for Descriptor

  31. Save your changes. 

  32. Navigate to Beans->allSubscriptions (Type=SubscriptionFolderBean)

  33. Double-click allSubscriptions (Type=SubscriptionFolderBean) to launch the Bean Properties editor. 

  34. Update the value of the initialization property deliveryMode to 7

  35. Click Bean Styles

  36. Click Add below the list of styles available. 

  37. Select DSDeliveriesListStyle and click >>

  38. Click OK

  39. Click the Template Properties tab at the bottom. 

  40. Select allSubscriptions in the Display Components section and click Edit. This launches the Display Web GUI Component Wizard

  41. Click Next

  42. Do not make any changes to the features and click Next

  43. Enter DSDeliveriesListStyle in text field for Style associated to this component

  44. Clear the check box From Preference

  45. Click Next

  46. Click Finish

  47. Save your changes. 

  48. Navigate to Pages->mySubs (My Subscriptions)->Beans->allSubscriptions (Type=SubscriptionFodlerBean)

  49. Double-click allSubscriptions (Type=SubscriptionFodlerBean) to launch the Bean Properties editor. 

  50. Update the value of the initialization property deliveryMode to 144

  51. Save your changes. 

  52. Navigate to Pages->-1 (Default Page)

  53. Double-click the -1 (Default Page) page to launch the Basic Properties editor. 

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

  55. Click Edit Shortcuts

  56. Select the radio button for Add New Shortcut

  57. Click Next

  58. Enter deliveries in the Name text field. 

  59. Enter My Deliveries in the Descriptor text field. 

  60. Click Modify next to the text field for Display this menu item only if the following feature(s) is(are) available

  61. Select scheduling, scheduled-email, scheduled-file-export, and scheduled-print, and click >>

  62. Click OK

  63. Click Add Event in the Events section. 

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

  65. Select EnumServletEvents from your project and click OK

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

  67. Click Add in the EventsArguments section. 

  68. Select WebEventArgumentTarget from the drop-down menu and click OK

  69. Enter myDeliveries in the Argument Value text field. 

  70. Click OK

  71. Click Next

  72. Click Finish

  73. Save your changes. 

  74. Click OK in the Refresh Application window to refresh the view. 

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

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

  77. Double-click the -1 (Default Page) page to launch the Basic Properties editor. 

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

  79. Click Edit Shortcuts

  80. Select the radio button for Rearrange Shortcuts

  81. Click Next

  82. Select deliveries from the list of shortcuts and use the upwards pointing arrow to position it just after the subscriptions shortcut. 

  83. Click Next

  84. Click Finish

  85. Save your changes. 

  86. Click OK in the Refresh Application window to refresh the view. 

  87. Navigate to Pages->myDeliveries (My Deliveries)

  88. Double-click the myDeliveries (My Deliveries) page to launch the Basic Properties editor. 

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

  90. Click Edit Shortcuts

  91. Select the radio button for Rearrange Shortcuts

  92. Click Next

  93. Select deliveries from the drop-down menu for Selected shortcut

  94. Click Next

  95. Click Finish

  96. Save your changes. 

  97. Launch MicroStrategy Web to view the customization.