/* * If Position.paygrade is 1, it’s a union position, if 0 it’s non-union. * * This function is used by the JobCodes and jobGrades xml and assign nodes. */
function createJobGradeName (stepandGradeSchedule, payGrade, salaryStructure, geographicDiff, salaryStructureGrade) { if (payGrade) { return (rtrim(stepandGradeSchedule) + '-' + payGrade); } else if (!payGrade) { return (salaryStructure.substring(0,4) + '-' + geographicDiff.replace(/^\s+|\s+$/g,"") + '-' + salaryStructureGrade); } else { return 'undefined'; } } Here's the xml code found in the 'input' tab of my xml node, you can see where I call createJobGradeName and other functions. {jobCodesQuery_SHORTDESCRIPTION} {jobCodesQuery_SHORTDESCRIPTION} {jobCodesQuery_DESCRIPTION} {createJobGradeName (jobCodesQuery_STEPANDGRADESCHEDULE, jobCodesQuery_PAYGRADE, jobCodesQuery_SALARYSTRUCTURE, jobCodesQuery_GEOGRAPHICDIFFERENTIALCODE, jobCodesQuery_SALARYSTRUCTUREGRADE)} {createJecCatName (jobCodesQuery_JOBCOUNTRYATTRIBUTECODE) } {jobCodesQuery_POSITIONCATEGORY} {createFLSACodeName (jobCodesQuery_PAYMENTSCHEDULE)} 1