var inputParameters = Duplicate(arguments.parameters); var currentValue = arguments.value; // the field's current value var readOnly = (arguments.displayMode EQ 'readonly') ? true : false; // Get the Photo Category records var photoCategoryData = application.ptPhotoGallery.photoDAO.getCategories(); inputParameters = setDefaultParameters(argumentCollection=arguments); // Validate the property fields are defined if(!Len(currentvalue) AND StructKeyExists(inputParameters, "defaultVal")) currentValue = inputParameters.defaultVal; // Check if a forced category is passed over the params if ( StructKeyExists(request.params, "category") AND LEN(request.params.category) ) { // Set the current value to defaulted category currentValue = request.params.category; // hide the field so the category can't be changed inputParameters.displayField = "false"; } renderJSFunctions(argumentCollection=arguments,fieldParameters=inputParameters); var inputParameters = Duplicate(arguments.fieldParameters); var inputParameters = Duplicate(arguments.parameters); if ( NOT StructKeyExists(inputParameters, "displayField") ) inputParameters.displayField = "true"; if ( NOT StructKeyExists(inputParameters, "jsFieldID") ) inputParameters.jsFieldID = arguments.fieldName; return inputParameters; private any function getValidationJS(required string formName, required string fieldName, required boolean isRequired) { if (arguments.isRequired) return 'hasValue(document.#arguments.formName#.#arguments.fieldName#, "TEXT")'; return ""; } private string function getValidationMsg() { return "Please select a value for the #arguments.label# field."; } public string function getResourceDependencies() { return listAppend(super.getResourceDependencies(), "jQuery"); } public string function loadResourceDependencies() { application.ADF.scripts.loadJQuery(); }