org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-92D152D3-E29A-4010-B5A0-9D37A0369A21.html
changeset 229 716254ccbcc0
equal deleted inserted replaced
228:913c9751c067 229:716254ccbcc0
       
     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 exporting 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-CA7C3A7B-6733-47E0-9C6F-FBFB0993F034"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-92D152D3-E29A-4010-B5A0-9D37A0369A21"/><title>Criteria for
       
     5 exporting 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-92D152D3-E29A-4010-B5A0-9D37A0369A21"><span>Criteria</span> for
       
     8 exporting a contact</h1><div>
       
     9 <p>The <code>criteria</code> object specifies the contact
       
    10 to export and optionally the source 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-27D13E3F-7AF6-485F-ABE7-0B385A55B0CD"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-27D13E3F-7AF6-485F-ABE7-0B385A55B0CD" 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="d0e33906">
       
    20 <p>Property</p>
       
    21 </th><th class="cellrowborder" valign="top" width="25%" id="d0e33911">
       
    22 <p>Description</p>
       
    23 </th><th class="cellrowborder" valign="top" width="25%" id="d0e33916">
       
    24 <p>Type</p>
       
    25 </th><th class="cellrowborder" valign="top" width="25%" id="d0e33921">
       
    26 <p>Value</p>
       
    27 </th></tr>
       
    28 </thead>
       
    29 <tbody>
       
    30 <tr class="">
       
    31 <td class="cellrowborder" valign="top" width="25%" headers="d0e33906 ">
       
    32 <p><code>criteria.Type</code></p>
       
    33 </td>
       
    34 <td class="cellrowborder" valign="top" width="25%" headers="d0e33911 ">
       
    35 <p>Specifies the type of contact information to export. This is always <code>"Contact"</code>.</p>
       
    36 </td>
       
    37 <td class="cellrowborder" valign="top" width="25%" headers="d0e33916 ">
       
    38 <p>string</p>
       
    39 </td>
       
    40 <td class="cellrowborder" valign="top" width="25%" headers="d0e33921 ">
       
    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="d0e33906 ">
       
    49 <p><code>criteria.Data</code></p>
       
    50 </td>
       
    51 <td class="cellrowborder" valign="top" width="25%" headers="d0e33911 ">
       
    52 <p>Specifies the contact to export.</p>
       
    53 </td>
       
    54 <td class="cellrowborder" valign="top" width="25%" headers="d0e33916 ">
       
    55 <p>object</p>
       
    56 </td>
       
    57 <td class="cellrowborder" valign="top" width="25%" headers="d0e33921 ">
       
    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="d0e33906 ">
       
    63 <p><code>[criteria.Data.DBUri]</code></p>
       
    64 </td>
       
    65 <td class="cellrowborder" valign="top" width="25%" headers="d0e33911 ">
       
    66 <p>Specifies the contacts database from which the contact is exported.</p>
       
    67 <p>If this property is not specified, the default database is used.</p>
       
    68 </td>
       
    69 <td class="cellrowborder" valign="top" width="25%" headers="d0e33916 ">
       
    70 <p>string</p>
       
    71 </td>
       
    72 <td class="cellrowborder" valign="top" width="25%" headers="d0e33921 ">&nbsp;</td>
       
    73 </tr>
       
    74 <tr class="bg ">
       
    75 <td class="cellrowborder" valign="top" width="25%" headers="d0e33906 ">
       
    76 <p><code>criteria.Data.DestinationFile</code></p>
       
    77 </td>
       
    78 <td class="cellrowborder" valign="top" width="25%" headers="d0e33911 ">
       
    79 <p>Specifies the full path and file name of the target file to which the
       
    80 contact is exported. The target file is created during the export and only
       
    81 contains the exported contact.</p>
       
    82 <div class="note"><p><strong class="note_title">Note: </strong></p><ul>
       
    83 <li><p>The target file will be in vCard format. For an example of
       
    84 this format, see below.</p></li>
       
    85 <li><p>The target file can have any file extension or no extension.
       
    86 Typically, the extension is <code>.vcf</code>.</p></li>
       
    87 <li><p>If the full path is not specified, the target file is created
       
    88 in the private folder of the process.</p></li>
       
    89 </ul>
       
    90 </div>
       
    91 </td>
       
    92 <td class="cellrowborder" valign="top" width="25%" headers="d0e33916 ">
       
    93 <p>string</p>
       
    94 </td>
       
    95 <td class="cellrowborder" valign="top" width="25%" headers="d0e33921 ">
       
    96 <p>The string cannot exceed 256 characters.</p>
       
    97 </td>
       
    98 </tr>
       
    99 <tr class="">
       
   100 <td class="cellrowborder" valign="top" width="25%" headers="d0e33906 ">
       
   101 <p><code>criteria.Data.id</code></p>
       
   102 </td>
       
   103 <td class="cellrowborder" valign="top" width="25%" headers="d0e33911 ">
       
   104 <p>Specifies the unique identifier of the contact to export.</p>
       
   105 </td>
       
   106 <td class="cellrowborder" valign="top" width="25%" headers="d0e33916 ">
       
   107 <p>string</p>
       
   108 </td>
       
   109 <td class="cellrowborder" valign="top" width="25%" headers="d0e33921 ">&nbsp;</td>
       
   110 </tr>
       
   111 </tbody>
       
   112 </table></div>
       
   113 <div><h3>vCard format example</h3>
       
   114 <pre class="codeblock" id="GUID-86CAC11C-B873-492A-BF2F-21A65987EBF9">BEGIN:VCARD
       
   115 VERSION:2.1
       
   116 N:Smith;John
       
   117 FN:John Smith
       
   118 ORG:Company Inc.
       
   119 TITLE:CEO
       
   120 TEL;WORK:VOICE:(555) 111-1111
       
   121 TEL;HOME;VOICE:(555) 222-2222
       
   122 ADR;WORK:;;Wall Street;New York City;NY;12345;United States of America
       
   123 LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Wall Street=0D=0ANew York City, NY 12345=0D=0AUnited States of America
       
   124 ADR;HOME:;;Broadway;New York City;NY;12345;United States of America
       
   125 LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Broadway=0D=0ANew York City, NY 12345=0D=0AUnited States of America
       
   126 EMAIL;PREF;INTERNET:john.smith@company.com
       
   127 REV:2008042T195243Z
       
   128 END:VCARD</pre>
       
   129 </div>
       
   130 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>