// 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,'ShowSize') ) xparams.ShowSize = 0; if( NOT StructKeyExists(xparams,'ShowFixedWidth') ) xparams.ShowFixedWidth = 0; if( NOT StructKeyExists(xparams,'ShowBorder') ) xparams.ShowBorder = 0; if( NOT StructKeyExists(xparams,'ShowSpin') ) xparams.ShowSpin = 0; if( NOT StructKeyExists(xparams,'ShowPull') ) xparams.ShowPull = 0; defaultFAversion = "4.2.0"; if( NOT StructKeyExists(xparams,'iconDataFile') OR LEN(TRIM(xparams.iconDataFile)) ) xparams.iconDataFile = "/ADF/thirdParty/css/font-awesome/#defaultFAversion#/data/icon-data.csv"; // Validate if the property field has been defined if ( NOT StructKeyExists(xparams, "fldID") OR LEN(xparams.fldID) LTE 0 ) xparams.fldID = 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); // Get the Full File Path to the IconDataFile iconDataFilePath = ExpandPath(xparams.iconDataFile); iconDataArr = ArrayNew(1); // Make sure the data file exists if ( FileExists(iconDataFilePath) ) { // Convert the CSV file to a qry iconDataArr = application.ADF.data.csvToArray(file=iconDataFilePath,Delimiter=","); } // Build the Font Awesome Icons array fontArray = ArrayNew(1); for ( a=1; a LTE ArrayLen(iconDataArr); a=a+1 ) { ArrayAppend( fontArray, '#iconDataArr[a][1]#,#iconDataArr[a][2]#' ); } // Set the curval for( i=1; i lte ArrayLen(fontArray); i=i+1 ) { if ( ListFirst(fontArray[i]) eq currentvalue ) { curval = "#ListLast(fontArray[i])# #ListFirst(fontArray[i])#"; break; } } application.ADF.scripts.loadJQuery(); // Use jQuery to Add Font Awesome CSS to head dynamically application.ADF.scripts.loadFontAwesome(dynamicHeadRender=true);
#ListFirst(currentValue, ' ')#
disabled="disabled" style="width: 180px; margin-bottom: 5px; padding-left: 5px;" placeholder="Type to filter list of icons">
  • #ListFirst(fontArray[i])#
Size:   checked="checked">   checked="checked">   checked="checked">   Pull:
#application.ADF.forms.wrapFieldHTML(inputHTML,fieldQuery,attributes,variables.fieldPermission,includeLabel,includeDescription)#