Documentation Center

MetadataConfig.xml structure for list views

The second element <ishlistdef> of the MetadataConfig.xml describes the list views in Content Manager Web Client.

XML description

This part describes all components to create a list view.

XMLDescription
ishlistdefGroups all list view specifications.
ishlist

Contains the specification for one list view. The required attribute id must be unique and is used to select the requested list view specification.

On the list view you can specify default sort settings:
  • defaultsort: The name attribute of the ishlistfield on which the list view is sorted by default.
  • defaultsortorder: The default sorting, descending or ascending.
ishlistfield

Contains all information to display the field on the list view.

The specification of the field is a combination of the following:
  • The field that is shown. This information is specified with the attributes name, ishfieldref, level and ishfielddatatype.

  • The alignment of the values.
  • Whether you can filter on the field or not.
  • Whether you can sort on the field or not.
  • The column width for the field.

ishfielddatatype

Indicates the type of the field in the database. It can be used on ishlistfield. Optional.

The following values link with an existing database type: typedatetime, typelongtext, typenumber, typereference and typestring.

Deprecated types: typelanguagedependentstring (replaced with typestring), typecard, typecardreference and typelov (replaced with typereference).

In contrast with the above-mentioned values the following ishfielddatatypes does not link with a database type, but are used to link special behavior to a specific field:
  • typeversion: This data type can be specified on the field VERSION. It is used to create a correct new version number and to check that the value is a correct version.

  • typelanguage: Deprecated (replace with typereference).
  • typedate: In the database the dates are always saved including time. You can use this data type if you don't want to show the time.
<ishlist id="Trisoft.InfoShare.Forms.UserRoleListControl" defaultsort="UserRoleNameField" defaultsortorder="ascending" allowpaging="no">
      <ishlistfield name="UserRoleNameField" ishfieldref="FISHUSERROLENAME" level="none">
        <label resourceref="FISHUSERROLENAME.Text">Name</label>
        <alignment>left</alignment>
        <allowfilter />
        <sortable />
        <width>24</width>
      </ishlistfield>
      <ishlistfield name="UserRoleDescriptionField" ishfieldref="FDESCRIPTION" level="none">
        <label resourceref="FDESCRIPTION.Text">Description</label>
        <alignment>left</alignment>
        <allowfilter />
        <sortable />
        <width>32</width>
      </ishlistfield>
      <ishlistfield name="UserRoleActiveField" ishfieldref="FISHOBJECTACTIVE" level="none">
        <label resourceref="FISHOBJECTACTIVE.Text">Active</label>
        <alignment>center</alignment>
        <allowfilter />
        <sortable />
        <width>8</width>
      </ishlistfield>
    </ishlist>