// Do Not Cache this RH
request.element.isStatic = 0;
actionApp = application.ptCalendar.getAppBeanName();
actionBean = "calEventsiCalService";
actionMethod = "iCalProxy";
actionURL = "#application.ADF.ajaxProxy#?app=#actionApp#&bean=#actionBean#&method=#actionMethod#";
//actionURL = "#request.subsiteCache[1].url#_cs_apps/pt_calendar/customcf/icalProxy.cfm";
//application.ptCalendar.utils.doDump(actionURL,"actionURL",1);
/******************************/
// DEV TEST EVENT DATA
testData = StructNew();
testData.organizerName="Services";
testData.organizerEmail="services@paperthin.com";
testData.eventDate="2011-08-01 00:00:00";
testData.startTime="1900-01-01 11:30:00";
testData.endTime="1900-01-01 13:30:00";
testData.allday=0;
//testData.startTime="";
//testData.endTime="";
//testData.allday=1;
testData.Title="Lunch with Greg";
testData.location="LoneStar Steakhouse";
testData.description=testData.Title;
if ( LEN(TRIM(testData.allDay)) AND testData.allDay )
{
startDateTime = DateFormat(testData.eventDate,"YYYY-MM-DD");
endDateTime = DateFormat(DateAdd("d",1,testData.eventDate),"YYYY-MM-DD");
alldayEvent = 1;
}
else
{
alldayEvent = 0;
startDateTime = application.ptCalendar.date.formatDateTimeISO8601(
date=testData.eventDate
,time=testData.startTime
);
endDateTime = application.ptCalendar.date.formatDateTimeISO8601(
date=testData.eventDate
,time=testData.endTime
);
}
WriteOutput("All Day:" & alldayEvent & "
");
WriteOutput("Start:" & startDateTime & "
");
WriteOutput("End:" & endDateTime & "
");
// load jQuery headers
application.ptCalendar.scripts.loadJQuery();
// Load the DateJS Plugin Headers
application.ptCalendar.scripts.loadDateJS();
// load header for jQuery iCalendar
application.ptCalendar.scripts.loadJQueryiCalendar();
Event Title: #testData.Title#
Download to your Calendar:
Test:
View Global Custom Element Data Dump
View RSS Data Dump
--->
--->
#application.ptCalendar.utils.doDump(testData,"testData",1)#