calGlobalConfig = application.ptCalendar2.getAppConfig(); // Set the UI theme from the Configuration Element if ( structKeyExists(calGlobalConfig,"calendar_app_ui_theme") AND LEN(TRIM(calGlobalConfig['calendar_app_ui_theme'])) ) UItheme = calGlobalConfig['calendar_app_ui_theme']; else UItheme = 'redmond'; // load jQuery headers application.ptCalendar2.scripts.loadJQuery(); // load headers for ADF light box application.ptCalendar2.scripts.loadADFLightbox(); // load header for jQuery UI application.ptCalendar2.scripts.loadJQueryUI(themeName=UItheme); ManageElementName = "ptCalendar2_Configuration"; ManagePageTitleText = "Manage Calendar App Configuration"; AddRecordLinkText = "Add New Config Data"; AjaxPath = application.ADF.ajaxProxy; AjaxBean = "forms_1_1"; renderForm = "renderAddEditForm"; formID = application.ADF.cedata.getFormIDByCEName(variables.ManageElementName); dpid = 0; formResultHTML = ""; lightboxwidth = 600; lightboxheight = 500; // Only Add ONE config record to the Element // So remove the ADD LINK if a record exists showAddLink = true; showResetLink = false; ceArray = application.ptCalendar2.ceData.getCEData(ManageElementName); if ( ArrayLen(ceArray) GT 0 ) { showAddLink = false; showResetLink = true; }
#ManagePageTitleText#

#AddRecordLinkText# (Disabled - Configuration Exists)