lib/impl/submissionExportHelper/csvValues.js
function generateCSVFieldValues(baseField, ff, downloadUrl, sub) {
  var line = '';
  var fieldValues = [];

  if (ff) {
    fieldValues = misc.filterOutNullData(ff.fieldValues);
  }

  if (baseField && baseField.repeating) {
    for (var j = 0; j < baseField.fieldOptions.definition.maxRepeat; j++) {
      line += generateCSVSingleValue(baseField, fieldValues[j], downloadUrl, sub._id);
    }
  } else {
    line += generateCSVSingleValue(baseField, fieldValues[0], downloadUrl, sub._id);
  }

  return line;
}
function generateCSVFieldValues(baseField, ff, downloadUrl, sub) {
  var line = '';
  var fieldValues = [];

  if (ff) {
    fieldValues = misc.filterOutNullData(ff.fieldValues);
  }

  if (baseField && baseField.repeating) {
    for (var j = 0; j < baseField.fieldOptions.definition.maxRepeat; j++) {
      line += generateCSVSingleValue(baseField, fieldValues[j], downloadUrl, sub._id);
    }
  } else {
    line += generateCSVSingleValue(baseField, fieldValues[0], downloadUrl, sub._id);
  }

  return line;
}
function generateCSVFieldValues ( baseField , ff , downloadUrl , sub ) { var line = '' ; var fieldValues = [ ] ; if ( ff ) { fieldValues = misc . filterOutNullData ( ff . fieldValues ) ; } if ( baseField && baseField . repeating ) { for ( var j = 0 ; j < baseField . fieldOptions . definition . maxRepeat ; j ++ ) { line += generateCSVSingleValue ( baseField , fieldValues [ j ] , downloadUrl , sub . _id ) ; } } else { line += generateCSVSingleValue ( baseField , fieldValues [ 0 ] , downloadUrl , sub . _id ) ; } return line ; }
generateCSVFieldValues - description

@param  {type} baseField   description
@param  {type} ff          description
@param  {type} downloadUrl description
@param  {type} sub         description
@return {type}             description
generateCSVFieldValues - description