appName = application.ptCalendar.getAppBeanName();
// Get the Configuration and Page Map Values
appConfig = application.ptCalendar.getAppConfig();
// Set the UI theme from the Configuration Element
uiTheme = application.ptCalendar.getUItheme();
// Set the Verbose Output setting from the Configuration Element
useVerboseOutput = application.ptCalendar.getVerboseOutputStatus();
eventsDatasource = application.ptCalendar.getCSdatasource();
ElementName = application.ptCalendar.getEventDetailsCEName();
ElementIDfield = "uniqueID";
elementViewName = application.ptCalendar.getCEViewName(ElementName);
// Set the useEventCache flag for the management events search filtering from the configuration element
useEventsCache = application.ptCalendar.getEventsManagementEventCacheStatus();
// If the App is set to use the Events Cache then we should still do the Events Cache Callbacks for creates/updates/deletes
useEventsCacheCallbacks = application.ptCalendar.getEventCacheStatus();
// - EventsCache Manual Override
//useEventsCache = false; // (true/false) - Use this as an override for the Global settings that are managed via the Configuration element
// - Debug Callback Output flag
debugCallbackOutput = false;
/* ** ptCalendar getRenderEventsData SETTINGS *** */
// -- THESE MUST ME INCLUDED AT THE TOP OF THE ptCalendar GRID/LIST RenderHandlers (before getRenderEventData)
// - ptCalendar Date Range designation
viewRangeType = "Month"; // (Month/Week/Day)
viewDisplayType = "Grid"; // (Small/Grid/List)
showAdminEditDeleteButtons = true;
// Set the filterIDlist if Event Filter form passes a value
filterIDList = "";
if ( StructKeyExists(request,"ptCalendar")
AND StructKeyExists(request.ptCalendar,"eventManager")
AND StructKeyExists(request.ptCalendar.eventManager,"eventIDlist")
AND LEN(TRIM(request.ptCalendar.eventManager.eventIDlist)) )
filterIDList = request.ptCalendar.eventManager.eventIDlist;
/* ** getRenderEventsData SETTINGS *** */
// ptCalendar date and data processing for the calendar renderhandler returns as an array of structs
// -- THIS MUST BE INCLUDED ABOVE THE EVENTS MANANGEMENT GRID
eventData = application.ptCalendar.calRenderController.getRenderManagementEventData(
viewRangeType=viewRangeType
,eventIDList=filterIDList
,useEventsCache=useEventsCache
);
// Callback Parameters
esController = "calEventsConfirmController";
dtbController = "dateTimeBuilderController";
rbController = "recurrenceBuilderController";
// Load the jQuery scripts
application.ptCalendar.scripts.loadJQuery(noConflict=1);
application.ptCalendar.scripts.loadJQueryUI(themeName=UItheme);
application.ptCalendar.scripts.loadADFLightbox();
// load headers for jQuery DataTables
application.ptCalendar.scripts.loadJQueryDataTables();
// load header for the Calendar CSS for the Calendar management Grid
application.ptCalendar.calService.loadCalendarCSS();
// load header for the Calendar Admin CSS
application.ptCalendar.calService.loadCalendarAdminCSS();
// Output Cache Status (if verbose output is turned on)
if ( useVerboseOutput )
application.ptCalendar.calEventsCacheService.renderCalendarCacheStatusHTML(eventsCacheStatusOverride=useEventsCache);
eparam.permitClientSideSort = false;
SELECT UniqueID, PageID, FormID, Title, EventDateTimeIDList, EventRecurrenceID, Organization, Category, Location, EventApproved, ApprovalUserID
FROM #elementViewName#
WHERE
application.ADF.scripts.addFooterJS(manageEventsDetailsFooterJS,"TERTIARY");
Edit/Delete/Copy
| Event Title
| Event Dates and Times
| Recurrence Properties
| Organizations
| Categories
| Location
| Approval Status
| Approver
|
#request.datasheet.currentFormattedValue#
#qEvents.Title# |
#request.datasheet.currentFormattedValue#
#request.datasheet.currentFormattedValue#
#request.datasheet.currentFormattedValue#
#request.datasheet.currentFormattedValue#
#qEvents.Location# |
#request.datasheet.currentFormattedValue#
#request.datasheet.currentFormattedValue#