demos\outlook\contacts\contacts_content.sdf
 1 WidgetPane {
 2   attributes {
 3     {name: "toolbar_url"; value: "contacts_toolbar.sdf" }
 4     {name: "action_menu_url"; value: "contacts_actions.sdf" }
 5   }
 6   widget {
 7     /**
 8      * Define a tree table using the riSeparator value in the data to designate the first
 9      * riSeparator token piece as row information. The value for row information for
10      * a tree-type widget designates the level of the row in the tree hierarchy.
11      * Specify that the table will support the delete, print, and mail forward actions
12      */
13     TreeTable {
14       name: "contacts_table"
15       quickFindSupport: "search_bar"
16       supportedActions { "pim_delete"; "pim_print"; "pim_mail_forward" }
17       autoResizeMode: "none"
18       selectionMode: "multiple"
19       columnSpanningAllowed: "true"
20       columns {
21         {width: "2ch!"; headerIcon: "resource:Sage.icon.pageTransparent" }
22         {width: "1ch!"; headerIcon: "resource:Sage.icon.paperclip" }
23         {width: "1.5ch!"; headerIcon: "resource:pim.icon.followup" }
24         {title: "Full Name"; width: "15ch"; editable: "true" }
25         {title: "Job Title"; width: "10ch"; editable: "true" }
26         {title: "Company"; width: "10ch"; editable: "true" }
27         {title: "File As"; width: "15ch"; editable: "true" }
28         {title: "Department"; width: "10ch"; editable: "true" }
29         {title: "Business Phone"; width: "10ch"; editable: "true" }
30         {title: "Business Fax"; width: "10ch"; editable: "true" }
31         {title: "Home Phone"; width: "10ch"; editable: "true" }
32         {title: "Mobile Phone"; width: "10ch"; editable: "true" }
33         {title: "Categories"; width: "10ch" }
34       }
35       highlightSortColumn: "true"
36       scrollPane {
37         /**
38          * Define another table as the fixed column header for this table. 
39          * Hide the table header and inherit the columns from the parent table.
40          * Use a Label widget in the data to create a non selectable row with
41          * the look of a thin gradient line.
42          */
43         fixedColumnHeader {
44           Table {
45             borders: "none"
46             bounds-height: "1ln"
47             columnSpanningAllowed: "true"
48             gridLineType: "none"
49             autoSizeRowsToFit: "true"
50             inheritParentTableColumns: "true"
51             inheritParentTableStyle: "false"
52             showStandardColumnHeader: "false"
53             focusPainted: "true"
54             scrollPane {
55               horizontalScrollbar: "hidden"
56               verticalScrollbar: "hidden"
57             }
58             dataURL:<< 
59             |||Click here to add a new Contact
60             {}[selectable=false]^{ value:<<EOF Label { horizontalAlign: full; bgColor: "control+5,control-10"; bounds { height: 3}; }EOF; valueType: widget_type; columnSpan: -1; }
61             >> [ inline="true", riSeparator="^" ]
62           }
63         }
64       }
65       dataURL:<< 
66         1^Company: (none) (3 items){fgColor: textHighlight; columnSpan: -1;}
67         2^{icon: "resource:pim.icon.contacts"}|||John Doe|Programmer||Doe, John|(858) 555-1212|(858) 555-1212
68         2^{icon: "resource:pim.icon.contacts"}|||Jane Doe|Programmer||Doe, Jane|(858) 555-1212|(858) 555-1212
69         2^{icon: "resource:pim.icon.contacts"}|||Baby Doe|Programmer||Doe, Baby|(858) 555-1212|(858) 555-1212
70         1^Company: SparseWare (1 item){fgColor: textHighlight; columnSpan: -1}
71         2^{icon: "resource:pim.icon.contacts"}|||Don DeCoteau|Programmer||DeCoteau, Don|(858) 555-6228|(619) 222-8884
72       >> [ inline="true", riSeparator="^" ]
73       expandAll: "true"
74       indentBy: "-1"
75     }
76   }
77 }
78 
79 
80 
81