var profileFormID = application.ptProfile.getProfileFormID(); var rtnHTML = ""; var formResultHTML = ""; // Google Analytics tags for the profile action if ( arguments.dataPageID EQ 0 ) request.params.ga_contentActions = "profile-create"; else request.params.ga_contentActions = "profile-update"; application.ptProfile.scripts.loadJquery(force=true); application.ptProfile.scripts.loadADFLightbox(force=true);
Saving Profile...

// Wrap the form HTML in the LB header/footer rtnHTML = application.ptProfile.forms.renderAddEditForm( formID=profileFormID, dataPageId=arguments.dataPageId, customizedFinalHtml=formResultHTML, callback="syncProfile"); return rtnHTML;
var targetModule = ""; var CD_dialogName = ""; var CD_Title = ""; application.ptProfile.scripts.loadJQuery(); application.ptProfile.scripts.loadADFLightbox(); if ( NOT StructKeyExists(request.params, "title") ) request.params.title = "Delete Profile"; targetModule = "/ADF/apps/pt_profile/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; CD_dialogName = encodeForHtml(request.params.title); CD_Title = CD_dialogName;