var inputParameters = Server.CommonSpot.UDF.util.duplicateBean(arguments.parameters); var currentValue = arguments.value; // the field's current value var readOnly = (arguments.displayMode EQ 'readonly') ? true : false; inputParameters = setDefaultParameters(argumentCollection=arguments); if ( !LEN(currentValue) ) currentValue = inputParameters.currentDefault; // if no current value entered /* if ( NOT LEN(currentValue) ){ // reset the currentValue to the currentDefault try { // if there is a user defined function for the default value if( inputParameters.useUDef ) currentValue = evaluate(inputParameters.currentDefault); else // standard text value currentValue = inputParameters.currentDefault; } catch( any e) { ; // let the current default value stand } }*/ readonly="true"> var inputParameters = Server.CommonSpot.UDF.util.duplicateBean(arguments.parameters); if ( NOT StructKeyExists(inputParameters, "defaultText") ) inputParameters.defaultText = ""; 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 ''; } // if your renderer makes use of CommonSpot registered resources, implement getResourceDependencies() and return a list of them, like this /*public string function getResourceDependencies() { return "jQuery,FileUploader"; // if this renderer extends another one that may require its own resources, it should include those too, like this: //return listAppend(super.getResourceDependencies(), "jQuery,FileUploader"); }*/ // if your renderer needs to load resources other than what's returned by its getResourceDependencies(() method,... // ...or if it uses the ADF scripts methods to load them, directly or indirectly via app-level methods, do that here // you could do this if some resources are loaded conditionally, based on context, page metadata, etc. // IMPORTANT: getResourceDependencies() still should return the full list of all resources that MIGHT be loaded, so exports can ensure they exist on a target system // by implementing loadResourceDependencies(), you're taking responsibility for keeping getResourceDependencies() in sync with it in that sense /*public void function loadResourceDependencies() { // application.starterApp.scripts.loadJQuery(); // application.starterApp.scripts.loadFileUploader(); // if this renderer extends another one that may require its own resources, it should load those too, like this: //super.loadResourceDependencies(); }*/