×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    how to find and delete calendar event

    how can i delete calendar events depending on description or summary?
    i'm using Platform Services 1.0 Calendar API in wrt environment

    thx

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: how to find and delete calendar event

    have you checked wiki examples for this already: http://wiki.forum.nokia.com/index.ph..._events_in_WRT

  3. #3
    Registered User
    Join Date
    Dec 2009
    Location
    Switzerland
    Posts
    121

    Re: how to find and delete calendar event

    Quote Originally Posted by symbianyucca View Post
    have you checked wiki examples for this already: http://wiki.forum.nokia.com/index.ph..._events_in_WRT
    Every time, I try to add a meeting I get this Error code:

    result.ErrorCode ===> 1000

    It works on the simulator, but not on my N8.

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: how to find and delete calendar event

    That error code is "Invalid service argument".

    Could you check if you manage to destroy an event using the following code:

    Code:
    function calendar_deleteCalendarEntry() {
        // The ID of the entry to be deleted
        var entryId = "2";
        var criteria = {
            Type: "CalendarEntry",
            Data: {
                LocalIdList: [entryId]
            }
        }
        try {
            // Warning: The calendar entry will be deleted permanently!
            var result = calendar_serviceObj.IDataSource.Delete(criteria);
            if (result.ErrorCode == 0) {
                alert("Calendar entry deleted successfully.");
            } else {
                alert("Error in deleting calendar entry");
            }
        } catch (ex) {    
            alert("Error in deleting calendar entry: " + ex);
        }
    }
    -Ilkka

Similar Threads

  1. How to delete duplicate calendar entries on N8?
    By nakul.k in forum General Development Questions
    Replies: 1
    Last Post: 2010-12-19, 13:52
  2. Replies: 7
    Last Post: 2010-03-30, 07:37
  3. Replies: 1
    Last Post: 2008-05-27, 14:47
  4. Where to find basic calendar and clock icons?
    By kaplasj in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-04-23, 11:55
  5. how to delete last log event?
    By tositpl in forum Symbian
    Replies: 2
    Last Post: 2004-03-31, 11:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×