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

[Projekt: Entwicklung - xRM][TicketNr.: 1069286][Vertriebsprojekt -...

[Projekt: Entwicklung - xRM][TicketNr.: 1069286][Vertriebsprojekt - Projektteam - es können keine Mitglieder hinzugefügt werden]
parent 003c77e9
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,12 @@
<fieldName>Orders</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>bfc738ad-8af3-4d2b-9ed5-b3ca2212bb9e</name>
<entityName>Person_entity</entityName>
<fieldName>Orders</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
</entityProvider>
<entityField>
......
This diff is collapsed.
import("system.vars");
import("system.result");
result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
Consumer for loading a contacts related Orders. This is for example used to verify if the Person-row can be deleted.
\ No newline at end of file
......@@ -29,7 +29,7 @@ if(personCount == 1)
.andNoEntityRows("Contract_entity", "Contracts", {ContactId_param : contactId}) //Contracts
.andNoEntityRows("ObjectTree_entity", "TreeProvider", {ObjectIds_param : JSON.stringify([contactId, vars.get("$field.PERSON_ID")]), ObjectTypes_param : JSON.stringify([currentContext, "PrivatePerson"])})
.andNoEntityRows("CampaignParticipant_entity", "CampaignParticipantsProvider", {ContactId_param : contactId})
.andNoEntityRows("Order_entity", "OrderProvider", {ContactId_param : contactId})
.andNoEntityRows("Order_entity", "Orders", {ContactId_param : contactId})
.validate();
}
else if (personCount == 0) //special case in QuickEntry where it should be possible to remove a new Person that is not saved in the db yet
......
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