Skip to content
Snippets Groups Projects
Commit f9d671b2 authored by j.luginger's avatar j.luginger
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1035026][[Person]: Anrede und Titel]

parent dafd3d02
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 28 deletions
......@@ -49,6 +49,7 @@
<name>SALUTATION</name>
<title>Salutation</title>
<consumer>Salutations</consumer>
<possibleItemsProcess>%aditoprj%/entity/Person_entity/entityfields/salutation/possibleItemsProcess.js</possibleItemsProcess>
<displayValueProcess>%aditoprj%/entity/Person_entity/entityfields/salutation/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
......
......@@ -5,6 +5,5 @@ import("system.db");
import("system.result");
logging.log("kljkk " + vars.get("$field.SALUTATION"))
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$field.LANGUAGE") == "")
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$field.LANGUAGE") == "")
result.string("deu");
\ No newline at end of file
import("system.vars");
import("system.db");
import("system.result");
import("Sql_lib");
result.string(db.cell("select SALUTATION from PERSON where PERSONID = '" + vars.get("$field.PERSONID") + "'"));
\ No newline at end of file
var cond = SqlCondition.begin()
result.string(db.cell(cond.andPrepareVars("PERSON.PERSONID", "$field.PERSONID").buildSql("select SALUTATION from PERSON", "1=2")));
\ No newline at end of file
......@@ -2,7 +2,4 @@ import("system.vars");
import("system.result");
import("system.logging")
logging.log("dsfksdjnfksj" + vars.get("$field.ORGANISATION_ID"));
logging.log("ff" + vars.get("$field.SALUTATION"));
result.string(vars.get("$field.SALUTATION"));
\ No newline at end of file
import("system.vars");
import("system.db");
import("system.result");
import("Sql_lib");
result.string(db.cell("select TITLE from PERSON where PERSONID = '" + vars.get("$field.PERSONID") + "'"));
\ No newline at end of file
var cond = SqlCondition.begin()
result.string(db.cell(cond.andPrepareVars("PERSON.PERSONID", "$field.PERSONID").buildSql("select TITLE from PERSON", "1=2")));
\ No newline at end of file
......@@ -115,7 +115,6 @@
<entityField>
<name>UID</name>
<titleProcess>%aditoprj%/entity/Salutation_entity/entityfields/uid/titleProcess.js</titleProcess>
<valueProcess>%aditoprj%/entity/Salutation_entity/entityfields/uid/valueProcess.js</valueProcess>
</entityField>
<entityParameter>
<name>uIdDefinition_param</name>
......
......@@ -3,9 +3,8 @@ import("system.result");
var uIdDefinition = vars.get("$param.uIdDefinition_param")
if(uIdDefinition == "SALUTATION")
if (uIdDefinition == "SALUTATION")
result.string("Anrede")
if(uIdDefinition == "TITLE")
if (uIdDefinition == "TITLE")
result.string("Titel")
\ No newline at end of file
//import("system.logging");
//import("system.vars");
//import("system.result");
//
//var uIdDefinition = vars.get("$param.uIdDefinition_param")
//
//
//if(uIdDefinition == "SALUTATION")
// result.string(vars.get("$field.SALUTATION"))
//
//if(uIdDefinition == "TITLE")
// result.string(vars.get("$field.TITLE"))
......@@ -9,6 +9,6 @@ var cond = SqlCondition.begin()
.andPrepareVars("SALUTATION.LANGUAGE", "$param.Language_param")
.buildSql("select distinct SALUTATION, SALUTATION from SALUTATION", "1=2");
var salutation = db.table(cond);
var salutations = db.table(cond);
result.object(salutation);
\ No newline at end of file
result.object(salutations);
\ No newline at end of file
......@@ -10,6 +10,6 @@ var cond = SqlCondition.begin()
.andPrepareVars("SALUTATION.SALUTATION", "$param.Salutation_param")
.buildSql("select TITLE, TITLE from SALUTATION", "1=2");
var salutation = db.table(cond);
var titles = db.table(cond);
result.object(salutation);
\ No newline at end of file
result.object(titles);
\ No newline at end of file
......@@ -2,5 +2,10 @@ import("system.result");
import("system.vars");
if (vars.get("$param.uIdDefinition_param") && vars.exists("$param.uIdDefinition_param"))
{
result.string(vars.get("$field.UID"))
else result.string("Anrede")
\ No newline at end of file
}
else
{
result.string("Anrede")
}
\ 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