org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-54013A2F-7503-4DA3-85C7-904BCD98B011.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 adding and updating calendar information"/><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-CABB28B8-D2B1-496B-BD7E-34FF496E60B4"/><meta name="DC.Relation" scheme="URI" content="GUID-4718B87C-0FFF-48EC-A47F-5C9F8C2E2A51"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-54013A2F-7503-4DA3-85C7-904BCD98B011"/><title>Criteria for
       
     5 adding and updating calendar information </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-54013A2F-7503-4DA3-85C7-904BCD98B011"><span>Criteria</span> for
       
     8 adding and updating calendar information</h1><div>
       
     9 <p>The <code>criteria</code> object specifies the calendar
       
    10 to create or the calendar entry to add or update:</p>
       
    11 <ul>
       
    12 <li><p>To create a new calendar, specify the properties listed in <a href="#GUID-F4D8D6BB-A6E4-4AB7-B33C-D89C226F12A4">Table:
       
    13 Creating a new calendar</a>.</p></li>
       
    14 <li><p>To add a new calendar entry, specify the properties listed
       
    15 in <a href="#GUID-43FD3F7F-ED96-4F10-8E3B-CDEDF5F75FA0">Table:
       
    16 Adding a new calendar entry</a>.</p></li>
       
    17 <li><p>To update an existing calendar entry, first use <a href="GUID-C2E995C2-535C-41A2-B69D-D36009BBE8C4.html#GUID-C2E995C2-535C-41A2-B69D-D36009BBE8C4"><code>GetList</code></a> to retrieve the <code>LocalId</code> of that entry, and then
       
    18 specify the properties listed in <a href="#GUID-29B3B9CA-14F6-441E-8175-DA3B75A5BA48">Table:
       
    19 Updating a calendar entry</a>. Use the <code>LocalId</code> returned
       
    20 by <code>GetList</code> as the value for <code>Item.LocalId</code>.</p>
       
    21 </li>
       
    22 </ul>
       
    23 <p>The <code>criteria</code> object has two main properties: <code>Type</code> and <code>Item</code>.</p>
       
    24 <div class="tablenoborder"><a name="GUID-F4D8D6BB-A6E4-4AB7-B33C-D89C226F12A4"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-F4D8D6BB-A6E4-4AB7-B33C-D89C226F12A4" frame="border" border="1" rules="all"><caption><strong>Table: </strong><span>Criteria</span> object properties (creating
       
    25 a new calendar)</caption>
       
    26 
       
    27 <thead align="left">
       
    28 <tr class="title "><th class="cellrowborder" valign="top" width="25%" id="d0e21532">
       
    29 <p>Property</p>
       
    30 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21537">
       
    31 <p>Description</p>
       
    32 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21542">
       
    33 <p>Type</p>
       
    34 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21547">
       
    35 <p>Value</p>
       
    36 </th></tr>
       
    37 </thead>
       
    38 <tbody>
       
    39 <tr class="">
       
    40 <td class="cellrowborder" valign="top" width="25%" headers="d0e21532 ">
       
    41 <p><code>criteria.Type</code></p>
       
    42 </td>
       
    43 <td class="cellrowborder" valign="top" width="25%" headers="d0e21537 ">
       
    44 <p>Specifies the type of calendar information to add or update.</p>
       
    45 <p>For creating a new calendar, this is always <code>"Calendar"</code>.</p>
       
    46 </td>
       
    47 <td class="cellrowborder" valign="top" width="25%" headers="d0e21542 ">
       
    48 <p>string</p>
       
    49 </td>
       
    50 <td class="cellrowborder" valign="top" width="25%" headers="d0e21547 ">
       
    51 <p>Possible values:</p>
       
    52 <ul>
       
    53 <li><p><code>"Calendar"</code></p></li>
       
    54 </ul>
       
    55 </td>
       
    56 </tr>
       
    57 <tr class="bg ">
       
    58 <td class="cellrowborder" valign="top" width="25%" headers="d0e21532 ">
       
    59 <p><code>criteria.Item</code></p>
       
    60 </td>
       
    61 <td class="cellrowborder" valign="top" width="25%" headers="d0e21537 ">
       
    62 <p>Specifies the calendar to create.</p>
       
    63 </td>
       
    64 <td class="cellrowborder" valign="top" width="25%" headers="d0e21542 ">
       
    65 <p>object</p>
       
    66 </td>
       
    67 <td class="cellrowborder" valign="top" width="25%" headers="d0e21547 ">
       
    68 <p>Object with the properties specified below</p>
       
    69 </td>
       
    70 </tr>
       
    71 <tr class="">
       
    72 <td class="cellrowborder" valign="top" width="25%" headers="d0e21532 ">
       
    73 <p><code>criteria.Item.CalendarName</code></p>
       
    74 </td>
       
    75 <td class="cellrowborder" valign="top" width="25%" headers="d0e21537 ">
       
    76 <p>Specifies the drive letter and file name of the new calendar file.</p>
       
    77 </td>
       
    78 <td class="cellrowborder" valign="top" width="25%" headers="d0e21542 ">
       
    79 <p>string</p>
       
    80 </td>
       
    81 <td class="cellrowborder" valign="top" width="25%" headers="d0e21547 ">
       
    82 <p><code>&lt;DriveLetter&gt;:&lt;FileName&gt;</code></p>
       
    83 <p>For example: <code>"C:Calendar"</code></p>
       
    84 </td>
       
    85 </tr>
       
    86 </tbody>
       
    87 </table></div><div class="tablenoborder"><a name="GUID-43FD3F7F-ED96-4F10-8E3B-CDEDF5F75FA0"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-43FD3F7F-ED96-4F10-8E3B-CDEDF5F75FA0" frame="border" border="1" rules="all"><caption><strong>Table: </strong><span>Criteria</span> object
       
    88 properties (adding a new calendar entry)</caption>
       
    89 
       
    90 <thead align="left">
       
    91 <tr class="title "><th class="cellrowborder" valign="top" width="25%" id="d0e21678">
       
    92 <p>Property</p>
       
    93 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21683">
       
    94 <p>Description</p>
       
    95 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21688">
       
    96 <p>Type</p>
       
    97 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21693">
       
    98 <p>Value</p>
       
    99 </th></tr>
       
   100 </thead>
       
   101 <tbody>
       
   102 <tr class="">
       
   103 <td class="cellrowborder" valign="top" width="25%" headers="d0e21678 ">
       
   104 <p><code>criteria.Type</code></p>
       
   105 </td>
       
   106 <td class="cellrowborder" valign="top" width="25%" headers="d0e21683 ">
       
   107 <p>Specifies the type of calendar information to add or update.</p>
       
   108 <p>For adding a new calendar entry, this is always <code>"CalendarEntry"</code>.</p>
       
   109 </td>
       
   110 <td class="cellrowborder" valign="top" width="25%" headers="d0e21688 ">
       
   111 <p>string</p>
       
   112 </td>
       
   113 <td class="cellrowborder" valign="top" width="25%" headers="d0e21693 ">
       
   114 <p>Possible values:</p>
       
   115 <ul>
       
   116 <li><p><code>"CalendarEntry"</code></p></li>
       
   117 </ul>
       
   118 </td>
       
   119 </tr>
       
   120 <tr class="bg ">
       
   121 <td class="cellrowborder" valign="top" width="25%" headers="d0e21678 ">
       
   122 <p><code>criteria.Item</code></p>
       
   123 </td>
       
   124 <td class="cellrowborder" valign="top" width="25%" headers="d0e21683 ">
       
   125 <p>Specifies the calendar entry to add.</p>
       
   126 <p>The exact set of properties that need to be specified depends on the
       
   127 type of the entry. For more information about which properties are valid for
       
   128 a given type, see section <a href="GUID-2B27591B-F58B-4C6B-8C35-6F65FCF599C6.html#GUID-2B27591B-F58B-4C6B-8C35-6F65FCF599C6">Properties and calendar entry types</a>.</p>
       
   129 </td>
       
   130 <td class="cellrowborder" valign="top" width="25%" headers="d0e21688 ">
       
   131 <p>object</p>
       
   132 </td>
       
   133 <td class="cellrowborder" valign="top" width="25%" headers="d0e21693 ">
       
   134 <p>Object with the properties specified below</p>
       
   135 </td>
       
   136 </tr>
       
   137 <tr class="">
       
   138 <td class="cellrowborder" valign="top" width="25%" headers="d0e21678 ">
       
   139 <p><code>[criteria.Item.CalendarName]</code></p>
       
   140 </td>
       
   141 <td class="cellrowborder" valign="top" width="25%" headers="d0e21683 ">
       
   142 <p>Specifies the calendar file to which the entry is added.</p>
       
   143 <p>If this property is not specified, the entry is added to the default
       
   144 calendar. If the default calendar does not exist, it is created.</p>
       
   145 </td>
       
   146 <td class="cellrowborder" valign="top" width="25%" headers="d0e21688 ">
       
   147 <p>string</p>
       
   148 </td>
       
   149 <td class="cellrowborder" valign="top" width="25%" headers="d0e21693 ">
       
   150 <p><code>&lt;DriveLetter&gt;:&lt;FileName&gt;</code></p>
       
   151 <p>For example: <code>"C:Calendar"</code></p>
       
   152 </td>
       
   153 </tr>
       
   154 <tr class="bg ">
       
   155 <td class="cellrowborder" valign="top" width="25%" headers="d0e21678 ">
       
   156 <p><code>criteria.Item.&lt;property&gt;</code></p>
       
   157 </td>
       
   158 <td class="cellrowborder" valign="top" width="25%" headers="d0e21683 ">
       
   159 <p>For detailed information about the properties and their values, see
       
   160 section <a href="GUID-5D53649F-FDE2-4421-A362-25C91EE76EF4.html#GUID-5D53649F-FDE2-4421-A362-25C91EE76EF4">Calendar entry properties</a>.</p>
       
   161 </td>
       
   162 <td class="cellrowborder" valign="top" width="25%" headers="d0e21688 ">
       
   163 <p>(depends on the property)</p>
       
   164 </td>
       
   165 <td class="cellrowborder" valign="top" width="25%" headers="d0e21693 ">
       
   166 <p>For example, to add a new meeting:</p>
       
   167 <p><code>criteria</code><code>.Item.Type
       
   168 = "Meeting";</code></p>
       
   169 </td>
       
   170 </tr>
       
   171 </tbody>
       
   172 </table></div><div class="tablenoborder"><a name="GUID-29B3B9CA-14F6-441E-8175-DA3B75A5BA48"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-29B3B9CA-14F6-441E-8175-DA3B75A5BA48" frame="border" border="1" rules="all"><caption><strong>Table: </strong><span>Criteria</span> object
       
   173 properties (updating a calendar entry)</caption>
       
   174 
       
   175 <thead align="left">
       
   176 <tr class="title "><th class="cellrowborder" valign="top" width="25%" id="d0e21868">
       
   177 <p>Property</p>
       
   178 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21873">
       
   179 <p>Description</p>
       
   180 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21878">
       
   181 <p>Type</p>
       
   182 </th><th class="cellrowborder" valign="top" width="25%" id="d0e21883">
       
   183 <p>Value</p>
       
   184 </th></tr>
       
   185 </thead>
       
   186 <tbody>
       
   187 <tr class="">
       
   188 <td class="cellrowborder" valign="top" width="25%" headers="d0e21868 ">
       
   189 <p><code>criteria.Type</code></p>
       
   190 </td>
       
   191 <td class="cellrowborder" valign="top" width="25%" headers="d0e21873 ">
       
   192 <p>Specifies the type of calendar information to add or update.</p>
       
   193 <p>For updating an existing calendar entry, this is always <code>"CalendarEntry"</code>.</p>
       
   194 </td>
       
   195 <td class="cellrowborder" valign="top" width="25%" headers="d0e21878 ">
       
   196 <p>string</p>
       
   197 </td>
       
   198 <td class="cellrowborder" valign="top" width="25%" headers="d0e21883 ">
       
   199 <p>Possible values:</p>
       
   200 <ul>
       
   201 <li><p><code>"CalendarEntry"</code></p></li>
       
   202 </ul>
       
   203 </td>
       
   204 </tr>
       
   205 <tr class="bg ">
       
   206 <td class="cellrowborder" valign="top" width="25%" headers="d0e21868 ">
       
   207 <p><code>criteria.Item</code></p>
       
   208 </td>
       
   209 <td class="cellrowborder" valign="top" width="25%" headers="d0e21873 ">
       
   210 <p>Specifies the new information and the calendar entry to update.</p>
       
   211 <p>The exact set of properties that need to be specified depends on the
       
   212 type of the entry. For more information about which properties are valid for
       
   213 a given type, see section <a href="GUID-2B27591B-F58B-4C6B-8C35-6F65FCF599C6.html#GUID-2B27591B-F58B-4C6B-8C35-6F65FCF599C6">Properties and calendar entry types</a>.</p>
       
   214 </td>
       
   215 <td class="cellrowborder" valign="top" width="25%" headers="d0e21878 ">
       
   216 <p>object</p>
       
   217 </td>
       
   218 <td class="cellrowborder" valign="top" width="25%" headers="d0e21883 ">
       
   219 <p>Object with the properties specified below</p>
       
   220 </td>
       
   221 </tr>
       
   222 <tr class="">
       
   223 <td class="cellrowborder" valign="top" width="25%" headers="d0e21868 ">
       
   224 <p><code>[criteria.Item.CalendarName]</code></p>
       
   225 </td>
       
   226 <td class="cellrowborder" valign="top" width="25%" headers="d0e21873 ">
       
   227 <p>Specifies the calendar file on which the update is performed.</p>
       
   228 <p>If this property is not specified, the update is performed on the default
       
   229 calendar.</p>
       
   230 </td>
       
   231 <td class="cellrowborder" valign="top" width="25%" headers="d0e21878 ">
       
   232 <p>string</p>
       
   233 </td>
       
   234 <td class="cellrowborder" valign="top" width="25%" headers="d0e21883 ">
       
   235 <p><code>&lt;DriveLetter&gt;:&lt;FileName&gt;</code></p>
       
   236 <p>For example: <code>"C:Calendar"</code></p>
       
   237 </td>
       
   238 </tr>
       
   239 <tr class="bg ">
       
   240 <td class="cellrowborder" valign="top" width="25%" headers="d0e21868 ">
       
   241 <p><code>criteria.Item.LocalId</code></p>
       
   242 </td>
       
   243 <td class="cellrowborder" valign="top" width="25%" headers="d0e21873 ">
       
   244 <p>Identifies the calendar entry to update. This can be either a parent
       
   245 or child entry.</p>
       
   246 </td>
       
   247 <td class="cellrowborder" valign="top" width="25%" headers="d0e21878 ">
       
   248 <p>string</p>
       
   249 </td>
       
   250 <td class="cellrowborder" valign="top" width="25%" headers="d0e21883 ">&nbsp;</td>
       
   251 </tr>
       
   252 <tr class="">
       
   253 <td class="cellrowborder" valign="top" width="25%" headers="d0e21868 ">
       
   254 <p><code>[criteria.Item.InstanceStartTime]</code></p>
       
   255 </td>
       
   256 <td class="cellrowborder" valign="top" width="25%" headers="d0e21873 ">
       
   257 <p>In case of a recurring entry, specify <code>InstanceStartTime</code> to
       
   258 identify the instance to modify. The specified instance is stored as a new
       
   259 child entry.</p>
       
   260 <p>If this property is not specified, the whole entry is updated.</p>
       
   261 </td>
       
   262 <td class="cellrowborder" valign="top" width="25%" headers="d0e21878 ">
       
   263 <p>date object</p>
       
   264 </td>
       
   265 <td class="cellrowborder" valign="top" width="25%" headers="d0e21883 ">&nbsp;</td>
       
   266 </tr>
       
   267 <tr class="bg ">
       
   268 <td class="cellrowborder" valign="top" width="25%" headers="d0e21868 ">
       
   269 <p><code>criteria.Item.&lt;property&gt;</code></p>
       
   270 </td>
       
   271 <td class="cellrowborder" valign="top" width="25%" headers="d0e21873 ">
       
   272 <p>For detailed information about the properties and their values, see
       
   273 section <a href="GUID-5D53649F-FDE2-4421-A362-25C91EE76EF4.html#GUID-5D53649F-FDE2-4421-A362-25C91EE76EF4">Calendar entry properties</a>.</p>
       
   274 <p>Properties that are not specified remain unchanged.</p>
       
   275 </td>
       
   276 <td class="cellrowborder" valign="top" width="25%" headers="d0e21878 ">
       
   277 <p>(depends on the property)</p>
       
   278 </td>
       
   279 <td class="cellrowborder" valign="top" width="25%" headers="d0e21883 ">&nbsp;</td>
       
   280 </tr>
       
   281 </tbody>
       
   282 </table></div></div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>