XML Code That Customizes Views

This topic describes the code of the views.xml file. This file includes the set of str tags that specify the configuration of the Outlook view. The only important attribute of this tag defines the unique name, or ID, for the view. For more information, see Customizing Views.

The following code is an example of the views.xml file:

<res_root>
  <str key="sample_view">
    <![CDATA[<?xml version="1.0"?>
<view>
  <viewname>Sample view</viewname>
  <linecolor>8421504</linecolor>
  <linestyle>3</linestyle>
  <gridlines>1</gridlines>
  <newitemrow>0</newitemrow>
  <usequickflags>0</usequickflags>
  <collapsestate/>
  <previewstyle>color:Blue</previewstyle>
  <arrangement>
    <autogroup>0</autogroup>
    <collapseclient/>
  </arrangement>
  <column>
    <name>HREF</name>
    <prop>DAV:href</prop>
    <checkbox>1</checkbox>
  </column>
  <column>
    <maxrows>4294901760</maxrows>
    <heading>Organization</heading>
    <prop>urn:schemas:contacts:sn</prop>
    <type>string</type>
    <width>987</width>
    <style>padding-left:3px;;text-align:left</style>
    <editable>1</editable>
    <userheading>Organization</userheading>
  </column>
  <orderby>
    <order>
      <heading>Organization</heading>
      <prop>urn:schemas:contacts:sn</prop>
      <type>string</type>
      <userheading>Organization</userheading>
      <sort>asc</sort>
    </order>
  </orderby>
  <multiline>
    <width>0</width>
  </multiline>
</view>]]>
  </str>
</res_root>