MicroStrategy ONE

Modifying the Amount of Information Displayed on the Prompt Page in one or multiple Prompt questions

The layout of information on the Prompt page is determined by the style applied, and specifically by the layout definition file used with that style. Prompts in MicroStrategy Web can be displayed with various styles such as check box, shopping cart, drop-down menu, etc. Each prompt style is rendered using a different layout definition file.

The default information displayed includes instructions for choosing a selection and whether a selection is required. In this customization scenario, you remove the text that instructs the user about the selection. You accomplish this by modifying the layout definition file used by the prompt style that is applied.

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 the plugins folder 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: ModifyingPromptInfo

  3. Exit the Web Customization Editor. 

  4. Create a layout definition file, PromptsContainerLayout_widget.xml, with the following code.:

    <!DOCTYPE mstrlayout:layout SYSTEM "mstrlayout.dtd">

    <mstrlayout:layout>

        <mstrlayout:include file="/WEB-INF/xml/layouts/widgets/PromptsContainerLayout_widget.xml">

           <mstrlayout:replace slot="ReportInstanceModel">

            <mstrlayout:bList path="promptQuestions/items">

               <mstrlayout:bDeleteProperty path="meaning"/>

            </mstrlayout:bList>    

           </mstrlayout:replace>

        </mstrlayout:include>

    </mstrlayout:layout>

  5. Save this layout definition file, PromptsContainerLayout_widget.xml, in the plugins\pluginName\WEB-INF\xml\layouts subfolder inside the MicroStrategy Web installation folder. For example: plugins\ModifyingPromptInfo\WEB-INF\xml\layouts

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

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

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

  9. Double-click PromptsContainerStyle_Widget to launch the Style Properties editor in the right frame. 

  10. Click the Style Layouts tab. 

  11. Click ... to navigate to the layout definition file, PromptsContainerLayout_widget.xml, in the plugins\pluginName\WEB-INF\xml\layouts subfolder. For example: plugins\ModifyingPromptInfo\WEB-INF\xml\layouts

  12. Click Open

  13. Save your changes. 

  14. Launch MicroStrategy Web to view the customization.

See Also