var inputParameters = application.ADF.data.duplicateStruct(arguments.parameters); inputParameters = setDefaultParameters(argumentCollection=arguments); if (inputParameters.renderField EQ "yes") super.renderLabel(argumentCollection=arguments); var inputParameters = application.ADF.data.duplicateStruct(arguments.parameters); var currentValue = arguments.value; // the field's current value // Set the Input Field Type var cftInputType = "hidden"; var cftInputSize = 0; var cftHeaderCSS = ''; inputParameters = setDefaultParameters(argumentCollection=arguments); if ( NOT LEN(currentValue) ) { // Set the Unique ID value the first time the field is rendered if ( inputParameters.uniqueIDtype EQ "csid" ) currentValue = Request.Site.IDMaster.getID(); else currentValue = createUUID(); } if (inputParameters.renderField EQ "yes") { cftInputType = "text"; cftInputSize = 40; } // set this into request scope so other objects can use this request[inputParameters.varName] = currentValue; application.ADF.scripts.addHeaderCSS(cftHeaderCSS,"TERTIARY"); size="#cftInputSize#"/>
request.#inputParameters.varName#: #request[inputParameters.varName]#
var inputParameters = application.ADF.data.duplicateStruct(arguments.parameters); if ( NOT StructKeyExists(inputParameters,"uniqueIDtype") OR LEN(TRIM(inputParameters.uniqueIDtype)) EQ 0 ) inputParameters.uniqueIDtype = "cfuuid"; // cfuuid or csid if ( NOT StructKeyExists(inputParameters,"varName") OR LEN(TRIM(inputParameters.varName)) EQ 0 ) inputParameters.varName = "uniqueID"; if ( NOT StructKeyExists(inputParameters,"renderField") OR inputParameters.renderField NEQ "yes" ) inputParameters.renderField = "no"; if ( NOT StructKeyExists(inputParameters,"renderRequestVar") OR !IsBoolean(inputParameters.renderRequestVar) ) inputParameters.renderRequestVar = "no"; return inputParameters; /* IMPORTANT: Since loadResourceDependencies() is using ADF.scripts loadResources methods, getResourceDependencies() and loadResourceDependencies() must stay in sync by accounting for all of required resources for this Custom Field Type. */ // if your renderer makes use of CommonSpot or ADF registered resources, tell exports about them, like this /*public void function loadResourceDependencies() { // No resources to load }*/ /* public string function getResourceDependencies() { // No resources to get return ""; }*/