diff --git a/entity/Organisation_entity/Organisation_entity.aod b/entity/Organisation_entity/Organisation_entity.aod index 844a65942f92a6089f1c7a5197d1065a0a1311d1..277ee16247c4c9d11a632d9506452d0934118a0b 100644 --- a/entity/Organisation_entity/Organisation_entity.aod +++ b/entity/Organisation_entity/Organisation_entity.aod @@ -476,6 +476,22 @@ <fieldName>LanguagesISO3Code</fieldName> </dependency> </entityConsumer> + <entityConsumer> + <name>Salesprojects</name> + <title>Salesprojects</title> + <fieldType>DEPENDENCY_OUT</fieldType> + <dependency> + <name>dependency</name> + <entityName>Salesproject_entity</entityName> + <fieldName>#PROVIDER</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContactId_param</name> + <code>%aditoprj%/entity/Organisation_entity/entityfields/salesprojects/children/contactid_param/code.js</code> + </entityParameter> + </children> + </entityConsumer> </entityFields> <recordContainers> <dbRecordContainer> diff --git a/entity/Organisation_entity/entityfields/salesprojects/children/contactid_param/code.js b/entity/Organisation_entity/entityfields/salesprojects/children/contactid_param/code.js new file mode 100644 index 0000000000000000000000000000000000000000..fb6ae92cf587f31a05c8d4f9f1fb13316eeeb5f3 --- /dev/null +++ b/entity/Organisation_entity/entityfields/salesprojects/children/contactid_param/code.js @@ -0,0 +1,3 @@ +import("system.vars"); +import("system.result"); +result.string(vars.get("$field.ORGANISATION_ID")); \ No newline at end of file diff --git a/entity/Salesproject_entity/Salesproject_entity.aod b/entity/Salesproject_entity/Salesproject_entity.aod index dddedee3f57491eaa507b1233f036cfe38a6b023..20e63655186952a1590fef49e5be76fa985bbec6 100644 --- a/entity/Salesproject_entity/Salesproject_entity.aod +++ b/entity/Salesproject_entity/Salesproject_entity.aod @@ -22,6 +22,12 @@ <fieldName>Salesprojects</fieldName> <isConsumer v="false" /> </entityDependency> + <entityDependency> + <name>ca678fae-46ce-4818-9661-cfc30f540234</name> + <entityName>Organisation_entity</entityName> + <fieldName>Salesprojects</fieldName> + <isConsumer v="false" /> + </entityDependency> </dependencies> </entityProvider> <entityField> diff --git a/neonView/OrganisationMain_view/OrganisationMain_view.aod b/neonView/OrganisationMain_view/OrganisationMain_view.aod index 804bbee490041b4c9eb72c6ec7b644071ff661bb..ef3e97b5d040718be56622ba93179c3b94eb47ba 100644 --- a/neonView/OrganisationMain_view/OrganisationMain_view.aod +++ b/neonView/OrganisationMain_view/OrganisationMain_view.aod @@ -50,5 +50,10 @@ <entityField>ObjectRelations</entityField> <view>AnyObjectRelationFilter_view</view> </neonViewReference> + <neonViewReference> + <name>dc1aa0ca-d0bd-45fd-84dc-55cfcf3ca430</name> + <entityField>Salesprojects</entityField> + <view>SalesprojectFilter_view</view> + </neonViewReference> </children> </neonView>