MicroStrategy ONE

Folder Links Configuration File XML Structure

The folder links configuration file lists a series of folder link definitions. A folder link represents a shortcut to a system folder. These shortcuts are rendered in several folder browsers within the application, such as the Report All Object Browser and the browsers available from the Save As Dialog and the Object Manipulation Dialog.

Folder link configuration settings are generally set in the folderLinks.xml file, but they can also be made within pageConfig.xml. The recommended practice is to use a separate configuration file to ensure that your customizations are correctly propagated in future upgrades. You use the same XML structure whether you make the settings in folderLinks.xml or in pageConfig.xml.

A sample of the XML structure for the folder links configuration file is shown below, followed by a description of the elements and attributes that make up the file.

XML structure

<folder-links version="2.0">

    <context id="1" desc="Select Dataset Editor">

        <project name="Default" default="true">

            <folder-link sys-folder-id="20" desc="My Reports" desc-id="mstrWeb.3" is-root="false"/>

            <folder-link sys-folder-id="7" desc="Shared Reports" desc-id="mstrWeb.2" is-root="true"/>

        </project>

    </context>

    <context id="2" desc="Create RW Document Wizard">

        <project name="Default" default="true">

            <folder-link sys-folder-id="20" desc="My Reports" desc-id="mstrWeb.3" is-root="false"/>

        </project>

    </context>

   ...

</folder-links>

Description

The table below describes the XML structure of the folder links configuration file. The four columns in the table include the following descriptive information:

Parent Element

  • Child Element 1

  • Child Element 2

Indicates the name of the element described in the next three columns. If this is a parent element, the names of all possible child elements are listed below the parent element.

Number of Nodes

Specifies the number of nodes that are required or allowed for the corresponding element in the Parent Element column. For example, if the value is "1", there must be only one node— no more, no less. If the value is "0 or more", the node is not required ("0"), but there is no restriction on the number of nodes that can be added ("or more"). If the value is "1 or more", the node is required ("1"), but there is no restriction on the number of nodes that can be added ("or more").  

Parent Element Attributes

Lists the separate attributes that can be used with the corresponding element in the Parent Element column. Included in parentheses beneath each attribute name are the attribute type and an indication of whether the attribute is required or implied. For example, the config-src attribute for the <folder-links> element has an attribute type of "cdata" (character data) and is implied. The id attribute for the <context> element has an attribute type of "nmtoken" (name token) and is required.

Description

Describes either a parent element in the Parent Element column or an attribute in the Parent Element Attributescolumn.

Parent Element

  • Child Element 1

  • Child Element 2

Number of Nodes Parent Element Attributes Description

<folder-links>

1

 

 

The <folder-links> element lists a series of folder link definitions. Each <folder-link> element represents a shortcut to a system folder. These shortcuts are rendered in several folder browsers within the application, such as the Report All Object Browser and the browsers associated with the Save As Dialog and the Object Manipulation Dialog. (When you use a separate configuration file, the <folder-links> element represents the root element of the file.)

config-src

(cdata / implied)

If the folder links are defined in a separate file, the config-src attribute tells the page configuration file the location of the folder links configuration file.

version

(nmtoken / implied)

If the folder links are defined in a separate file, the version attribute indicates the release number of the folder links configuration file. This attribute is useful for backwards compatibility because it lets the application know what features are available.

<context>

1 or more

 

The <context> element defines a group of folder links, or shortcuts. A context is generally associated with a single editor or folder browser in the application (specified through a setting in the editor or browser). The context can include different sets of folder links for different projects.

id

(nmtoken / required)

The id attribute is a unique identifier for the context.

desc

(cdata / implied)

The desc attribute provides a description of the context. This attribute is not used by the application, but it can be used to make the XML file more readable.

<project>

1 or more

 

 

The <project> element groups a set of system folder shortcuts on a project basis. It is found inside a context and can be used to determine which folder shortcuts should appear in browsers in which MicroStrategy projects. System folder shortcuts under the default  project  appear in all projects. (The default project is the <project> element with the default attribute set to 'true'.)

id

(nmtoken / implied)

The id attribute indicates the id of the project (from the metadata) that is associated with the group of folder links, or shortcuts.

name

(cdata / implied)

The name attribute indicates the name of the project (from the metadata) that is associated with the group of folder links, or shortcuts.

default

(false | true  / implied)

The default attribute marks the project as the default project. When the value of this attribute is "true", the folder links, or shortcuts, defined inside this <project> element appear in all projects.

<folder-link>

1 or more

 

 

The <folder-link> element defines a shortcut to a system folder (in the metadata) that is used by a folder browser or editor associated with the context.

id

(nmtoken / implied)

The id attribute provides the GUID for the system folder (from the metadata) to which a folder browser or editor should be pointed when the folder link, or shortcut, is selected. The value of this attribute can change between versions of the product.

sys-folder-id

(nmtoken / implied)

The sys-folder-id attribute provides the integer id for the named folder (from the metadata) to which a folder browser or editor should be pointed when the system folder shortcut is selected. The valid values of this attribute are defined in the EnumDSSXMLFolderNames interface. (For example, the name 'DssXmlFolderNameAutoStyles' specifies the 'AutoStyles' folder in the 'Public Objects' folder and has an integer value of '57'.) The value of this attribute does not change between versions of the product.

desc

(cdata / implied)

The desc attribute provides a descriptor that the application should use to display the folder link, or shortcut, if the desc-id attribute is missing.

desc-id

(cdata / implied)

The desc-id attribute provides the Resource Bundle item id that the application should use to display the folder link, or shortcut, in the language of the user's locale.

feature-id

(cdata / implied)

The feature-id attribute represents a feature that is evaluated to determine whether the folder link, or shortcut, should be displayed.

 

See also