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

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

Abhängigkeit von Land
parent beb87262
No related branches found
No related tags found
No related merge requests found
Showing
with 41 additions and 19 deletions
......@@ -4656,7 +4656,7 @@
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<size v="3" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
......@@ -4683,8 +4683,8 @@
<name>SEX</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="30" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
......
......@@ -26,7 +26,6 @@
<consumer>KeywordGenders</consumer>
<valueProcess>%aditoprj%/entity/Person_entity/entityfields/gender/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Person_entity/entityfields/gender/displayValueProcess.js</displayValueProcess>
<onValueChange>%aditoprj%/entity/Person_entity/entityfields/gender/onValueChange.js</onValueChange>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
......@@ -51,7 +50,8 @@
<name>SALUTATION</name>
<title>Salutation</title>
<possibleItemsProcess>%aditoprj%/entity/Person_entity/entityfields/salutation/possibleItemsProcess.js</possibleItemsProcess>
<onValueChange>%aditoprj%/entity/Person_entity/entityfields/salutation/onValueChange.js</onValueChange>
<valueProcess>%aditoprj%/entity/Person_entity/entityfields/salutation/valueProcess.js</valueProcess>
<onValidation>%aditoprj%/entity/Person_entity/entityfields/salutation/onValidation.js</onValidation>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
......@@ -296,6 +296,7 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<title>Language</title>
<consumer>Languages</consumer>
<mandatory v="true" />
<valueProcess>%aditoprj%/entity/Person_entity/entityfields/language/valueProcess.js</valueProcess>
</entityField>
<entityConsumer>
<name>Documents</name>
......
......@@ -7,7 +7,6 @@ import("system.vars");
import("system.neon");
import("Sql_lib");
var salutation = vars.get("$field.SALUTATION");
var cond = SqlCondition.begin()
......
import("system.neon");
import("system.vars");
import("system.db");
import("system.result");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string("deu");
\ No newline at end of file
import("system.logging");
import("system.vars");
import("system.result");
import("system.db");
import("Sql_lib");
var salutation = db.table("select distinct SALUTATION, SALUTATION from SALUTATION where SALUTATION is not NULL");
var cond = SqlCondition.begin()
.and("SALUTATION is not NULL")
.andPrepareVars("SALUTATION.LANGUAGE", "$field.LANGUAGE")
.buildSql("select distinct SALUTATION, SALUTATION from SALUTATION", "1=2");
var salutation = db.table(cond);
result.object(salutation);
\ No newline at end of file
import("system.logging");
import("system.result");
import("system.db");
import("system.vars");
import("Sql_lib");
var language = vars.get("$field.LANGUAGE");
var cond = SqlCondition.begin();
var salLanguage = db.cell(cond.andPrepareVars("SALUTATION.SALUTATION", "$field.SALUTATION").buildSql("select distinct LANGUAGE from SALUTATION", "1=2"));
if(language != salLanguage)
{
result.string("");
}
\ No newline at end of file
......@@ -2,4 +2,5 @@ import("system.result");
import("Keyword_lib");
var sql = LanguageKeywordUtils.getResolvedTitleSqlPart("CONTACT.LANGUAGE");
result.string(sql);
......@@ -23,7 +23,7 @@
<fields>
<entityFieldLink>
<name>f2b33601-12e8-463f-a920-6e1ae9745491</name>
<entityField>CONTACT_ID</entityField>
<entityField>RELATION_ID</entityField>
</entityFieldLink>
<entityFieldLink>
<name>4e3d7a37-f55b-4c18-9ba1-ab4ab0bbb442</name>
......@@ -76,15 +76,5 @@
<entityField>MainDocuments</entityField>
<view>DocumentList_view</view>
</neonViewReference>
<scoreCardViewTemplate>
<name>SalesprojectScore_template</name>
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
<name>79490331-6be4-422f-9450-da0db56f0654</name>
<entityField>DAYS_NOTACTIVE</entityField>
</entityFieldLink>
</fields>
</scoreCardViewTemplate>
</children>
</neonView>
......@@ -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