Skip to content
Snippets Groups Projects
Commit da22af62 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1051082][Contact: Create: Mehrere Fehlermeldungen]

parent 15aac35e
No related branches found
No related tags found
No related merge requests found
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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment