var displayField = arguments.fieldMaskStr; var startChar = chr(171); var endChar = chr(187); var value = ''; var foundIndex = 0; var foundEndIndex = 0; // While we still detect the upper ascii start character loop through while ( Find(startChar,displayField) ) { foundIndex = Find(startChar,displayField); foundEndIndex = Find(endChar,displayField); //Grab the content in between the start and end character value = mid(displayField,foundIndex+1,foundEndIndex-foundIndex-1); if ( StructKeyExists(arguments.fieldDataStruct,value) ) { // We found it. Replace the with the actual value displayField = Replace(displayField,"#startChar##value##endChar#", arguments.fieldDataStruct[value],"ALL"); } else { // Something is messed up... tell them so in the field! displayField = Replace(displayField,"#startChar##value##endChar#", "Field '#value#' does not exist!"); } } return displayField; var readOnly = true; var productVersion = ListFirst(ListLast(request.cp.productversion," "),"."); var commonGroups = ""; // Determine if this field should be read only due to "Use Explicit Security" // Check the CS version if ( productVersion GTE 6 ) { // Check to see if this field is FORCED to be READ ONLY by looking for the CS 9+ fqFieldName_doReadonly struct key if ( LEN(TRIM(arguments.fqFieldName)) AND StructKeyExists(arguments.currentValues,"#TRIM(arguments.fqFieldName)#_doReadonly") ) readOnly = true; else { // For CS 6.x and above // - If the user has ready only rights (fieldPermission = 1) readOnly will be true if ( LEN(TRIM(arguments.fieldPermission)) AND arguments.fieldPermission EQ 1 ) readOnly = true; else readOnly = false; } } else { // For CS 5.x // Get the list permissions and compare commonGroups = application.ADF.data.ListInCommon(request.user.grouplist, arguments.xparams.pedit); // Check if the user does have edit permissions if ( (arguments.xparams.UseSecurity EQ 0) OR ( (arguments.xparams.UseSecurity EQ 1) AND (ListLen(commonGroups)) ) ) readOnly = false; } return readOnly; var returnHTML = ''; var productVersion = ListFirst(ListLast(request.cp.productversion," "),"."); var row = arguments.fieldQuery.currentRow; var fqFieldName = "fic_#arguments.fieldQuery.ID[row]#_#arguments.fieldQuery.INPUTID[row]#"; var description = arguments.fieldQuery.DESCRIPTION[row]; var fieldName = arguments.fieldQuery.fieldName[row]; var xparams = arguments.attr.parameters[arguments.fieldQuery.inputID[row]]; var currentValue = arguments.attr.currentValues[fqFieldName]; var labelClass = "cs_dlgLabelOptional"; var labelStart = arguments.attr.itemBaselineParamStart; var labelEnd = arguments.attr.itemBaseLineParamEnd; var renderMode = arguments.attr.rendermode; var renderSimpleFormField = false; var doHiddenFieldSecurity = false; // No Edit / No Readonly ... just a hidden field var editGroups = ""; var viewGroups = ""; //If the fields are required change the label start and end if ( xparams.req eq "Yes" ) { labelClass = "cs_dlgLabelRequired"; labelStart = arguments.attr.reqItemBaselineParamStart; labelEnd = arguments.attr.reqItemBaseLineParamEnd; } // Determine if this is rendererd in a simple form or the standard custom element interface if ( (StructKeyExists(request, "simpleformexists")) AND (request.simpleformexists EQ 1) ) { renderSimpleFormField = true; } // Determine if this field should be hidden due to "Use Explicit Security" // - Check the CS version if ( productVersion GTE 6 ) { // For CS 6.x and above // - If the user has no rights (fieldSecurity = 0) to the field then doHiddenSecurity should be true if ( LEN(TRIM(arguments.fieldPermission)) AND arguments.fieldPermission LTE 0 ) { doHiddenFieldSecurity = true; } // TODO: determine if this conditional logic is needed to display the description or not (fieldPermission is new to CS6.x) //if ( renderMode NEQ 'standard' OR fieldpermission LTE 0 ) //arguments.includeDescription = false; } else { // For CS 5.x // Get the list permissions and compare for security editGroups = application.ADF.data.ListInCommon(request.user.grouplist, xparams.pedit); viewGroups = application.ADF.data.ListInCommon(request.user.grouplist, xparams.pread); // - If user is part for the edit or view groups doHiddenSecurity should remain false if ( xparams.UseSecurity AND ListLen(viewGroups) EQ 0 AND ListLen(editGroups) EQ 0 ) { doHiddenFieldSecurity = true; } } #labelStart# #labelEnd# colspan="2"> #arguments.fieldInputHTML# colspan="2"> #arguments.attr.descParamStart# #description#

#arguments.attr.descParamEnd#