diff --git a/process/Classification_lib/process.js b/process/Classification_lib/process.js index db81046fd76e0b880f2b589d5e09f7790f10bef2..ea0618f6251d642476c7a7d4fcc4256a41a4d781 100644 --- a/process/Classification_lib/process.js +++ b/process/Classification_lib/process.js @@ -131,10 +131,27 @@ ClassificationUtils.getClassificationGroup = function(pClassificationType) .from("CLASSIFICATIONTYPE") .where("CLASSIFICATIONTYPE.CLASSIFICATIONTYPEID", pClassificationType) .groupBy("CLASSIFICATIONGROUP_ID") - .cell() + .cell(); return classificationGroupId; } +/** + * Gets the classificationTypeIds of a classification group.<br> + * + * @param {String} pClassificationGroupId <p> + * The classificationGroupId<br> +* @return {Array} <p> +* The classificationTypeIds of the chosen pClassificationGroupId<br> + */ +ClassificationUtils.getClassificationTypesOfGroup = function(pClassificationGroupId) +{ + var classificationTypeIds = newSelect("CLASSIFICATIONTYPE.CLASSIFICATIONTYPEID") + .from("CLASSIFICATIONTYPE") + .where("CLASSIFICATIONTYPE.CLASSIFICATIONGROUP_ID", pClassificationGroupId) + .arrayRow(); + return classificationTypeIds; +} + /** * Get all classification type ids for a score using it's unique classification score id.<br> * diff --git a/process/Util_lib/process.js b/process/Util_lib/process.js index 4ef286fe09d3ed55ed6394c8b950ed650c71c67c..e3b1a498260fc935200d5a3d9b1a4749e3127d7b 100644 --- a/process/Util_lib/process.js +++ b/process/Util_lib/process.js @@ -634,7 +634,7 @@ StringUtils.replaceAt = function(pPlainInputStr, pIndex, pReplacement) return pPlainInputStr.valueOf(); } - return pPlainInputStr.substring(0, pIndex) + pReplacement + pPlainInputStr.substring(pIndex + 1); + return pPlainInputStr.substring(0, pIndex) + pReplacement + pPlainInputStr.substring(eMath.addInt(pIndex, 1)); }