// If the ptCalendar bean name has been defined get the app config appConfig = StructNew(); if ( StructKeyExists(application,"ptCalendar") ) appConfig = application.ptCalendar.getAppConfig(); // Set the UI theme from the Configuration Element uiTheme = application.ptCalendar.getUItheme(); // Set the useEventCache flag for the management events search filtering from the configuration element useEventsCache = application.ptCalendar.getEventsManagementEventCacheStatus(); // - EventsCache Manual Override // useEventsCache = false; // (true/false) - Use this as an override for the Global settings that are managed via the Configuration element //Path to open the ligthbox to ajaxPath = application.ADF.lightboxProxy; //Bean to preform add/edit EditBean = "calEventsForms"; EditMethod = "renderEventEditForm"; EditLBaction = "refreshparent"; EditLinkTitle = "Edit Event"; //Bean to preform deletion DeleteBean = "forms_2_0"; DeleteMethod = "renderDeleteForm"; DeleteLinkTitle = "Delete Event"; //Bean to preform copy CopyBean = "calEventsForms"; CopyMethod = "renderCopyHTMLForm"; CopyLBaction = "refreshparent"; CopyLinkTitle = "Copy Event"; eventID = ""; eventQry = QueryNew("temp"); addEditUrlParameters = "&callback=updateEvent_cbFunct"; // use standard callback deleteUrlParameters=""; copyUrlParameters=""; displayEventCopyButton = true; //if ( len(trim(request.datasheet.currentColumnValue)) ) //parentID = request.datasheet.currentColumnValue; if ( len(trim(request.datasheet.currentColumnValue)) ) { eventID = request.datasheet.currentColumnValue; eventQry = application.ptCalendar.calEventsDAO.getEvents(eventID=eventID,useCache=useEventsCache); if ( eventQry.RecordCount ) { // Check if the event is a Broken Recurrence event... if so set the flag to not show the copy button if ( LEN(TRIM(eventQry.dateTimeID[1])) AND LEN(TRIM(eventQry.dthashID[1])) ) displayEventCopyButton = false; } } if ( LEN(TRIM(eventID)) ) { deleteUrlParameters="&callback=deleteEventChildren_cbFunct&cbIDlist=#eventID#"; //deleteDateTimeRecords_cbFunct copyUrlParameters="&eventID=#eventID#"; } sortColumn = "Title"; sortValue = request.DataSheetRow[sortColumn][Request.DataSheetRow.CurrentRow]; // *******Modification below this should not be needed.******* // calendarDataSheetModHeaderCSS = ""; calendarDataSheetModFooterJS = ""; formID = edata.MetadataForm; mouseoverJS = "jQuery(this).addClass('ui-state-hover')"; mouseoutJS = "jQuery(this).removeClass('ui-state-hover')"; addEditLink = "#ajaxPath#?bean=#EditBean#&method=#EditMethod#&formid=#formID#&dataPageId=#Request.DatasheetRow.pageid#&lbAction=#EditLBaction#&title=#EditLinkTitle##addEditUrlParameters#"; deleteLink = "#ajaxPath#?bean=#DeleteBean#&method=#DeleteMethod#&formid=#formID#&dataPageid=#Request.DatasheetRow.pageid#&title=#DeleteLinkTitle##deleteUrlParameters#"; copyLink = "#ajaxPath#?bean=#CopyBean#&method=#CopyMethod#&formid=#formID#&dataPageId=#Request.DatasheetRow.pageid#&lbAction=#CopyLBaction#&title=#CopyLinkTitle##copyUrlParameters#"; // Load the script headers application.ptCalendar.scripts.loadJQuery(); application.ptCalendar.scripts.loadJQueryUI(themeName=uiTheme); application.ptCalendar.scripts.loadADFLightbox(); .ds-icons-table { /* width: 50px; border: 1px solid ##000;*/ } .ds-icons-cell { /* width: 20px !important; */ /* border: 1px solid ##000; */ } .ds-icons, .ds-icons-spacer { text-decoration: none; padding: 1px 4px; margin-left: 4px; margin-right: 4px; width: 30px; /* border: 1px solid ##000; */ } .ds-icons:hover { cursor: pointer; } .ds-icons-link { /* width: 40px; */ /*border: 1px solid ##000;*/ } //initADFLB(); jQuery(document).on('click','.ds-icons,.CS_DataSheet_HeaderItem_First_Column,.CS_DataSheet_HeaderItem_Column',function() { initADFLB(); }); // Load the inline CSS as a CSS Resource application.ADF.scripts.addHeaderCSS(calDataSheetModHeaderCSS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY // Load the inline JS as a JS Resource if ( eparam.permitClientSideSort ) application.ADF.scripts.addFooterJS(calDataSheetModFooterJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY