var retForm = ""; var appConfig = getAppConfig(); var eventFormID = getCalEventDetailsFormID(); var eventDataPageID = arguments.dataPageID; var formResultHTML = ""; var uiTheme = getUItheme(); var formFooter = ""; var submitStatusHTML = " Submitting..."; var processStatusHTML = " Processing..."; application.ptCalendar.scripts.loadJquery(); application.ptCalendar.scripts.loadJQueryUI(themeName=uiTheme); application.ptCalendar.scripts.loadADFLightbox(); #renderEventEditFormProcessingMsg()# application.ptCalendar.scripts.loadJQuery(); // Force jQueryUI to make sure the DateTime Builder CFT and Recurrence CFT Builder buttons and details render properly application.ptCalendar.scripts.loadJQueryUI(force=1,themeName=uiTheme); application.ptCalendar.scripts.loadADFLightbox(); retForm = formHeader; retForm = retForm & application.ptCalendar.forms.renderAddEditForm( formID = eventFormID ,dataPageId = eventDataPageID ,customizedFinalHtml=formResultHTML ,lbAction=arguments.lbAction ,callback=arguments.callback ); retForm = retForm & formFooter; return retForm; var retMsgHTML = ""; var processStatusHTML = " Processing...";

#processStatusHTML#
Please wait while this event is being processed!!

(This window will close when the process has completed.)

var appConfig = getAppConfig(); var reHTML = ""; var uiTheme = getUItheme(); var submitStatusHTML = " Copying..."; var actionApp = getAppBeanName(); var actionBean = "calEventsCopyController"; var actionMethod = "processEventCopyForm"; var actionURL = application.ADF.lightboxProxy; var dataStruct = StructNew(); var dateTimeDataArray = ArrayNew(1); var recurDataArray = ArrayNew(1); var dateTimeIDList = ""; var recurrenceIDList = ""; var noSrcIDMsg = ""; var noSrcDataMsg = ""; var dtCopyDefault = 1; var recurCopyDefault = 1; An Event ID was NOT provided!
This Event CANNOT be copied!
The Event Data could NOT be found!
This Event CANNOT be copied!
application.ptCalendar.scripts.loadJQuery(); application.ptCalendar.scripts.loadJQueryUI(themeName=uiTheme); // Include the Calendar Admin Style Sheet application.ptCalendar.calService.loadCalendarAdminCSS();
#noSrcIDMsg#
// Get the Event Details dataStruct = application.ptCalendar.calEventDetailsDAO.getEventDetailsDataByUniqueID(TRIM(arguments.eventID)); if ( StructKeyExists(dataStruct,"values") ) { if ( StructKeyExists(dataStruct.values,"EventDateTimeIDList") AND LEN(TRIM(dataStruct.values.EventDateTimeIDList)) ) { dateTimeIDList = dataStruct.values.EventDateTimeIDList; // Get the rendered Event Dates and Times dateTimeDataArray = application.ptCalendar.dateTimeBuilderController.buildDateTimeRenderData(dateTimeIDList=dateTimeIDList); } if ( StructKeyExists(dataStruct.values,"EventRecurrenceID") AND LEN(TRIM(dataStruct.values.EventRecurrenceID)) ) { recurrenceIDList = dataStruct.values.EventRecurrenceID; // Get the rendered Recurrence Properties recurDataArray = application.ptCalendar.recurrenceBuilderController.buildRecurrenceRenderData(uuidList=recurrenceIDList); } }
#noSrcDataMsg#
Source Event Details:
Event Title: #dataStruct.values.Title#
Event Dates and Times:
  • #dateTimeDataArray[k].renderString#
Recurrence Properties:
  • #recurDataArray[k].renderString#
