Code That Adds a View

To add the definition for a view, you add the following code to the views.xml file:

<str key="channel_partner:mvg">
  <![CDATA[<?xml version="1.0"?>
  <view>
  <viewname>Phone List</viewname>
  <viewstyle>table-layout:fixed;width:100%;font-family:Segoe UI;font-
style:normal;font-weight:normal;font-size:8pt;color:Black;font-charset:0</
viewstyle>
  <viewtime>0</viewtime>
  <linecolor>8421504</linecolor>
  <linestyle>3</linestyle>
  <gridlines>1</gridlines>
  <collapsestate/>
  <rowstyle>background-color:window;color:windowtext</rowstyle>
  <headerstyle>background-color:#D3D3D3</headerstyle>
  <previewstyle/>
  <arrangement>
    <autogroup>0</autogroup>
    <collapseclient/>
  </arrangement>
  <multiline>
    <width>0</width>
  </multiline>
  <column>
    <name>HREF</name>
    <prop>DAV:href</prop>
    <checkbox>1</checkbox>
  </column>
    <column>
      <type>string</type>
      <heading>Name</heading>
      <prop>http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-
000000000046}/sbl%20PartnerName</prop>
      <width>426</width>
      <style>padding-left:3px;;text-align:left</style>
      <editable>1</editable>
      <userheading>Name</userheading>
    </column>
  <column>
    <type>string</type>
    <heading>Location</heading>
    <prop>http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-
000000000046}/sbl%20PartnerLocation</prop>
    <width>426</width>
    <style>padding-left:3px;;text-align:left</style>
    <editable>1</editable>
    <userheading>Location</userheading>
  </column>
  <orderby>
    <order>
      <heading>File As</heading>
        <prop>urn:schemas:contacts:fileas</prop>
        <type>string</type>
      <sort>asc</sort>
    </order>
  </orderby>
  <groupbydefault>0</groupbydefault>
  <previewpane>
    <markasread>0</markasread>
  </previewpane>
  </view>]]>
</str>