MicroStrategy ONE

Modifying color and font properties on the Prompts page

This scenario shows you how to change the background color and the font color and size for the prompt title bar, italicize the prompt instructions, and change the background color and layout for the prompt shopping cart. You perform these customizations by modifying the CSS file that renders these formatting properties on the Prompts page. You can extrapolate from the steps in this scenario to change other properties on the Prompts page such as font style, border, and margin, or to change these same properties on other pages.

Before customization:

After customization:

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

Using the plug-in provided for you

The MicroStrategy SDK provides an out-of-the-box plug-in (ZIP file) that customizes the color and font properties on the Prompts page. Follow the simple steps below to deploy the plug-in and view the results in MicroStrategy Web. 

  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. Restart your web server.  

  4. To view your customizations, launch MicroStrategy Web and open a prompted report.

Creating the plug-in yourself using the Web Customization Editor

If you want to understand how the color and font properties are customized, follow the steps below to create the plug-in and deploy it. 

  1. Launch the Web Customization Editor.  

  2. Create a new plug-in and give it a meaningful name.  

    1. On the Application Settings tab, click the Select Plug-in icon.:


    2. On the Select Plug-in dialog box, click New and enter a meaningful name for the plug-in, such as ModifyingColorFontPrompt.  

    3. Click OK.  

  3. On the CSS Settings tab, expand CSS.  

  4. Expand MicroStrategy WebStyles, then expand style, then expand mstr.  

  5. Expand widgets.css to view the selectors defined within this CSS file.  

    • Right-click .mstrPromptQuestionMeaning and choose New Property. This rule defines the properties for the prompt instructions in each pane on the Prompts page.

      1. For Property, enter font-style.  

      2. For Value, enter italic.  

      3. For Apply to, select All Pages.  

      4. Click OK. The new property you added displays your prompt instructions as shown below when the plug-in is applied::


  6. A new CSS file, called global.css, is created under CSS -> Customized Web Styles -> style, with the new font-style property you just added for .mstrPromptQuestionMeaning. Use the next set of steps to add additional selectors and properties to this file to make your other customizations.  

    • Right-click the newly created global.css file and select New Selector.

      1. Enter .mstrPromptQuestion .mstrPromptQuestionTitleBarTitle as the name of the Selector.  

      2. For Apply Selector to, select All Pages.  

      3. Click OK.  

      4. Right-click .mstrPromptQuestion .mstrPromptQuestionTitleBarTitle and choose New Property. You add a new property that sets the color of the font on the title bar at the beginning of each prompt pane.

        1. For Property, enter color.  

        2. For Value, enter #0000ff. This makes the text in the title bar blue.  

        3. For Apply to, select All Pages.  

        4. Click OK.  

      5. Right-click .mstrPromptQuestion .mstrPromptQuestionTitleBarTitle and choose New Property. You add a new property that sets the size of the font on the title bar at the beginning of each prompt pane.

        1. For Property, enter font-size.  

        2. For Value, enter 1.25em. This makes the font 25% bigger and bold.  

        3. For Apply to, select All Pages.  

        4. Click OK.  

    • Right-click global.css and select New Selector. You add a new selector that has a property that allows you to set the background color of the title bar at the beginning of each prompt pane.

      1. Enter .mstrPromptQuestion .mstrPromptQuestionTitleBar as the name of the Selector.  

      2. For Apply Selector to, select All Pages.  

      3. Click OK.  

      4. Right-click .mstrPromptQuestion .mstrPromptQuestionTitleBar and choose New Property. You add a new property that sets the background color of the title bar at the beginning of each prompt pane.

        1. For Property, enter background.  

        2. For Value, enter #E7CC77. This makes the background color for the title bar orange.  

        3. For Apply to, select All Pages.  

        4. Click OK. The three new properties you added display your prompt title bars as shown below when the plug-in is applied::


      5. Right-click .mstrPromptQuestion .mstrPromptQuestionTitleBar and choose New Property.

        1. For Property, enter filter.  

        2. For Value, enter none.  

        3. For Apply to, select All Pages.  

        4. Click OK.  

    • Right-click global.css and select New Selector. You add a new selector that has properties that allow you to set the background color, border, and padding around the prompts shopping cart panes.

      1. Enter .mstrListBlockContents as the name of the Selector.  

      2. Select All Pages for Apply Selector to.  

      3. Click OK.  

      4. Right-click .mstrListBlockContents and choose New Property. You add a new property that sets the background color of the prompts shopping cart panes.  

        1. For Property, enter background-color.

        2. For Value, enter #E7EECC. This is the hex value of a light green color.  

        3. For Apply to, select All Pages.  

        4. Click OK.  

      5. Right-click .mstrListBlockContents and choose New Property. You add a new property that sets the border of the prompts shopping cart panes.  

        1. For Property, enter border.  

        2. For Value, enter 1px solid #E7EE77. This is the hex value of a light green color that is slightly darker than the background color.  

        3. For Apply to, select All Pages.  

        4. Click OK.  

        5. Right-click .mstrListBlockContents and choose New Property. You add a new property that sets the padding around the prompts shopping cart panes.  

          1. For Property, enter margin.  

          2. For Value, enter 10px 10px 10px 10px. This is the amount of space that is added around each pane of the shopping cart.  

          3. For Apply to, select All Pages.  

          4. Click OK. The new selector and three new properties you added display your prompt shopping cart panes as shown below when the plug-in is applied::

  7. A new plug-in folder, with the name you gave it, now exists in the plugins folder of your MicroStrategy Web installation directory. Restart your web server to apply the plug-in.  

  8. To view your customizations, launch MicroStrategy Web and open a prompted report.

See Also