// load jQuery headers //application.ptCalendar2.scripts.loadJQuery("1.3.2"); // Get CS ProductVersion productVersion = ListFirst(ListLast(request.cp.productversion," "),"."); // initialize app working variables notifyUsers = ""; // Set the render form or link flag renderForm = 1; // Check if we need to display the form if ( (StructKeyExists(request.params, "renderForm")) AND (IsBoolean(request.params.renderForm)) ) { renderForm = request.params.renderForm; } // Set the process flag processForm = 0; // Check if we need to display the after submit page /* if ( (StructKeyExists(request.params, "processForm")) AND (IsBoolean(request.params.processForm)) ) { processForm = request.params.processForm; } */ // Check if the form has been submitted if ( structKeyExists(request.params, "parameters") ) { processForm = 1; renderForm = 1; } // if available use the title in the request.params for the Lightbox DialogName if ( StructKeyExists(request.params,"title")) CD_DialogName = request.params.title; else CD_DialogName = ""; CD_Title=CD_DialogName; CD_IncludeTableTop=1; CD_CheckLock=0; // 2011-02-16 - Added flag to check if the user is authenticated CD_CheckLogin=false; CD_CheckPageAlive=0;
// extract some fields from the simple form formFieldVals = application.ptCalendar2.forms.extractFromSimpleForm(form, "UniqueID,parentID,category"); //,Title,eventDate,starttime,location //Application.ADF.utils.doDump(formFieldVals,"formFieldVals",1); TEST 2 // Send and Email to the Notification Contacts for each selected Event Category if ( structKeyExists(formFieldVals,"UniqueID") AND ListLen(formFieldVals.UniqueID) GT 0 ) notifyUsers = Application.ptCalendar2.eventNotificationService.notifyUsersByEventID(formFieldVals.UniqueID); Error Occcured.
application.ADF.scripts.loadJQuery();