var udfResults = ''; var APIPostToNewWindow = false; var rtnHTML = ""; var formResultHTML = ""; // Find out if the CE contains an RTE field //var formContainRTE = application.ADF.ceData.containsFieldType(arguments.formID, "formatted_text_block"); // Load the scripts, check if we need to load // the JSON scripts for the callback. // 2011-03-26 - MFC - Commented out force JQuery, the loadADFLightbox with force will // load JQuery. //variables.scripts.loadJQuery(force=1); variables.scripts.loadADFLightbox(force=1); #arguments.customizedFinalHtml# // ADF Lightbox needs to be forced to load the browser-all.js into // the lightbox window for CE's with RTE fields //variables.scripts.loadADFLightbox(force=1); #udfResults# #variables.scripts.loadJQuery()# variables.scripts.loadJquery(); variables.scripts.loadADFLightbox(); targetModule = "/ADF/extensions/datasheet-modules/delete_element_handler.cfm"; // IF in CS6.1 or greater set into 'RealTargetModule' variable if ( application.ADF.csVersion GTE 6.1 ) realTargetModule = targetModule; request.params.pageID = arguments.dataPageID; request.params.formID = arguments.formID; if(Len(arguments.callback)) { request.params.callback = arguments.callback; if(Len(Trim(arguments.cbIDlist))) request.params.cbIDlist = arguments.cbIDlist; } CD_DIALOGNAME = arguments.title; var readOnly = true; var productVersion = ListFirst(ListLast(request.cp.productversion," "),"."); var commonGroups = ""; // Determine if this field should be read only due to "Use Explicit Security" // Check the CS version if ( productVersion GTE 6 ) { // For CS 6.x and above // - If the user has ready only rights (fieldPermission = 1) readOnly will be true if ( LEN(TRIM(arguments.fieldPermission)) AND arguments.fieldPermission EQ 1 ) readOnly = true; else readOnly = false; } else { // For CS 5.x // Get the list permissions and compare commonGroups = application.ADF.data.ListInCommon(request.user.grouplist, arguments.xparams.pedit); // Check if the user does have edit permissions if ( (arguments.xparams.UseSecurity EQ 0) OR ( (arguments.xparams.UseSecurity EQ 1) AND (ListLen(commonGroups)) ) ) readOnly = false; } return readOnly; var returnHTML = ''; var productVersion = ListFirst(ListLast(request.cp.productversion," "),"."); var row = arguments.fieldQuery.currentRow; var fqFieldName = "fic_#arguments.fieldQuery.ID[row]#_#arguments.fieldQuery.INPUTID[row]#"; var description = arguments.fieldQuery.DESCRIPTION[row]; var fieldName = arguments.fieldQuery.fieldName[row]; var xparams = arguments.attr.parameters[arguments.fieldQuery.inputID[row]]; var currentValue = arguments.attr.currentValues[fqFieldName]; var labelStart = arguments.attr.itemBaselineParamStart; var labelEnd = arguments.attr.itemBaseLineParamEnd; var renderMode = arguments.attr.rendermode; var renderSimpleFormField = false; var doHiddenFieldSecurity = false; // No Edit / No Readonly ... just a hidden field var editGroups = ""; var viewGroups = ""; //If the fields are required change the label start and end if ( xparams.req eq "Yes" ) { labelStart = arguments.attr.reqItemBaselineParamStart; labelEnd = arguments.attr.reqItemBaseLineParamEnd; } // Determine if this is rendererd in a simple form or the standard custom element interface if ( (StructKeyExists(request, "simpleformexists")) AND (request.simpleformexists EQ 1) ) { renderSimpleFormField = true; } // Determine if this field should be hidden due to "Use Explicit Security" // - Check the CS version if ( productVersion GTE 6 ) { // For CS 6.x and above // - If the user has no rights (fieldSecurity = 0) to the field then doHiddenSecurity should be true if ( LEN(TRIM(arguments.fieldPermission)) AND arguments.fieldPermission LTE 0 ) { doHiddenFieldSecurity = true; } // TODO: determine if this conditional logic is needed to display the description or not (fieldPermission is new to CS6.x) //if ( renderMode NEQ 'standard' OR fieldpermission LTE 0 ) //arguments.includeDescription = false; } else { // For CS 5.x // Get the list permissions and compare for security editGroups = application.ADF.data.ListInCommon(request.user.grouplist, xparams.pedit); viewGroups = application.ADF.data.ListInCommon(request.user.grouplist, xparams.pread); // - If user is part for the edit or view groups doHiddenSecurity should remain false if ( xparams.UseSecurity AND ListLen(viewGroups) EQ 0 AND ListLen(editGroups) EQ 0 ) { doHiddenFieldSecurity = true; } } #labelStart# #labelEnd# colspan="2"> #arguments.fieldInputHTML# colspan="2"> #arguments.attr.descParamStart# #description#

#arguments.attr.descParamEnd#
#variables.ui.wrapHTMLwithLBHeaderFooter(argumentCollection=arguments)# return CreateObject("component","ADF.thirdParty.cfformprotect.cffpVerify2").init(); var key = ''; // load cfformprotect var cffp = application.ADF.forms.loadCFFormProtect(); var form = StructNew(); var thisFormEntry = StructNew(); var thisPageId = ""; var isValid = true; // application.ADF.utils.doDump(formStruct,"formStruct", false); // get the UUID of the element data just submitted by the simple form thisFormEntry = application.ADF.ceData.getCEData(arguments.elementName,arguments.primaryKey, form[arguments.primaryKey]); // using the UUID, get the PageId (primary key) of the record just submitted if (Arraylen(thisFormEntry)) { thisPageId = thisFormEntry[1].pageID; } // delete the spam record from the element. if (len(thisPageID)) { application.ADF.ceData.deleteCE(thisPageID); } isValid = false;