Code That Creates the View Definition That the SalesBook Control Uses

To create the view definition that Siebel CRM Desktop uses to display the list of values in the SalesBook dialog box, you add the following code to the views.xml file. This code makes the Fulfillment Center available to the client. It hard codes the column headings. In an actual implementation it is recommended that you add resource strings to the resource file and that you replace this hard coding with references to these resource strings:

<str key="fulfillment_centers:salesbook">
<![CDATA[<?xml version="1.0"?>
<view>
<viewname>$view_siebel_fulfillment_centers$</view name>
<viewstyle>tablelayout:fixed;width:100%;font-family:Segoe 
UI;fontstyle:normal;font-weight:normal;fontsize:8pt;color:Black;font-
charset:0<viewstyle>
<viewtime>214490418</viewtime>
<linecolor>8421504</linecolor>
<linestyle>3</linestyle>
<gridlines>1</gridlines>
<newitemrow>0</newitemrow>
<usequickflags>0</usequickflags>
<collapsestate/>
<rowstyle>backgroundcolor:window;color:windowtext</rowstyle>
<headerstyle>backgroundcolor:#D3D3D3</headerstyle>
<previewstyle>color:Blue</previewstyle>
<arrangement>
<autogroup>0</autogroup>
<collapseclient/>
</arrangement>
<column>
<name>HREF</name>
<prop>DAV:href</prop>
<checkbox>1</checkbox>
</column>
<column>
<editable>0</editable>
<heading>$head_icon$</heading>
<prop>http://schemas.microsoft.com/mapi/proptag/0x0fff0102</prop>
<bitmap>1</bitmap>
<width>18</width>
<style>padding-left:3px;;textalign:center</style>
</column>
<column>
<maxrows>4294901760</maxrows>
<heading>Fulfillment Center</heading>
<prop>urn:schemas:contacts:sn</prop>
<type>string</type>
<width>987</width>
<style>padding-left:3px;;textalign:left</style>
<editable>1</editable>
<userheading>FulfillmentCenter</userheading>
</column>
<column>
<maxrows>4294901760</maxrows>
<heading>Description</heading>
<prop>http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-
000000000046}/sbl%20Description</prop>
<type>string</type>
<width>987</width>
<style>padding-left:3px;;textalign:left</style>
<editable>1</editable>
<userheading>Description</userheading>
</column>
<orderby>
<order>
<heading>FulfillmentCenter</heading>
<prop>urn:schemas:contacts:sn</prop>
<type>string</type>
<userheading>FulfillmentCenter</userheading>
<sort>asc</sort>
</order>
</orderby>
<multiline>
<width>0</width>
</multiline>
<groupbydefault>0</groupbydefault>
<previewpane>
<markasread>0</markasread>
</previewpane>
</view>]]>
</str>