// Load the jQuery Header application.ADF.scripts.loadJQuery(noConflict=true); // Variable for the version of the field - Display in Props UI. fieldVersion = "2.0.5"; // initialize some of the attributes variables typeid = attributes.typeid; prefix = attributes.prefix; formname = attributes.formname; currentValues = attributes.currentValues; // START - Build Date/Time picker type list pickerArray = ArrayNew(1); pickerType = StructNew(); pickerType.displayName = "UI Timepicker Addon"; pickerType.name = "UItimepickerAddon"; arrayAppend(pickerArray,pickerType); pickerType = StructNew(); pickerType.displayName = "UI Timepicker FG"; pickerType.name = "UItimepickerFG"; arrayAppend(pickerArray,pickerType); // END - Build Date/Time picker type list // Setup the default values defaultValues = StructNew(); defaultValues.fldID = ""; defaultValues.uiTheme = "ui-lightness"; defaultValues.displayType = pickerArray[1].name; defaultValues.fldIcon = "none"; //option: clock defaultValues.fldIconImg = "/ADF/extensions/customfields/time_picker/clock.png"; defaultValues.standardizedDateStr = "1900-01-01"; defaultValues.jsTimeMask = "h:mm TT"; defaultValues.cfTimeMask = "h:mm tt"; //-- App Override Variables --// defaultValues.appBeanName = ""; defaultValues.appPropsVarName = ""; // This will override the current values with the default values. // In normal use this should not need to be modified. defaultValueArray = StructKeyArray(defaultValues); for(i=1;i<=ArrayLen(defaultValueArray);i++){ // If there is a default value to exists in the current values // AND the current value is an empty string // OR the default value does not exist in the current values if( ( StructKeyExists(currentValues, defaultValueArray[i]) AND (NOT LEN(currentValues[defaultValueArray[i]])) ) OR (NOT StructKeyExists(currentValues, defaultValueArray[i])) ) { currentValues[defaultValueArray[i]] = defaultValues[defaultValueArray[i]]; } } application.ADF.scripts.addFooterJS(cftFooterJS,"TERTIARY");
Field ID:
Please enter the field ID to be used via JavaScript. If blank, will use default CS field name.

Field Configuration Settings:
Display Type:
UI Theme:
JS Display Format:
CF Display Format:
Standardized Date:
Show Icon next to Field: checked>    checked>

Optional ADF App PROPS Override Settings:
(IMPORTANT: If configured correctly these settings will override the entries above!)
App Bean Name:
Please enter the ADF Application's AppName to override these configuration settings.
App Props Variable Name:
Please enter the App Props Variable name that contains PROPS keys and values to override.

ADF Custom Field v#fieldVersion#