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
oniongarlic
Posts: 72
Registered: ‎10-19-2012
My Device: Playbook, BB10DevAlphaB
My Carrier: Sonera, Saunalahti

sys.pim.calendar.viewer.eventcreate and event location?

I would like to set the event location when invoking the Calendar with sys.pim.calendar.viewer.eventcreate But the documentation does not mention location at all http://developer.blackberry.com/cascades/documentation/device_platform/invocation/calendar.html Any ideas?
Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: sys.pim.calendar.viewer.eventcreate and event location?

Hi,

 

Here it is :

 

CalendarEvent event;
event.setStartTime(QDateTime(2012, 11, 30, 14, 0, 0));
event.setEndTime(QDateTime(2012, 11, 30, 15, 0, 0));
event.setSensitivity(Sensitivity::smileytongue:ersonal);
event.setSubject("Doctor's appointment");
event.setLocation("INDIA");

 

reference : http://developer.blackberry.com/cascades/reference/bb__pim__calendar__calendarevent.html#function-lo...

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
Developer
oniongarlic
Posts: 72
Registered: ‎10-19-2012
My Device: Playbook, BB10DevAlphaB
My Carrier: Sonera, Saunalahti

Re: sys.pim.calendar.viewer.eventcreate and event location?

That does not help as I'm was talking about using the Invoke framework. I don't see that you can use a CalendarEvent object with the Invoke framework in the documentation.
Please use plain text.