08-01-2005, 04:22 PM
Join Date: Aug 2005
Location: San Jose, CA
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Trouble adding new calendar entries to BB using Desktop API in Version 4
Please Login to Remove!
We are developing special software to link with a 3rd party app that accesses the Address book, Calendar and Tasks databases. we are using the latest Desktop 184.108.40.206 and are having trouble creating new appointments on the handheld.
For each of the three databases, we do the following to update new records through the DeskTop API version 3.6:
contacts = contactTable->LoadRecords (RIM_Mode_ReadWrite);
r = contacts->AddRecord();
. add field data to r
bbrecid = 0; // generate a new Record ID
hr = r->raw_Update(&bbrecid);
For all other databases, this works and new records are added properly. For the Calendar, every invocation of Update() zeros out the ID and it becomes recID "0" on the handheld. As would be expected, each subsequent update overwrites its predecessor and we wind up with only one record in that database, namely the last one written. We have tried setting the RecordID's to known values from 1 to 10000 with the same results.
This code works in previous versions of the handheld OS - namely 3.6 and 3.7.
Any insight to this issue would be helpful!
Last edited by Altwies : 08-02-2005 at 10:42 AM.