Skip to content
Snippets Groups Projects
Commit 7b553f91 authored by Carolin Wimmer's avatar Carolin Wimmer Committed by Benjamin Ulrich
Browse files

[Projekt: xRM-Sales][TicketNr.: 1075451][Besuchsvorschlag => neuer...

[Projekt: xRM-Sales][TicketNr.: 1075451][Besuchsvorschlag => neuer Wochenplaneintrag => Person wird nicht eingetragen]
parent 5d9c9504
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,7 @@
<consumer>Persons</consumer>
<linkedContext>Person</linkedContext>
<mandatory v="true" />
<valueProcess>%aditoprj%/entity/VisitPlanEntry_entity/entityfields/contact_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/VisitPlanEntry_entity/entityfields/contact_id/displayValueProcess.js</displayValueProcess>
</entityField>
<entityConsumer>
......
import("Contact_lib");
import("Sql_lib");
import("system.logging");
import("system.neon");
import("system.result");
import("system.vars");
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && (vars.get("$this.value") == null || vars.get("$this.value") == undefined))
{
var isPersonContact = newSelect("PERSON.PERSONID").from("PERSON")
.join("CONTACT", "PERSON.PERSONID = CONTACT.PERSON_ID")
.whereIfSet("CONTACT.CONTACTID", vars.get("$param.ContactId_param")).cell()
if(isPersonContact)
{
result.string(vars.get("$param.ContactId_param"));
}
}
\ 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