|
1 |
|
2 <!DOCTYPE html |
|
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="mobileconcept"/><meta name="DC.Title" content="Criteria for importing a contact"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C"/><meta name="DC.Relation" scheme="URI" content="GUID-A5853293-7B83-4CCE-9C29-B2B8F0CD8A18"/><meta name="DC.Relation" scheme="URI" content="GUID-154DA5F4-32F6-42E2-A107-A7C72F6F9DE5"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-F631E6D3-AA0A-4C4E-95C4-13F9CA3F8AFF"/><title>Criteria for |
|
5 importing a contact </title><script type="text/javascript"> |
|
6 function initPage() {} |
|
7 </script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-F631E6D3-AA0A-4C4E-95C4-13F9CA3F8AFF"><span>Criteria</span> for |
|
8 importing a contact</h1><div> |
|
9 <p>The <code>criteria</code> object specifies the contact |
|
10 to import and optionally the target database.</p> |
|
11 <p>The <code>criteria</code> object has two main properties: <code>Type</code> and <code>Data</code>. |
|
12 These are described in the following table. Properties enclosed in brackets |
|
13 are optional.</p> |
|
14 <div class="note"><p><strong class="note_title">Note: </strong>All string values in the object are Unicode.</p> |
|
15 </div> |
|
16 <div class="tablenoborder"><a name="GUID-C084631F-ED04-4114-AC87-A77D30FEE38F"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-C084631F-ED04-4114-AC87-A77D30FEE38F" frame="border" border="1" rules="all"><caption><strong>Table: </strong><span>Criteria</span> object properties</caption> |
|
17 |
|
18 <thead align="left"> |
|
19 <tr class="title "><th class="cellrowborder" valign="top" width="25%" id="d0e33390"> |
|
20 <p>Property</p> |
|
21 </th><th class="cellrowborder" valign="top" width="25%" id="d0e33395"> |
|
22 <p>Description</p> |
|
23 </th><th class="cellrowborder" valign="top" width="25%" id="d0e33400"> |
|
24 <p>Type</p> |
|
25 </th><th class="cellrowborder" valign="top" width="25%" id="d0e33405"> |
|
26 <p>Value</p> |
|
27 </th></tr> |
|
28 </thead> |
|
29 <tbody> |
|
30 <tr class=""> |
|
31 <td class="cellrowborder" valign="top" width="25%" headers="d0e33390 "> |
|
32 <p><code>criteria.Type</code></p> |
|
33 </td> |
|
34 <td class="cellrowborder" valign="top" width="25%" headers="d0e33395 "> |
|
35 <p>Specifies the type of contact information to import. This is always <code>"Contact"</code>.</p> |
|
36 </td> |
|
37 <td class="cellrowborder" valign="top" width="25%" headers="d0e33400 "> |
|
38 <p>string</p> |
|
39 </td> |
|
40 <td class="cellrowborder" valign="top" width="25%" headers="d0e33405 "> |
|
41 <p>Possible values:</p> |
|
42 <ul> |
|
43 <li><p><code>"Contact"</code></p></li> |
|
44 </ul> |
|
45 </td> |
|
46 </tr> |
|
47 <tr class="bg "> |
|
48 <td class="cellrowborder" valign="top" width="25%" headers="d0e33390 "> |
|
49 <p><code>criteria.Data</code></p> |
|
50 </td> |
|
51 <td class="cellrowborder" valign="top" width="25%" headers="d0e33395 "> |
|
52 <p>Specifies the contact to import.</p> |
|
53 </td> |
|
54 <td class="cellrowborder" valign="top" width="25%" headers="d0e33400 "> |
|
55 <p>object</p> |
|
56 </td> |
|
57 <td class="cellrowborder" valign="top" width="25%" headers="d0e33405 "> |
|
58 <p>Object with the properties specified below</p> |
|
59 </td> |
|
60 </tr> |
|
61 <tr class=""> |
|
62 <td class="cellrowborder" valign="top" width="25%" headers="d0e33390 "> |
|
63 <p><code>[criteria.Data.DBUri]</code></p> |
|
64 </td> |
|
65 <td class="cellrowborder" valign="top" width="25%" headers="d0e33395 "> |
|
66 <p>Specifies the contacts database to which the contact is imported.</p> |
|
67 <p>If this property is not specified, the default database is used. If |
|
68 the default database does not exist, a new database is created and the contact |
|
69 is imported there.</p> |
|
70 </td> |
|
71 <td class="cellrowborder" valign="top" width="25%" headers="d0e33400 "> |
|
72 <p>string</p> |
|
73 </td> |
|
74 <td class="cellrowborder" valign="top" width="25%" headers="d0e33405 "> </td> |
|
75 </tr> |
|
76 <tr class="bg "> |
|
77 <td class="cellrowborder" valign="top" width="25%" headers="d0e33390 "> |
|
78 <p><code>criteria.Data.SourceFile</code></p> |
|
79 </td> |
|
80 <td class="cellrowborder" valign="top" width="25%" headers="d0e33395 "> |
|
81 <p>Specifies the full path and file name of the source file from which |
|
82 the contact is imported.</p> |
|
83 <div class="note"><p><strong class="note_title">Note: </strong></p><ul> |
|
84 <li><p>The source file must in vCard format. For an example of this |
|
85 format, see below.</p></li> |
|
86 <li><p>The source file can have any file extension or no extension. |
|
87 Typically, the extension is <code>.vcf</code>.</p></li> |
|
88 </ul> |
|
89 </div> |
|
90 </td> |
|
91 <td class="cellrowborder" valign="top" width="25%" headers="d0e33400 "> |
|
92 <p>string</p> |
|
93 </td> |
|
94 <td class="cellrowborder" valign="top" width="25%" headers="d0e33405 "> |
|
95 <p>The string cannot exceed 256 characters.</p> |
|
96 </td> |
|
97 </tr> |
|
98 </tbody> |
|
99 </table></div> |
|
100 <div><h3>vCard format example</h3> |
|
101 <pre class="codeblock" id="GUID-5943BEA1-8704-4099-A888-658B10C4B677">BEGIN:VCARD |
|
102 VERSION:2.1 |
|
103 N:Smith;John |
|
104 FN:John Smith |
|
105 ORG:Company Inc. |
|
106 TITLE:CEO |
|
107 TEL;WORK:VOICE:(555) 111-1111 |
|
108 TEL;HOME;VOICE:(555) 222-2222 |
|
109 ADR;WORK:;;Wall Street;New York City;NY;12345;United States of America |
|
110 LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Wall Street=0D=0ANew York City, NY 12345=0D=0AUnited States of America |
|
111 ADR;HOME:;;Broadway;New York City;NY;12345;United States of America |
|
112 LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Broadway=0D=0ANew York City, NY 12345=0D=0AUnited States of America |
|
113 EMAIL;PREF;INTERNET:john.smith@company.com |
|
114 REV:2008042T195243Z |
|
115 END:VCARD</pre> |
|
116 </div> |
|
117 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html> |