[SailfishDevel] Howto access createEvent function in org.nemomobile.calendar ?

Matthias Barmeier barmeier at barmeier.com
Sun May 11 18:21:52 UTC 2014


Hi,

I would like to access the createEvent function from a .js file.
I tried the following:

--- SNIP
.import org.nemomobile.calendar 1.0 as Calendar

function addEvent (ocEvent) {

     var event = Calendar.createEvent();
---

But I only get: Object [object Object] has no method 'createEvent'

What can I do to make it work ?

Ciao
     Matze




More information about the Devel mailing list