// 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, "fldName") )
xparams.fldName = fqFieldName;
// Set the field ID from the field name
xparams.fldID = xparams.fldName;
if ( NOT StructKeyExists(xparams, "fldClass") )
xparams.fldClass = "";
if ( not structKeyExists(xparams, "fldSize") )
xparams.fldSize = "40";
if ( NOT StructKeyExists(xparams, "editOnce") )
xparams.editOnce = 0;
// 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( xParams.useUDef )
currentValue = evaluate(xParams.currentDefault);
else // standard text value
currentValue = xParams.currentDefault;
}
catch( any e)
{
; // let the current default value stand
}
}
// 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);
// Check the Edit Once flag
if ( LEN(currentValue) AND xparams.editOnce )
readOnly = true;
// Load JQuery
application.ADF.scripts.loadJQuery();
class="#xparams.fldClass#" tabindex="#rendertabindex#" readonly="true">
#application.ADF.forms.wrapFieldHTML(inputHTML,fieldQuery,attributes,variables.fieldPermission,includeLabel,includeDescription)#