Hi
Please help me.
I have a Javascript code saved as a .js which runs fine in Windows but when add this script to a button in Livecycle and publish the form it does not run. Basically the javascript opens an Outlook meeting request. What am I doing wrong? My code is below:
function objappt(Subject, Start, Location, End, RequiredAttendees, Body) {
}
var objOL //As Outlook.Application;
var objAppt //As Outlook.AppointmentItem;
var olAppointmentItem = 1;
var olMeeting = 1;
objOL = new ActiveXObject("Outlook.Application");
objappt = objOL.CreateItem(olAppointmentItem);
// With objappt;
objappt.Subject = "My Test Appointment";
objappt.Start = "11/23/2008 9:00 AM";
objappt.End = "11/23/2008 9:45 AM";
// make it a meeting request;
objappt.MeetingStatus = olMeeting;
objappt.Location = "NSW";
objappt.Body = "Testing";
objappt.RequiredAttendees = "someone@somewhere.dom";
objappt.Display();
// End With;
objAppt = null;
objOL = null