appName = application.ptCalendar.getAppBeanName(); appConfig = application.ptCalendar.getAppConfig(); // Set the UI theme from the Configuration Element uiTheme = application.ptCalendar.getUItheme(); // Set the Event Cache status from the configuration element useEventsCache = application.ptCalendar.getEventCacheStatus(); useEventsCacheCallbacks = useEventsCache; // - EventsCache Override //useEventsCache = false; // (true/false) - Use this as an override for the Global setting that is managed via the Configuration element // set to 'true' to debug ajax calls (ie. after cs delete process) debugCallbackOutput = false; // Get custom element name that this manager is working with. ceName = application.ptCalendar.getEventDetailsCEName(); // Set the text for the button to Add New. if ( StructKeyExists(attributes,"buttonText") AND LEN(TRIM(attributes.buttonText)) ) request.params.addButtonTitle = attributes.buttonText; else request.params.addButtonTitle = "Add a New Calendar Event"; // Remove spaces and replace   request.params.addButtonTitle = REREPLACE(request.params.addButtonTitle,"[\s]"," ","all"); eventAddBean = "calEventsForms"; eventAddMethod = "renderEventEditForm"; // Load the jQuery scripts application.ptCalendar.scripts.loadJQuery(noConflict=1); application.ptCalendar.scripts.loadJQueryUI(themeName=UItheme); application.ptCalendar.scripts.loadADFLightbox();
#application.ptCalendar.ui.buildAddEditLink( appName=appName ,formBean=eventAddBean ,formMethod=eventAddMethod ,linkTitle=request.params.addButtonTitle ,formName=ceName ,dataPageID=0 ,refreshparent=true ,urlParams="callback=newEvent_cbFunct" ,lbTitle=request.params.addButtonTitle ,linkClass="add-button ui-state-default ui-corner-all" ,uiTheme=uiTheme )#