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

Web and WebWorks Development

Reply
Developer
Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300
My Carrier: BSNL

Appointment Issue in OS6 9800

[ Edited ]

Hi all,
I am trying to integrate The Appointment in my Project,
But it is not saving the appointment.
I dont know where i am facing the problem.
Please help me asap.

I am using the below code:

 

<script type="text/javascript">
  // Create our Event
    var newAppt = new blackberry.pim.Appointment();
    newAppt.location = "Your office";
    newAppt.summary = "Talk about new project";
    newAppt.freeBusy = 0; // Free

  // Create our hour time slot
    var start = new Date();
    newAppt.start = start;
    var end = start.setHours(start.getHours() + 1);
    newAppt.end = end;

  // Create Attendee
    var attendees = [];
    var onlyAttendee = new blackberry.pim.Attendee();
    onlyAttendee.address = "john@foo.com";
    onlyAttendee.type = blackberry.pim.Attendee.INVITED;
    attendees.push(onlyAttendee);

    newAppt.attendees = attendees;
    newAppt.save();
</script>

 the code hang and cant be proceed when it comes to the save part.

Thanks & Regards,

Himansu

Thanks & Regards,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
Highlighted
Developer
Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300
My Carrier: BSNL

Re: Appointment Issue in OS6 9800

Please Help me..
I got stuck with this problem.

All the code working fine but when it comes to save the Appointment part. it hangs and can't read the further code.

Please help me if anyone know the solution.

Thanks & Regards,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.