Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 148
Registered: ‎01-08-2013
My Device: 9860
My Carrier: Airtel

Delete calendar event

[ Edited ]

Hi All,

     

 I have add calendar event in the native calendar application But I can not delete this event. The given bellow code is for add event to calendar service

 

CalendarService calendarService;

	// create a new event
	CalendarEvent ev;
	ev.setAccountId(1);
	ev.setFolderId(1);
	ev.setStartTime(QDateTime(startDateValue,startTimeValue));
	ev.setEndTime(QDateTime(endDateValue,endTimeValue));
	ev.setSubject(title);
	ev.setReminder(10);
	ev.setBody(note);
	ev.setLocation(location);
	// save it to the database
	calendarService.createEvent(ev);

 But, how to delete using another function. Please help me.

 

Thanks & Regards

    Sanjit

Regular Contributor
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: Delete calendar event

There should be amethod to removeEvent, what is your problem exactly?