// the fields current value currentValue = attributes.currentValues[fqFieldName]; // the param structure which will hold all of the fields from the props dialog xparams = parameters[fieldQuery.inputID]; if ( NOT StructKeyExists(xparams, "allowSubsiteAdd") OR LEN(xparams.allowSubsiteAdd) LTE 0 ) xparams.allowSubsiteAdd = "no"; if ( NOT StructKeyExists(xparams, "uiTheme") OR LEN(xparams.uiTheme) LTE 0 ) xparams.uiTheme = "smoothness"; if ( NOT StructKeyExists(xparams, "filterList") OR LEN(xparams.filterList) LTE 0 ) xparams.filterList = ""; //-- App Override Variables --// if ( NOT StructKeyExists(xparams, "appBeanName") OR LEN(xparams.appBeanName) LTE 0 ) xparams.appBeanName = ""; if ( NOT StructKeyExists(xparams, "appPropsVarName") OR LEN(xparams.appPropsVarName) LTE 0 ) xparams.appPropsVarName = ""; xparamsExceptionsList = "appBeanName,appPropsVarName"; // Optional ADF App Override for the Custom Field Type XPARAMS If ( LEN(TRIM(xparams.appBeanName)) AND LEN(TRIM(xparams.appPropsVarName)) ) { xparams = application.ADF.utils.appOverrideCSParams( csParams=xparams, appName=xparams.appBeanName, appParamsVarName=xparams.appPropsVarName, paramsExceptionList=xparamsExceptionsList ); } // load the jQuery library application.ADF.scripts.loadJQuery(); application.ADF.scripts.loadJQueryUI(themeName=xparams.uiTheme); application.ADF.scripts.loadJQuerySelectboxes(); //application.ADF.scripts.loadADFLightbox(); // Added for future use // TODO: Add options in Props for a Bean and a Method that return a custom Subsite Struct subsiteStructBeanName = "csData_1_2"; subsiteStructMethodName = "getSubsiteStruct"; selectField = "select_#fqFieldName#"; currentValueText = ""; // If the currentValue has a numeric value get the subsiteURL for that subsiteID if ( LEN(TRIM(currentValue)) AND IsNumeric(currentValue) AND StructKeyExists(request.subsitecache,currentValue) ) currentValueText = request.subsitecache[currentValue].URL; // Set defaults for the label and description includeLabel = true; includeDescription = true; //-- Update for CS 6.x / backwards compatible for CS 5.x -- // If it does not exist set the Field Permission variable to a default value if ( NOT StructKeyExists(variables,"fieldPermission") ) variables.fieldPermission = ""; //-- Read Only Check w/ cs6 fieldPermission parameter -- readOnly = application.ADF.forms.isFieldReadOnly(xparams,variables.fieldPermission); #application.ADF.forms.wrapFieldHTML(inputHTML,fieldQuery,attributes,variables.fieldPermission,includeLabel,includeDescription)#