MicroStrategy ONE

Removing columns on the Folder Browsing page

This scenario shows you how to remove the Description and Actions columns from the table displayed when folder contents are viewed in List View mode. Depending on your privileges, the default table structure for folder contents has six columns : Icon, Name, Owner, Modified, Description and Actions. You perform this customization by modifying the layout definition file for the Folder Browsing page. You can extrapolate from the steps in this scenario to remove different columns in the table display.

The customization changes in this scenario are implemented across all projects the MicroStrategy Intelligence Server is connected to. To implement a simlar customization for individual projects, refer to Removing the links for Individual projects on the Folder Browsing page .

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 removes the Description and Actions columns from the list of folder contents on the Folder Browsing 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. Launch MicroStrategy Web to view the customization.

Creating the plug-in yourself using the Web Customization Editor

If you want to understand how the columns displayed on the Folder Browsing page 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 ModifyingListViewFolderPage.  

    3. Click OK.  

  3. On the Application Settings tab, expand MicroStrategy Web Configuration to view the list of settings that can be modified to perform customizations.  

    • Expand Styles to view the list of styles used in MicroStrategy Web.  

      1. Double-click FolderStyleList to open the Style Properties Editor in the right pane.  

      2. Select the Style Layouts tab at the bottom of the editor.  

      3. Click Edit Layout.  

      4. In the Edit Layout File dialog box, click Yes to continue. A copy of FolderListLayout.xml is opened for editing in a separate tab.  

      5. Click the Source tab at the bottom of the editor.

      6. Make the following changes to the copy of FolderListLayout.xml.  
        • To prevent the "Description" and "Actions" columns from being included in the table, delete the code shown in bold below.

        •  <table class="mstrListView" cellspacing="0" cellpadding="0" id="FolderList">

            <mstrlayout:attr name="addSummaryAttribute" />

              <colgroup>

                <col class="typ" />

                <col class="nam" />

                <col class="own" />

                <col class="mod" />

                <col class="des" />

                <mstrlayout:if name="isActionsTabAvailable">

                  <mstrlayout:then>

                    <col class="act" />

                  </mstrlayout:then>

                </mstrlayout:if>

              </colgroup>

              ...

        • To prevent the table header for the "Description" column from being displayed, delete the <td> node, shown below in bold text, that includes <mstrlayout:render name="Descriptor">. This node, which has a value attribute = 39, is responsible for displaying the "Description" header in the first row of the <thead> tag.

          <thead>

            <tr>

              ...

              <td scope="col">

                <div>

                  <mstrlayout:render name="Descriptor">

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

                  <mstrlayout:render/>

                </div>

              </td>

        • To prevent the table header for the "Actions" column from being displayed, delete the if..then condition, shown below in bold text, that contains the <td> node responsible for displaying the "Actions" header from the <thead> tag.

        • <thead>

            <tr>

              ...

              <mstrlayout:if name="isActionsTabAvailable">

                <mstrlayout:then>

                  <td scope="col">

                    <div class="act">

                      <mstrlayout:render name="Descriptor">

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

                      </mstrlayout:render>

                    </div>

                  </td>

                </mstrlayout:then>

              </mstrlayout:if>

        • To prevent information in the "Description" column from being displayed, delete the entire <td>  node, shown below in bold text, that includes <mstrlayout:render name="DescriptorInfo">.

        • <tbody>

            <mstrlayout:list id="FolderObjects" name="getSortedList">

              <tr>

                ...

                <td>

                  <mstrlayout:render name="DescriptionInfo">

                    <mstrlayout:argument list="FolderObjects" type="com.microstrategy.web.objects.WebObjectInfo"/>

                    <mstrlayout:argument type="boolean" value="true"/>

                  <mstrlayout:render/>

                </td>

        • To prevent information in the "Actions" column from being displayed, delete the entire <mstrlayout:if> node, shown below in bold text, that is a child of the <mstrlayout:list node whose id attribute is set to "FolderObjects".  

        • <tbody>

            <mstrlayout:list id="FolderObjects" name="getSortedList">

              <tr>

                ...

                <mstrlayout:if name="isActionsTabAvailable">

                  <mstrlayout:then>

                    <td style="whitespace:nowrap" class="mstrFolderListActions">

                      <mstrlayout:slot name="actionButtons">

                        <mstrlayout:render name="PDFExport">

                          ...             

                          <mstrlayout:render name="DeleteInfo">

                            <mstrlayout:argument list="FolderObjects" type="com.microstrategy.web.objects.WebObjectInfo"/>

                           <mstrlayout:argument type="boolean"value="false"/>

                          </mstrlayout:render>

                        </mstrlayout:then>

                      </mstrlayout:if>

                    </td>

                  </mstrlayout:then>

                </mstrlayout:if>

      7. Save your changes. The new plug-in you just created has the name you gave it and is saved in the plugins folder.
      8. Restart your web server to apply the new plug-in.
      9. Launch MicroStrategy Web to view the customization.

      See also