// 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, "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
);
}
// Updated scripts to load with the site ADF
application.ADF.scripts.loadJQuery();
application.ADF.scripts.loadJQuerySelectboxes();
// Added for future use
// TODO: Add options in Props for a Bean and a Method that return a custom Subsite Struct
templateStructBeanName = "csData_1_2";
templateStructMethodName = "getSiteTemplates";
selectField = "select_#fqFieldName#";
// 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);
Loading Templates...
#application.ADF.forms.wrapFieldHTML(inputHTML,fieldQuery,attributes,variables.fieldPermission,includeLabel,includeDescription)#