String typeField = splitTypeFields[j];
for ( int i = 0; i < cons.length; i++ ) {
FieldConstraint con = cons[i];
if ( con instanceof SingleFieldConstraint ) {
SingleFieldConstraint sfc = (SingleFieldConstraint) con;
if ( sfc.fieldName.trim().equals( typeField.trim() ) ) {
if ( addOpeninColumn ) {
key += "[";
addOpeninColumn = false;
}
key += typeField + "=" + sfc.value;
if ( j != (splitTypeFields.length - 1) ) {
key += ",";
}
}
}
}
}
if ( !addOpeninColumn ) {
key += "]";
}
return DropDownData.create( (String[]) this.dataEnumLists.get( key ) );
} else if ( _typeFields != null ) {
// these enums are calculated on demand, server side...
String[] fieldsNeeded = (String[]) _typeFields;
String queryString = getQueryString( pat.factType,
field,
this.dataEnumLists );
String[] valuePairs = new String[fieldsNeeded.length];
// collect all the values of the fields needed, then return it
// as a string...
for ( int i = 0; i < fieldsNeeded.length; i++ ) {
for ( int j = 0; j < pat.constraintList.constraints.length; j++ ) {
FieldConstraint con = pat.constraintList.constraints[j];
if ( con instanceof SingleFieldConstraint ) {
SingleFieldConstraint sfc = (SingleFieldConstraint) con;
if ( sfc.fieldName.equals( fieldsNeeded[i] ) ) {
valuePairs[i] = fieldsNeeded[i] + "=" + sfc.value;
}
}
}