diff --git a/entity/Org_entity/Org_entity.aod b/entity/Org_entity/Org_entity.aod index 06e172f4e41717f4dd6e6c5179d2edb24bfe3d9e..3e1c3696cf3a867b196648d0e61a6916f8bc82dd 100644 --- a/entity/Org_entity/Org_entity.aod +++ b/entity/Org_entity/Org_entity.aod @@ -444,6 +444,22 @@ <onActionProcess>%aditoprj%/entity/Org_entity/entityfields/newactivity/onActionProcess.js</onActionProcess> <iconId>NEON:HISTORY</iconId> </entityActionField> + <entityOutgoingField> + <name>OrgSalesproject_dfo</name> + <title>Salesprojects</title> + <fieldType>DEPENDENCY_OUT</fieldType> + <dependency> + <name>dependency</name> + <entityName>Salesproject_entity</entityName> + <fieldName>SalesprojectOrg_dfi</fieldName> + </dependency> + <children> + <entityParameter> + <name>relationId_param</name> + <code>%aditoprj%/entity/Org_entity/entityfields/orgsalesproject_dfo/children/relationid_param/code.js</code> + </entityParameter> + </children> + </entityOutgoingField> </entityFields> <recordContainers> <dbRecordContainer> diff --git a/entity/Org_entity/entityfields/orgsalesproject_dfo/children/relationid_param/code.js b/entity/Org_entity/entityfields/orgsalesproject_dfo/children/relationid_param/code.js new file mode 100644 index 0000000000000000000000000000000000000000..f001bb14e2e74ea2994037c7cd2ce7d6ce9c6176 --- /dev/null +++ b/entity/Org_entity/entityfields/orgsalesproject_dfo/children/relationid_param/code.js @@ -0,0 +1,3 @@ +import("system.vars"); +import("system.result"); +result.string(vars.get("$field.RELATIONID")); \ No newline at end of file diff --git a/entity/Salesproject_entity/Salesproject_entity.aod b/entity/Salesproject_entity/Salesproject_entity.aod index a1b7a10089aa587214b7426e4c862e2cef42b8d7..424098cced5bb9146537c92f4385743de544d68f 100644 --- a/entity/Salesproject_entity/Salesproject_entity.aod +++ b/entity/Salesproject_entity/Salesproject_entity.aod @@ -316,12 +316,31 @@ </entityParameter> </children> </entityOutgoingField> + <entityIncomingField> + <name>SalesprojectOrg_dfi</name> + <fieldType>DEPENDENCY_IN</fieldType> + <recordContainer>db</recordContainer> + <dependencies> + <entityDependency> + <name>5f8500a6-ec3c-4792-ac6d-4bf2a39b89f2</name> + <entityName>Org_entity</entityName> + <fieldName>OrgSalesproject_dfo</fieldName> + <isOutgoing v="false" /> + </entityDependency> + </dependencies> + </entityIncomingField> + <entityParameter> + <name>relationId_param</name> + <expose v="true" /> + <description>PARAMETER</description> + </entityParameter> </entityFields> <recordContainers> <dbRecordContainer> <name>db</name> <alias>Data_alias</alias> <fromClauseProcess>%aditoprj%/entity/Salesproject_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess> + <conditionProcess>%aditoprj%/entity/Salesproject_entity/recordcontainers/db/conditionProcess.js</conditionProcess> <onDBInsert>%aditoprj%/entity/Salesproject_entity/recordcontainers/db/onDBInsert.js</onDBInsert> <onDBUpdate>%aditoprj%/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate> <linkInformation> diff --git a/entity/Salesproject_entity/recordcontainers/db/conditionProcess.js b/entity/Salesproject_entity/recordcontainers/db/conditionProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..8602cf6a01c39abdbd8c43c6f3be7de664f4fff2 --- /dev/null +++ b/entity/Salesproject_entity/recordcontainers/db/conditionProcess.js @@ -0,0 +1,9 @@ +import("system.db"); +import("system.result"); +import("system.vars"); +import("Sql_lib"); + +result.string(db.translateCondition( + SqlCondition.begin() + .andPrepareVars("SALESPROJECT.RELATION_ID", "$param.relationId_param") + .build("1 = 1"))); \ No newline at end of file diff --git a/neonView/OrgMain_view/OrgMain_view.aod b/neonView/OrgMain_view/OrgMain_view.aod index 4c801b173f0262c80eb0aac639b39869794dd878..02ca329f28d3da59f53f78eb7c62f9e140c0c220 100644 --- a/neonView/OrgMain_view/OrgMain_view.aod +++ b/neonView/OrgMain_view/OrgMain_view.aod @@ -40,5 +40,10 @@ <entityField>OrgContract_dfo</entityField> <view>ContractFilter_view</view> </neonViewReference> + <neonViewReference> + <name>748d46a2-96ba-4f47-bf18-1f3b2fd9d708</name> + <entityField>OrgSalesproject_dfo</entityField> + <view>SalesprojectFilter_view</view> + </neonViewReference> </children> </neonView>