MicroStrategy ONE

Applying a Bulleted List View on Folder Browsing Pages

By default, the folder contents on a MicroStrategy Web Folder Browsing page can be viewed in either the List View mode or the Large Icon View mode. However, there may be instances in which you want to view the folder contents in a different customized presentation.

In this customization scenario, you add a custom view mode— called "Bulleted List View" that displays the folder contents in a bulleted list format. You also add a new icon to represent this Bulleted List View so it can be selected similar to the List View and Icon View.

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.

If you decide not to keep this customization, then before removing this plug-in from the plugin folder, switch to Icon View or List View and then remove the plug-in.

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: ApplyingABulletedListView

  3. Navigate to the icon you would like to use to represent the Bullet List mode and paste it in your new customization plug-in folder (plugins/ApplyingABulletedListView/style/images) inside the plugins folder of the MicroStrategy Web installation.:

    A sample icon "bulletListMode.gif" is available in the plug-in provided by MicroStrategy SDK. 

  4. Use the Eclipse IDE to create an interface class called EnumCustomWebFeatures. The sample, EnumCustomWebFeatures.java, contains the entire code for this class. 

  5. Compile EnumCustomWebFeatures.java and place the class file inside the classes folder of this customization plug-in adhering to the package structure. For example: plugins\ApplyingABulletedListView\WEB-INF\classes\com\microstrategy\sdk\samples\beans

  6. Use the Eclipse IDE to create a class for custom Web features. The sample, CustomFeatures.java, contains the entire code for this class. 

  7. Compile CustomFeatures.java and place the class file inside the classes folder of this customization plug-in adhering to the package structure. For example: plugins\ApplyingABulletedListView\WEB-INF\classes\com\microstrategy\sdk\samples\beans

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

  9. Enable the Property Files setting from the Show Advanced Options in MicroStrategy Preferences

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

  11. Click on Property Files to expand the list of property files used in MicroStrategy Web. 

  12. Navigate to WEB-INF->classes->resources and double-click on MessagesBundle_en_US.properties to launch the Web Properties Editor. 

  13. Enter a new property-value pair in the text field at the bottom confirming to the syntax nameOfProperty=value. For example: scenario1.5=View: Bullet List

  14. Click Add

  15. Save your changes. 

  16. Navigate to MicroStrategy Web Configuration->Styles

  17. Right-click Styles and select New Style. This launches the Style Creation Wizard

  18. Enter FolderStyleBulletList in the Name text field. 

  19. Enter Display Folder contents as a Bulleted List in the Description text field. 

  20. Select FolderBulletTransform from the drop-down menu for Transform

  21. Click Next

  22. Select parameters cssPrefix and maxObjectTypeCount and add them to the style by clicking >>

  23. Click Next

  24. Select cssPrefix and enter bullet- in the Value text field. 

  25. Select maxObjectTypeCount and enter -1:-1 in the Value text field. 

  26. Click Next

  27. Leave the Layout Definition field empty, and click Next

  28. Click Finish

  29. Save your changes. 

  30. Navigate to MicroStrategy Web Configuration->Toolbars->folderToolbar->folderView

  31. Right-click folderView and select New Shortcut

  32. Enter tbBulletView as the name of the shortcut and click OK

  33. Enter View: Bullet List in the Descriptor text field. 

  34. Click Modify next to the text field for Descriptor ID and select scenario 1.5

  35. Click OK

  36. Select Button from the Type drop-down menu. 

  37. In the text field for Image Source, enter ../plugins/ApplyingABulletedListView/style/images/bulletListMode.gif

  38. Click the Modify button for the text field Check this item if the following feature(s) is(are) available to launch the Add Elements shopping cart. 

  39. Select check-mode-bullet-view and click >>

  40. Click OK to close the Add Elements shopping cart. 

  41. Click Advanced Properties at the bottom of the editor. 

  42. Click Add Event in the Events section. 

  43. To select the event enumeration class, click Browse and enter EnumPageEvents

  44. Select EnumPageEvents from your project and click OK

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

  46. Click Add in the Event Arguments section. 

  47. Select WebEventArgumentFolderViewMode from the drop-down menu and click OK

  48. Enter FolderStyleBulletList in the text field for Argument Value

  49. Click OK

  50. Navigate to MicroStrategy Web Configuration->Pages

  51. Right-click shared (Shared Reports) and select Create New Add-on. This launches the Add-on Creation wizard

  52. Click Browse to select the source folder for the project. 

  53. Enter com.microstrategy.sdk.samples.addons in the Package text field. 

  54. Enter AggregatedFeaturesAddOn in the Name text field. 

  55. Enter Addon for aggregating Web features in the Description text field. 

  56. Click Next

  57. Click Finish. AggregatedFeaturesAddOn.java opens in the editor. The sample, AggregatedFeaturesAddOn.java, contains the entire code for this custom add-on. 

  58. Save your changes. 

  59. Double-click shared (Shared Reports) and click the Add-on Properties tab at the bottom in the right frame. 

  60. With com.microstrategy.sdk.samples.addon.AggregatedFeaturesAddOn selected in the Add-ons section, click Add New in the Add-on properties section. 

  61. Select customFeaturesClassName and targetBean, and click >>

  62. Click OK

  63. In the Add-on properties section, enter com.microstrategy.sdk.samples.beans.CustomFeatures as the value for add-on property customFeaturesClassName

  64. In the Add-on properties section, enter fb as the value for add-on property targetBean

  65. Save your changes. 

  66. Double-click my (My Reports) (under MicroStrategy Web Configuration->Pages) to launch the Basic Properties editor. 

  67. Click the Add-on Properties tab at the bottom. 

  68. Click Add in the Add-ons section to launch the Add-on Creation wizard. 

  69. Click Modify

  70. Enter AggregatedFeaturesAddOn in the text field. 

  71. Select AggregatedFeaturesAddOn from your project and click OK

  72. Click Next

  73. Select customFeaturesClassName and targetBean, and click >>

  74. Click Next

  75. Select customFeaturesClassName and enter com.microstrategy.sdk.samples.beans.CustomFeatures in the Value text field. 

  76. Select targetBean and enter fb in the Value text field. 

  77. Save your changes. 

  78. Launch MicroStrategy Web to view the customization.

If you decide not to keep this customization, then before removing this plug-in from the pluginsfolder, switch to Icon View or List View and then remove the plug-in.

See Also