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

Merge branch '#1050274-QuickEntryAddressWithoutContact' into '2020.1'

#1050274: Added mandatory process to prevent addresses without corresponding contact.

See merge request xrm/basic!255
parents 3387ed09 c71d9a7b
No related branches found
No related tags found
No related merge requests found
......@@ -67,10 +67,13 @@
<entityField>
<name>FIRSTNAME</name>
<title>Firstname</title>
<mandatoryProcess>%aditoprj%/entity/QuickEntry_entity/entityfields/firstname/mandatoryProcess.js</mandatoryProcess>
</entityField>
<entityField>
<name>LASTNAME</name>
<title>Lastname</title>
<mandatoryProcess>%aditoprj%/entity/QuickEntry_entity/entityfields/lastname/mandatoryProcess.js</mandatoryProcess>
<valueProcess>%aditoprj%/entity/QuickEntry_entity/entityfields/lastname/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>PERSON_TITLE</name>
......@@ -81,6 +84,7 @@
<name>PERSON_SALUTATION</name>
<title>Salutation</title>
<consumer>Salutations</consumer>
<mandatoryProcess>%aditoprj%/entity/QuickEntry_entity/entityfields/person_salutation/mandatoryProcess.js</mandatoryProcess>
</entityField>
<entityField>
<name>PERSON_CONTACT_ID</name>
......
import("system.logging");
import("system.result");
import("system.vars");
var insertedRows = vars.get("$field.Adresses.insertedRows");
var isInserted = insertedRows.some(function (row){
return row["ZIP"] || row["CITY"] || row["ADDRESS"];
})
result.string(isInserted);
\ No newline at end of file
import("system.logging");
import("system.result");
import("system.vars");
var insertedRows = vars.get("$field.Adresses.insertedRows");
var isInserted = insertedRows.some(function (row){
return row["ZIP"] || row["CITY"] || row["ADDRESS"];
})
result.string(isInserted);
\ 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