// 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];
numberOfStars = 5;
if(StructKeyExists(xparams,"numberOfStars")){
numberOfStars = xparams.numberOfStars;
}
halfStars = 0;
if(StructKeyExists(xparams,"halfStars")){
halfStars = xparams.halfStars;
}
// Load the scripts
application.ADF.scripts.loadJQuery();
application.ADF.scripts.loadJQueryUI();
application.ADF.scripts.loadJQueryUIStars();
// find if we need to render the simple form field
renderSimpleFormField = false;
if ( (StructKeyExists(request, "simpleformexists")) AND (request.simpleformexists EQ 1) )
renderSimpleFormField = true;
if ( structKeyExists(request, "element") ) {
labelText = '';
tdClass = 'CS_Form_Label_Baseline';
} else {
labelText = '';
tdClass = 'cs_dlgLabel';
}
#labelText#
// Get the list permissions and compare
commonGroups = server.ADF.objectFactory.getBean("data_1_0").ListInCommon(request.user.grouplist, xparams.pedit);
// Set the read only
readOnly = true;
// Check if the user does have edit permissions
if ( (xparams.UseSecurity EQ 0) OR ( (xparams.UseSecurity EQ 1) AND (ListLen(commonGroups)) ) )
readOnly = false;