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

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

parent 95fe9742
No related branches found
No related tags found
No related merge requests found
Showing
with 84 additions and 3 deletions
......@@ -49,6 +49,7 @@
<name>SALUTATION</name>
<title>Salutation</title>
<consumer>Salutations</consumer>
<possibleItemsProcess>%aditoprj%/entity/Person_entity/entityfields/salutation/possibleItemsProcess.js</possibleItemsProcess>
</entityField>
<entityField>
<name>TITLE</name>
......@@ -551,6 +552,10 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<name>Language_param</name>
<code>%aditoprj%/entity/Person_entity/entityfields/salutations/children/language_param/code.js</code>
</entityParameter>
<entityParameter>
<name>uIdDefinition_param</name>
<code>%aditoprj%/entity/Person_entity/entityfields/salutations/children/uiddefinition_param/code.js</code>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
......@@ -584,6 +589,12 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<entityName>Salutation_entity</entityName>
<fieldName>Titles</fieldName>
</dependency>
<children>
<entityParameter>
<name>uIdDefinition_param</name>
<code>%aditoprj%/entity/Person_entity/entityfields/salutationtitles/children/uiddefinition_param/code.js</code>
</entityParameter>
</children>
</entityConsumer>
</entityFields>
<recordContainers>
......
import("system.result");
result.string("SALUTATION");
\ No newline at end of file
import("system.result");
result.string("TITLE");
\ No newline at end of file
......@@ -3,6 +3,7 @@
<name>Salutation_entity</name>
<title>Anrede</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<titleProcess>%aditoprj%/entity/Salutation_entity/titleProcess.js</titleProcess>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
......@@ -91,9 +92,9 @@
<entityProvider>
<name>Titles</name>
<fieldType>DEPENDENCY_IN</fieldType>
<lookupIdfield>TITLE</lookupIdfield>
<lookupIdfield>UID</lookupIdfield>
<titleProcess>%aditoprj%/entity/Salutation_entity/entityfields/titles/titleProcess.js</titleProcess>
<recordContainer>db</recordContainer>
<recordContainer>title_jdito</recordContainer>
<dependencies>
<entityDependency>
<name>b6dff8b9-1eda-4cb1-97a0-2852756295b7</name>
......@@ -111,7 +112,16 @@
</entityParameter>
<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>
<expose v="true" />
<triggerRecalculation v="true" />
<mandatory v="false" />
<description>PARAMETER</description>
</entityParameter>
</entityFields>
<recordContainers>
<dbRecordContainer>
......@@ -172,10 +182,17 @@
</dbRecordContainer>
<jDitoRecordContainer>
<name>distinctSalutation_jdito</name>
<title>Test</title>
<jDitoRecordAlias>Data_alias</jDitoRecordAlias>
<contentProcess>%aditoprj%/entity/Salutation_entity/recordcontainers/distinctsalutation_jdito/contentProcess.js</contentProcess>
<recordFields>
<element>UID.value</element>
<element>UID.displayValue</element>
</recordFields>
</jDitoRecordContainer>
<jDitoRecordContainer>
<name>title_jdito</name>
<jDitoRecordAlias>Data_alias</jDitoRecordAlias>
</jDitoRecordContainer>
</recordContainers>
</entity>
import("system.vars");
import("system.result");
var uIdDefinition = vars.get("$param.uIdDefinition_param")
if(uIdDefinition == "SALUTATION")
result.string("Anrede")
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"))
import("system.logging");
import("system.vars");
import("system.result");
import("system.db");
import("Sql_lib");
logging.log("kkkdjdkdjdf")
var cond = SqlCondition.begin()
.and("SALUTATION is not NULL")
.buildSql("select distinct SALUTATION, SALUTATION from SALUTATION", "1=2");
var salutation = db.table(cond);
logging.log(salutation)
logging.log(cond)
result.object(salutation);
\ No newline at end of file
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
......@@ -6,7 +6,7 @@
<constraints primaryKey="true" primaryKeyName="PK_SALUTATION_SALUTATIONID"/>
</column>
<column name="HEADLINE" type="NVARCHAR(50)"/>
<column name="LANGUAGE" type="CHAR(36)"/>
<column name="LANGUAGE" type="CHAR(3)"/>
<column name="LETTERSALUTATION" type="NVARCHAR(50)"/>
<column name="SALUTATION" type="NVARCHAR(50)"/>
<column name="SEX" type="CHAR(36)"/>
......
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