She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

how can i add an event

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

SteamyDave
Posts: 0
Joined: Wed Aug 05, 2015 9:40 am

how can i add an event

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

how can i add an event

do you already created this?

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

how can i add an event

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

how can i add an event

Hello,

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

how can i add an event

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

how can i add an event

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

how can i add an event

i already got this sergiy.

SteamyDave
Posts: 0
Joined: Wed Aug 05, 2015 9:40 am

how can i add an event

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

how can i add an event

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

Return to “Issues”