BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-17-2008, 10:44 AM   #1
Mikal Donini
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: none
Posts: 32
Default how to programatically delete an appointment

Please Login to Remove!

Dear Forum,

I have implemented an application which adds a new item in the calendar appointment menu (and not in the calendar menu ). This new item is called "Remove Appointment" and especially performs the removal of the current opened appointment.

The code is here:

Code:
ApplicationMenuItemRepository rep = ApplicationMenuItemRepository.getInstance();
MyMenuItem mmi = new MyMenuItem();
repository.addMenuItem(ApplicationMenuItemRepository.MENUITEM_CALENDAR_EVENT, mmi);
Code:
public class MyMenuItem extends ApplicationMenuItem{
    ...
    public String toString() 
    {
    	return "Remove Appointment";
    }
    ...
    public Object run(Object context) 
    {
       Event event = (Event)context;

       EventList el = null;
       el = (EventList)BlackBerryPIM.getInstance().openPIMList( BlackBerryPIM.EVENT_LIST, BlackBerryPIM.READ_WRITE );
       el.removeEvent(event);
    }
}
This code works properly except that the removal of the event does not act as the delete command of the same menu. Indeed, removeEvent() correctly removes the appointment from the calendar but does not send a meeting cancellation to attendees.

The "Delete" command removes the meeting but also proposes to send meeting cancellation to attendees too.

So, my question is the following: is there a way to programatically delete an appointment as the "Delete command" does?

Thank you a lot for your precious help.

Mikal Donini, Arkadin France.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Good Chimera Dongle for All Modules Samsung HTC BLACKBERRY NOKIA LG HUAWEI picture

Good Chimera Dongle for All Modules Samsung HTC BLACKBERRY NOKIA LG HUAWEI

$307.22



Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5 picture

Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5

$124.95



Hypothermias BLACKBERRY  🍧 Snow Cone machine Shaved Ice Flavor Syrup GALLON picture

Hypothermias BLACKBERRY 🍧 Snow Cone machine Shaved Ice Flavor Syrup GALLON

$26.96



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$125.58



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$105.39



Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh picture

Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh

$219.95







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.