Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User nbanke's Avatar
    Join Date
    Jul 2009
    Posts
    4
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    have you checked wiki examples for this already: http://wiki.forum.nokia.com/index.ph..._events_in_WRT

  3. #3
    Registered User Tiger54's Avatar
    Join Date
    Dec 2009
    Location
    Switzerland
    Posts
    120
    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 Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    832
    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. how to get the Create and Delete Access pointer event?
    By lmyuanhang in forum Symbian C++
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved