Page 1 of 3

how can i add an event

Posted: Wed Aug 12, 2015 7:27 am
by She

Hi Team,

How can i add an event that will create a note to the native calendar of the gadget?

for example:
Event Title : Meeting - LABEL
When: 8/12/2015 - LABEL
Description: Company Meeting - LABEL

add to Calendar - BUTTON(when the user clicks the button the NATIVE calendar of the gadget will open and automatic added the listed above.)

i hope you can help me here

Thanks,
She


how can i add an event

Posted: Wed Aug 12, 2015 8:56 am
by SteamyDave

This post might be of help...
Is it possible to insert items directly into the calendar on the phone or would the phone block this?

I have not got my head around it yet but it sounds a similar question.

David


how can i add an event

Posted: Thu Aug 13, 2015 5:52 am
by She

do you already created this?


how can i add an event

Posted: Wed Aug 26, 2015 6:34 am
by She

Hi Team,
I followed the link that Dave gave to me. I put the ff: code to the button

code
var startDate = new Date("October 15, 2015 13:45:00");
var endDate = new Date("October 15, 2013 14:45:00");
var title = "xxxxxxxxxxxxxxxxxxxxx&quot
var location = "Manila Hotel&quot
var notes = "Pelvic Emergencies, Ultrasound Finding - Obstetrics.&quot
var success = function(message) { alert("Success: " + JSON.stringify(message)); };
var error = function(message) { alert("Error: " + message); };

//Android
window.plugins.calendar.createEvent(title,location,notes,startDate,endDate,success,error);
/code

But this code is not doing anything and there's no error in wenrier

hope you can help me.

Thank you,
She


how can i add an event

Posted: Mon Aug 31, 2015 11:52 am
by Serhii Kulibaba

Hello,

Did you add that plugin? I can't see declaration of the calendar in your code. Please check an example from the link


how can i add an event

Posted: Tue Sep 01, 2015 1:26 am
by She

what kind of declaration? thats all i can see, and i followed all the instructions to the link.


how can i add an event

Posted: Wed Sep 02, 2015 10:58 am
by Serhii Kulibaba

I mean codewindow.plugins.calendar.createCalendar(calendarName,success,error);/code


how can i add an event

Posted: Fri Sep 04, 2015 12:38 am
by She

i already got this sergiy.


how can i add an event

Posted: Fri Sep 04, 2015 10:45 am
by SteamyDave

Hi She,

I still have not got this working!

Did you go through all the steps in the git hub instructions, like editing config.xml, uploading the .js and .java files?

At the moment, F12 shows that the Calendar.js file is not found (404), even though I have uploaded it to
WEB_RESOURCES-files-resources-js-Calendar.js
Not exactly sure that is where it is supposed to go.

Dave


how can i add an event

Posted: Mon Sep 07, 2015 2:34 am
by She

Hi Dave,
I didnt use the web_resource here. i upload it to the android and iOS. just followed the TOAST PLUGIN here(https://devcenter.appery.io/documenta...)

i just followed the instructions and then it works fine.

Goodluck,
She