From b16a496fe3a25a5a0b7d7c6a117a44e60a759917 Mon Sep 17 00:00:00 2001 From: Johannes Goderbauer <j.goderbauer@adito.de> Date: Tue, 18 Feb 2020 10:57:06 +0000 Subject: [PATCH] Merge branch '1047687-add-company-selection' into '2020.0' #1047687 - Fixed no selection option in filter view with attribute: "organisation" & "person". See merge request xrm/basic!119 (cherry picked from commit 891ce6fb3164849b3cd6826c699b6832f88f35da) 5703c0de #1047687 - Fixed no selection option in filter view with attribute: "organisation" & "person". 451fac2d #1047687 - Fixed no selection option in filter view with attribute: "organisation" & "person". --- entity/Offer_entity/Offer_entity.aod | 22 ++++++++++++++++++++++ entity/Order_entity/Order_entity.aod | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/entity/Offer_entity/Offer_entity.aod b/entity/Offer_entity/Offer_entity.aod index c8d706ecb6..fa78e12fa9 100644 --- a/entity/Offer_entity/Offer_entity.aod +++ b/entity/Offer_entity/Offer_entity.aod @@ -225,11 +225,13 @@ <entityField> <name>CONTACT_ORG_ID</name> <title>Company</title> + <consumer>Organisations</consumer> <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/contact_org_id/stateProcess.js</stateProcess> </entityField> <entityField> <name>CONTACT_PERSON_ID</name> <title>Person</title> + <consumer>Persons</consumer> <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/contact_person_id/stateProcess.js</stateProcess> </entityField> <entityConsumer> @@ -964,6 +966,22 @@ <iconId>VAADIN:PLAY</iconId> <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/startworkflow/stateProcess.js</stateProcess> </entityActionField> + <entityConsumer> + <name>Organisations</name> + <dependency> + <name>dependency</name> + <entityName>Organisation_entity</entityName> + <fieldName>Organisations</fieldName> + </dependency> + </entityConsumer> + <entityConsumer> + <name>Persons</name> + <dependency> + <name>dependency</name> + <entityName>Person_entity</entityName> + <fieldName>Contact</fieldName> + </dependency> + </entityConsumer> </entityFields> <recordContainers> <dbRecordContainer> @@ -1073,10 +1091,14 @@ <dbRecordFieldMapping> <name>CONTACT_ORG_ID.value</name> <recordfield>CONTACT.ORGANISATION_ID</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="false" /> </dbRecordFieldMapping> <dbRecordFieldMapping> <name>CONTACT_PERSON_ID.value</name> <recordfield>CONTACT.PERSON_ID</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="false" /> </dbRecordFieldMapping> <dbRecordFieldMapping> <name>ADDRESS.value</name> diff --git a/entity/Order_entity/Order_entity.aod b/entity/Order_entity/Order_entity.aod index 75f68bd591..a6b28c020c 100644 --- a/entity/Order_entity/Order_entity.aod +++ b/entity/Order_entity/Order_entity.aod @@ -188,10 +188,12 @@ <entityField> <name>CONTACT_ORG_ID</name> <title>Company</title> + <consumer>Organisations</consumer> </entityField> <entityField> <name>CONTACT_PERSON_ID</name> <title>Person</title> + <consumer>Persons</consumer> </entityField> <entityConsumer> <name>AnyContacts</name> @@ -950,6 +952,22 @@ <iconId>VAADIN:CURLY_BRACKETS</iconId> <stateProcess>%aditoprj%/entity/Order_entity/entityfields/openadminview/stateProcess.js</stateProcess> </entityActionField> + <entityConsumer> + <name>Organisations</name> + <dependency> + <name>dependency</name> + <entityName>Organisation_entity</entityName> + <fieldName>Organisations</fieldName> + </dependency> + </entityConsumer> + <entityConsumer> + <name>Persons</name> + <dependency> + <name>dependency</name> + <entityName>Person_entity</entityName> + <fieldName>Contacts</fieldName> + </dependency> + </entityConsumer> </entityFields> <recordContainers> <dbRecordContainer> -- GitLab