var profileFormID = application.ptProfile.getProfileFormID(); var rtnHTML = ""; var saveType = "create"; if ( arguments.dataPageID NEQ 0 ) saveType = "update"; // Google Analytics tags for the profile action if ( saveType EQ "create" ) request.params.ga_contentActions = "profile-create"; else request.params.ga_contentActions = "profile-update"; // Wrap the form HTML in the LB header/footer rtnHTML = application.ptProfile.forms.renderAddEditForm( formID=profileFormID, dataPageId=arguments.dataPageId, formResultCallback="application.ptProfile.ProfileForms.renderProfileFormResult", saveType=saveType ); return rtnHTML; var formResultFooterJS = ""; var profileID = ""; if ( StructKeyExists(arguments,"FormValues") ) { if ( StructKeyExists(arguments.FormValues,"uniqueID") ) profileID = arguments.FormValues.uniqueID; } application.ptProfile.scripts.loadJQuery(); application.ptProfile.scripts.loadADFLightbox(); // Load the inline JavaScript after the libraries have loaded application.ptProfile.scripts.addFooterJS(formResultFooterJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY
Saving Profile...

var targetModule = ""; var CD_dialogName = ""; var CD_Title = ""; var deleteFooterJS = ''; application.ptProfile.scripts.loadJQuery(noConflict=1); application.ptProfile.scripts.loadADFLightbox(); // Load the inline JavaScript after the libraries have loaded application.ptProfile.scripts.addFooterJS(deleteFooterJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY 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;