application.ADF.scripts.loadJQuery(noConflict=true); // Variable for the version of the field - Display in Props UI. fieldVersion = "2.1.3"; // initialize some of the attributes variables typeid = attributes.typeid; prefix = attributes.prefix; formname = attributes.formname; currentValues = attributes.currentValues; //Setup the default values defaultValues = StructNew(); defaultValues.chooserCFCName = ""; defaultValues.chooserAppName = ""; defaultValues.uiTheme = "ui-lightness"; defaultValues.minSelections = "0"; defaultValues.maxSelections = "0"; defaultValues.loadAvailable = "0"; defaultValues.loadAvailableOption = "useServerSide"; defaultValues.passthroughParams = ""; defaultValues.renderFieldLabelAbove = false; defaultValues.hideFieldLabelContainer = false; // Deprecated Settings defaultValues.forceScripts = "0"; //This will override the default values with the current values. currentValueArray = StructKeyArray(currentValues); for(i=1;i<=ArrayLen(currentValueArray);i++) { if(StructKeyExists(defaultValues,currentValueArray[i])) defaultValues[currentValueArray[i]] = currentValues[currentValueArray[i]]; } application.ADF.scripts.addHeaderCSS(cftGeneralChooserPropsCSS,"TERTIARY"); application.ADF.scripts.addFooterJS(cftGeneralChooserPropsJS,"TERTIARY");
Chooser Bean Name:
Name of the Object Factory Bean that will be used when rendering and
populating chooser data. (i.e. profileGC).
Note: Do NOT include ".cfc" in the name.
Chooser App Name:
The App Name that will be used to resolve the Chooser Bean Name
entered above. (i.e. ptProfile).
Note: This is optional. If left blank, it will use the first matching Bean Name found in the ADF object.
UI Theme:
Minimum Number of Selections:
Default: 0 (Use 0 to make a selection optional)
Maximum Number of Selections:
Default: 0 (Use 0 for unlimited selections)
Passthrough Params: #Server.CommonSpot.udf.tag.input(type="text", id="#prefix#passthroughParams", name="#prefix#passthroughParams", value="#defaultValues.passthroughParams#", size="70", class="InputControl")#
Optional comma-delimited list of Form or URL fields to pass through to dialogs invoked when the user presses the 'Add New Record' button.

Load All Available Selections:    
Select 'Yes' to load all the available selections on the form load.
Initial Load Style:    
Default is 'Use Server Side'. Select 'Use JavaScript' to force the initial load via an ajax request.

Render Field Label Above:    
Select 'Yes' to render the field label above the selection lists.
Hide Field Label:    
Select 'Yes' to not render the field label container. (Overrides the Render Label Above option.)

ADF Custom Field v#fieldVersion#