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

[Projekt: Entwicklung - Neon][TicketNr.: 1035771][Kontaktmanagement - Firma /...

[Projekt: Entwicklung - Neon][TicketNr.: 1035771][Kontaktmanagement - Firma / Kontaktperson + Adressen / Kommunikation - Nutzung des kompletten Moduls sicherstellen]
parent 9d48e691
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@
<title>Medium</title>
<consumer>KeywordMediums</consumer>
<mandatory v="true" />
<displayValueProcess>%aditoprj%/entity/Communication_entity/entityfields/medium_id/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>CONTACT_ID</name>
......
import("system.result");
import("system.vars");
import("KeywordRegistry_basic");
import("Keyword_lib");
var key = vars.get("$field.MEDIUM_ID");
if (key)
{
var res = KeywordUtils.getViewValue($KeywordRegistry.communicationMedium(), key);
result.string(res);
}
\ No newline at end of file
......@@ -5,16 +5,15 @@ import("system.db");
import("system.vars");
import("system.neon");
import("Sql_lib");
import("KeywordRegistry_basic");
import("Keyword_lib");
var cond = SqlCondition.begin()
var sex = db.cell(cond.andPrepareVars("SALUTATION.SALUTATION", "$field.SALUTATION").buildSql("select SEX from SALUTATION", "1=2"))
if (sex)
{
var keyword = KeywordUtils.getViewValue("PersonGender", sex);
var keyword = KeywordUtils.getViewValue($KeywordRegistry.personGender(), sex);
result.string(keyword)
}
\ 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