diff --git a/entity/SalutationDistinct_entity/recordcontainers/jdito/contentProcess.js b/entity/SalutationDistinct_entity/recordcontainers/jdito/contentProcess.js index 74bdbab553dada557722c07088fcb3459591a14c..a2474449b486e866292c541ed6a4b20307003c28 100644 --- a/entity/SalutationDistinct_entity/recordcontainers/jdito/contentProcess.js +++ b/entity/SalutationDistinct_entity/recordcontainers/jdito/contentProcess.js @@ -1,8 +1,18 @@ +import("system.vars"); import("system.result"); import("Sql_lib"); -result.object(newSelect("distinct SALUTATION") - .from("SALUTATION") - .whereIfSet("SALUTATION.ISOLANGUAGE", "$param.Language_param") - .and("SALUTATION is not NULL") - .table()); \ No newline at end of file +var idValues = vars.get("$local.idvalues"); +var res; +if (idValues) + res = idValues.map(function (uid){ + return [uid]; + }); +else + res = newSelect("distinct SALUTATION") + .from("SALUTATION") + .whereIfSet("SALUTATION.ISOLANGUAGE", "$param.Language_param") + .and("SALUTATION is not NULL") + .table(); + +result.object(res); \ No newline at end of file diff --git a/entity/SalutationTitleDistinct_entity/recordcontainers/jdito/contentProcess.js b/entity/SalutationTitleDistinct_entity/recordcontainers/jdito/contentProcess.js index 4ed5169cb77a9f055f0ec251ad4697ce625e2443..1dc6c6947076271440ad09fd66e8d87da6ac9bb1 100644 --- a/entity/SalutationTitleDistinct_entity/recordcontainers/jdito/contentProcess.js +++ b/entity/SalutationTitleDistinct_entity/recordcontainers/jdito/contentProcess.js @@ -1,9 +1,19 @@ +import("system.vars"); import("system.result"); import("Sql_lib"); -result.object(newSelect("distinct TITLE") +var idValues = vars.get("$local.idvalues"); +var res; +if (idValues) + res = idValues.map(function (uid){ + return [uid]; + }); +else + res = newSelect("distinct TITLE") .from("SALUTATION") .whereIfSet("SALUTATION.SALUTATION", "$param.Salutation_param") .andIfSet("SALUTATION.ISOLANGUAGE", "$param.Language_param") .and("TITLE is not NULL") - .table()); \ No newline at end of file + .table(); + +result.object(res); \ No newline at end of file