var inputParameters = Duplicate(arguments.parameters); var currentValue = arguments.value; // the field's current value var appConfig = application.ptPhotoGallery.getAppConfig(); inputParameters = setDefaultParameters(argumentCollection=arguments); application.ptPhotoGallery.scripts.loadJQuery(); application.ptPhotoGallery.scripts.loadJQueryUI(); application.ptPhotoGallery.scripts.loadADFLightbox(); renderJSFunctions(argumentCollection=arguments,fieldParameters=inputParameters);
[Remove]
Photo Upload Crop Field is not configured. Please consult the documentation.
var inputParameters = Duplicate(arguments.fieldParameters); var currentValue = arguments.value; var appConfig = application.ptPhotoGallery.getAppConfig(); var uploadCropURL = application.ptPhotoGallery.csData.parseCSURL(str=appConfig.UPLOAD_CROP_URL); var loadScriptJS = ''; var CSRF_Token = application.ADF.csSecurity.getCSRF_Token(); // Load the inline JavaScript after the libraries have loaded application.ptPhotoGallery.scripts.addFooterJS(loadScriptJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY var inputParameters = Duplicate(arguments.parameters); // Set the photo field ID if ( NOT StructKeyExists(inputParameters, "photoFieldID") OR (LEN(inputParameters.photoFieldID) LTE 0) ) inputParameters.photoFieldID = arguments.fieldName; return inputParameters; public string function getResourceDependencies() { return listAppend(super.getResourceDependencies(), "jQuery,jQueryUI,ADFLightbox"); } public string function loadResourceDependencies() { // loading done conditionally by renderControl() }