Copy Options:
#submitStatusHTML#
 
 
var appConfig = getAppConfig(); var dataQry = QueryNew("temp"); var retHTML = ""; var useEventsCache = false; // TODO: use this when Events Cache is dyanmic and is always current // var useEventsCache = application.ptCalendar.getEventCacheStatus(); var uiTheme = getUItheme(); var submitStatusHTML = " Opening..."; var actionURL = application.ADF.lightboxProxy; var actionApp = application.ptCalendar.getAppBeanName(); var confirmBean = "calEventsConfirmController"; var confirmMethod = "processEditConfirmForm"; var editBean = "calEventsForms"; var editMethod = "renderEventEditForm"; var editTitle = "Edit Event"; //var editLBAction = "refreshparent"; //TODO: DELETE - THIS IS NOT NEEDED WHEN USING EVENT CACHE var editSeriesDefault="series"; //occurrence var showEditConfirmDialog = true; var noIDMsg = ""; var noDataMsg = ""; var currData = StructNew(); var occurrDataPageID = ""; var occurrEventID = ""; var seriesDataPageID = ""; var seriesEventID = ""; var eventType = ""; // Options: recurrencePattern, brokenRecurrence, orphanDateTime var eventData = StructNew(); var callbackAction = "updateEventCache_cbFunct"; var callbackActionID = ""; // Get the Event Details // - Determine if we need to open the dialog or just open the edit form if ( LEN(TRIM(arguments.dateTimeID)) AND LEN(TRIM(arguments.hashID)) ) { // DateTimeID and a HashID // - If we have both the DateTimeID and a HashID then this is a recurrence exception // - This event has a static dataTime // - Open the confirmation dialog showEditConfirmDialog = true; // Get Current Occurrence and Series IDs for the selected event // - TODO: When the Events Cache can be dynamically updated and is always current this can be changed to use the dymanic 'useEventsCache' currData = application.ptCalendar.calEventsSeriesService.getOccurrenceData( hashid=TRIM(arguments.hashID) ,dateTimeID=TRIM(arguments.dateTimeID) ,useCache=useEventsCache ); occurrEventID = currData.occurrEventID; occurrDataPageID = currData.occurrDataPageID; // Use this to open the OCCURRENCE seriesEventID = currData.seriesEventID; seriesDataPageID = currData.seriesDataPageID; // Use this to open the SEREIS eventType = currData.eventType; eventData = currData.occurrEventData; } else if ( LEN(TRIM(arguments.dateTimeID)) ) { // DateTimeID (only - no hashID) // - if we only have a dateTimeID then this is a static date/time // - Open the Event Details form directly // - No Confrim Dialog needed showEditConfirmDialog = false; // Get Current Occurrence and Series IDs for the selected event // - TODO: When the Events Cache can be dynamically updated and is always current this can be changed to use the dymanic 'useEventsCache' currData = application.ptCalendar.calEventsSeriesService.getOccurrenceData( hashid=TRIM(arguments.hashID) ,dateTimeID=TRIM(arguments.dateTimeID) ,useCache=useEventsCache ); occurrEventID = currData.occurrEventID; occurrDataPageID = currData.occurrDataPageID; // Use this to open the OCCURRENCE eventType = currData.eventType; eventData = currData.occurrEventData; // Only set the eventDataPageID if we are opening the form directly with no Confirmation Dialog eventDataPageID = occurrDataPageID; // Set the Callback ActionID tothe Event ID to update the Cache if ( LEN(TRIM(occurrEventID)) ) callbackActionID = occurrEventID; } else if ( LEN(TRIM(arguments.hashID)) ) { // HashID (only - no dateTimeID) // - If we only have a hashID then this is part of a Recurrence Series // - Open the confirmation dialog showEditConfirmDialog = true; // Get Current Occurrence and Series IDs for the selected event // - TODO: When the Events Cache can be dynamically updated and is always current this can be changed to use the dymanic 'useEventsCache' currData = application.ptCalendar.calEventsSeriesService.getOccurrenceData( hashid=TRIM(arguments.hashID) ,dateTimeID=TRIM(arguments.dateTimeID) ,useCache=useEventsCache ); seriesEventID = currData.seriesEventID; seriesDataPageID = currData.seriesDataPageID; // Use this to open the SEREIS eventType = currData.eventType; eventData = currData.seriesEventData; } // TODO: Right this to a log file if ( arguments.appDebug ) { application.ptCalendar.utils.dodump(currData,"currData",0); application.ptCalendar.utils.dodump(eventData,"eventData",0); application.ptCalendar.utils.doDump(occurrEventID,"occurrEventID",1); application.ptCalendar.utils.doDump(occurrDataPageID,"occurrDataPageID",1); application.ptCalendar.utils.doDump(seriesEventID,"seriesEventID",1); application.ptCalendar.utils.doDump(seriesDataPageID,"seriesDataPageID",1); application.ptCalendar.utils.doDump(eventType,"eventType",1); application.ptCalendar.utils.doDump(eventDataPageID,"eventDataPageID",1); application.ptCalendar.utils.doDump(callbackAction,"callbackAction",1); application.ptCalendar.utils.doDump(callbackActionID,"callbackActionID",1); } An ID was NOT provided!
This Event Form CAN NOT be opened!
A Event Data was not found!
This Event Form CAN NOT be opened!
// Include the Calendar Admin Style Sheet application.ptCalendar.calService.loadCalendarAdminCSS();
#noIDMsg#
application.ptCalendar.scripts.loadJQuery(); application.ptCalendar.scripts.loadJQueryUI(themeName=uiTheme); // Include the Calendar Admin Style Sheet application.ptCalendar.calService.loadCalendarAdminCSS();
#noIDMsg#
#noDataMsg#
Edit a Recurring Item:
"#eventData.Title#" is part of a series. Do you want to 'edit this occurrence' or 'edit the series'?
#submitStatusHTML#
 
 
var retHTML = ""; var appConfig = getAppConfig(); var uiTheme = getUItheme(); var beanForwardControlList = "calEventsForms,dateTimeBuilderForms"; var methodForwardControlList = "renderEventEditForm,renderEventDeleteForm,renderDeleteSeriesConfirmHTMLForm,renderDateTimeDeleteForm"; var lbFormURL = ""; var actionURL = application.ADF.lightboxProxy; var actionApp = getAppBeanName(); var errorMsg = ""; // Build the "Forwarder" URL to be opened in a LB lbFormURL = actionURL; lbFormURL = lbFormURL & '?bean=#arguments.bean#'; lbFormURL = lbFormURL & '&method=#arguments.method#'; lbFormURL = lbFormURL & '&appName=#actionApp#'; lbFormURL = lbFormURL & '&title=#arguments.lbTitle#'; if ( LEN(TRIM(arguments.dataPageID)) AND IsNumeric(arguments.dataPageID) ) lbFormURL = lbFormURL & '&datapageid=#arguments.dataPageID#'; if ( LEN(TRIM(arguments.lbAction)) ) lbFormURL = lbFormURL & '&lbAction=#arguments.lbAction#'; if ( LEN(TRIM(arguments.callback)) ) lbFormURL = lbFormURL & '&callback=#arguments.callback#'; if ( LEN(TRIM(arguments.appcallback)) ) lbFormURL = lbFormURL & '&appcallback=#arguments.appcallback#'; if ( LEN(TRIM(arguments.cbIDlist)) ) lbFormURL = lbFormURL & '&cbIDlist=#JSStringFormat(arguments.cbIDlist)#'; if ( LEN(TRIM(arguments.seriesID)) ) lbFormURL = lbFormURL & '&seriesID=#arguments.seriesID#'; if ( LEN(TRIM(arguments.occurrenceID)) ) lbFormURL = lbFormURL & '&occurrenceID=#arguments.occurrenceID#'; if ( LEN(TRIM(arguments.dateTimeID)) ) lbFormURL = lbFormURL & '&dateTimeID=#arguments.dateTimeID#'; if ( LEN(TRIM(arguments.includeExceptions)) ) lbFormURL = lbFormURL & '&includeExceptions=#arguments.includeExceptions#'; An ID was not provided!
The Form CANNOT be opened!
Security Error:
Denied the request to access an unauthorized function!
application.ptCalendar.scripts.loadJQuery(); application.ptCalendar.scripts.loadJQueryUI(themeName=uiTheme); application.ptCalendar.scripts.loadADFLightbox(); // Include the Calendar Admin Style Sheet application.ptCalendar.calService.loadCalendarAdminCSS();
#securityErrorMsg#
application.ptCalendar.utils.doDump(request.params,"request.params",0); application.ptCalendar.utils.doDump(arguments.bean,"bean",1); application.ptCalendar.utils.doDump(arguments.method,"method",1); application.ptCalendar.utils.doDump(arguments.dataPageID,"dataPageID",1); application.ptCalendar.utils.doDump(arguments.lbAction,"lbAction",1); application.ptCalendar.utils.doDump(arguments.lbTitle,"lbTitle",1);
var formID = application.ptCalendar.getCalEventDetailsFormID(); var eventDataPageID = arguments.dataPageID; var errorMsg = "Unable to delete this event!"; if ( IsNumeric(arguments.dataPageID) AND arguments.dataPageID GT 0 ) { // Call the FORMS delete function return application.ptCalendar.forms.renderDeleteForm( formID=formID ,dataPageID=arguments.dataPageID ,title=arguments.title ,callback=arguments.callback ,cbIDlist=arguments.cbIDlist ); } else { return errorMsg; } var appConfig = getAppConfig(); var dataQry = QueryNew("temp"); var retHTML = ""; var useEventsCache = false; // TODO: use this when Events Cache is dyanmic and is always current // var useEventsCache = application.ptCalendar.getEventCacheStatus(); var uiTheme = getUItheme(); var submitStatusHTML = " Processing..."; var actionURL = application.ADF.lightboxProxy; var actionApp = application.ptCalendar.getAppBeanName(); var confirmBean = "calEventsConfirmController"; var confirmMethod = "processDeleteTypeConfirmForm"; var deleteBean = "calEventsForms"; var deleteMethod = "renderEventDeleteForm"; var deleteTitle = "Delete Event"; var deleteCallback = "deleteEventChildren_cbFunct"; // Callback function to delete the Event Children in the DateTime and recurrence elements var deleteCallbackIDList = ""; // parent event ID var deleteDateTimeBean = "dateTimeBuilderForms"; var deleteDateTimeMethod = "renderDateTimeDeleteForm"; var deleteDateTimeTitle = "Delete Event Date and Time"; var deleteDateTimeCallback = "updateEventDateTime_cbFunct"; // Callback function to update the Event Details element var deleteDateTimeCallbackIDList = ""; // event ID to update var deleteSeriesDefault="occurrence"; var showDeleteConfirmDialog = true; var currData = StructNew(); var eventData = StructNew(); var eventType = ""; // Options: recurrencePattern, brokenRecurrence, orphanDateTime, siblingDateTime var eventDataPageID = ""; var eventDateTimeID = ""; var noIDMsg = ""; var noDataMsg = ""; // Get Current Occurrence and Series IDs for the selected event // - TODO: When the Events Cache can be dynamically updated and is always current this can be changed to use the dymanic 'useEventsCache' currData = application.ptCalendar.calEventsSeriesService.getOccurrenceData( hashid=TRIM(arguments.hashID) ,dateTimeID=TRIM(arguments.dateTimeID) ,useCache=useEventsCache ); // Determine if we need to open the dialog or just open the edit form if ( LEN(TRIM(arguments.dateTimeID)) AND LEN(TRIM(arguments.hashID)) ) { // DateTimeID and a HashID // - If we have both the DateTimeID and a HashID then this is a recurrence exception // - This event has a static dataTime // - Open the confirmation dialog showDeleteConfirmDialog = true; // Use the Occurrence Event Data to display details about the event eventData = currData.occurrEventData; } else if ( LEN(TRIM(arguments.dateTimeID)) ) { // DateTimeID (only - no hashID) // - if we only have a dateTimeID then this is a static date/time // Go directly to the standard Delete process showDeleteConfirmDialog = false; // - IMPORTANT!!! Delete ONLY this dataTime record .... unless it is the last dateTime record and there are NO recurrence props // - if this is the last (or only) datetime recordfor the event // - - Then, Open the Event Details FORM directly // - - No Series or Occurence Confrim Dialog needed // 1) We need to see if this event has recurrence props or sibling //TODO: DO NOT delete Event details... UNLESS this is the only dateTtime record left //If there are multiple DATETIME Records // - Update the deleteBean and deleteMethod vars to ONLY delete the dateTime record // - Pass the dataPageID of the DateTime record (NOT THE EVENT ID) // - UPDATE the Event Details record with the new DateTimeID list // DO NOT need the event data... never will be used //Use the Occurrence Event Data to display details about the event //eventData = currData.occurrEventData; if ( currData.EVENTTYPE EQ "orphanDateTime" ) { // Only set the eventDataPageID if we are opening the form directly with no Confirmation Dialog eventDataPageID = currData.occurrDataPageID; // Only set the callback ID of the Occurrence EventID if we are opening the form directly with no Confirmation Dialog // - This allow deletion of child records in bound elements deleteCallbackIDList = currData.occurrEventID; } else if ( currData.EVENTTYPE EQ "siblingDateTime" ) { eventDateTimeID = arguments.dateTimeID; // Event ID of the Event Record to update with the new DateTime data deleteDateTimeCallbackIDList = currData.occurrEventID; } } else if ( LEN(TRIM(arguments.hashID)) ) { // HashID (only - no dateTimeID) // - If we only have a hashID then this is part of a Recurrence Series // - Open the confirmation dialog showDeleteConfirmDialog = true; // Use the Series Event Data to display details about the event eventData = currData.seriesEventData; } // TODO: Right this to a log file if ( arguments.appDebug ) { application.ptCalendar.utils.dodump(currData,"currData - DELETE",0); application.ptCalendar.utils.doDump(eventType,"eventType",1); application.ptCalendar.utils.doDump(eventData,"eventData",0); application.ptCalendar.utils.doDump(eventDataPageID,"eventDataPageID",1); application.ptCalendar.utils.doDump(deleteCallbackIDList,"deleteCallbackIDList",1); } An ID was NOT provided!
This Event CAN NOT be DELETED!
A Event Data was not found!
This Event CAN NOT be DELETED!
// Include the Calendar Admin Style Sheet application.ptCalendar.calService.loadCalendarAdminCSS();
#noIDMsg#
application.ptCalendar.scripts.loadJQuery(); application.ptCalendar.scripts.loadJQueryUI(themeName=uiTheme);
#noIDMsg#
#noDataMsg#
Delete a Recurring Item:
"#eventData.Title#" is part of a recurrence series. Do you want to 'delete this occurrence' or 'delete the series'?
#submitStatusHTML#
 
 
var appConfig = getAppConfig(); var dataQry = QueryNew("temp"); var retHTML = ""; var useEventsCache = false; var uiTheme = getUItheme(); var submitStatusHTML = " Processing..."; var actionURL = application.ADF.lightboxProxy; var actionApp = application.ptCalendar.getAppBeanName(); var confirmBean = "calEventsConfirmController"; var confirmMethod = "processDeleteSeriesConfirmForm"; // processDeleteConfirmForm //var deleteBean = "calEventsForms"; //var deleteMethod = "renderEventDeleteForm"; //var deleteTitle = "Delete Event"; //var deleteCallback = "deleteEventChildren_cbFunct"; //var deleteCallbackIDList = ""; var noIDMsg = ""; An ID was NOT provided!
This Event CAN NOT be DELETED!
application.ptCalendar.scripts.loadJQuery(); application.ptCalendar.scripts.loadJQueryUI(themeName=uiTheme); // Include the Calendar Admin Style Sheet application.ptCalendar.calService.loadCalendarAdminCSS();
#noIDMsg#
Delete a Series of Events:
"#eventData.Title#" is part of a recurrence series. Do you want to 'delete this occurrence' or 'delete the series'?
--->
Are you sure you want to delete this Series of Events?
#submitStatusHTML#