diff --git a/entity/Attribute_entity/Attribute_entity.aod b/entity/Attribute_entity/Attribute_entity.aod index f5e38e3f94159efc3a903e6f827c32d85e7e5547..48ab217a1dca6252d2cb0cc945686232e9059873 100644 --- a/entity/Attribute_entity/Attribute_entity.aod +++ b/entity/Attribute_entity/Attribute_entity.aod @@ -52,6 +52,7 @@ <name>AttributeChildren</name> <title>Attributes</title> <fieldType>DEPENDENCY_OUT</fieldType> + <stateProcess>%aditoprj%/entity/Attribute_entity/entityfields/attributechildren/stateProcess.js</stateProcess> <dependency> <name>dependency</name> <entityName>Attribute_entity</entityName> diff --git a/entity/Attribute_entity/entityfields/attributechildren/stateProcess.js b/entity/Attribute_entity/entityfields/attributechildren/stateProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..9dd65f6721c8cca1bc4672b5fd812aeafd8f9e29 --- /dev/null +++ b/entity/Attribute_entity/entityfields/attributechildren/stateProcess.js @@ -0,0 +1,10 @@ +import("system.neon"); +import("system.result"); +import("system.vars"); +import("Attribute_lib"); + +var type = vars.get("$field.ATTRIBUTE_TYPE").trim(); +if (type == $AttributeTypes.GROUP || type == $AttributeTypes.COMBO) + result.string(neon.COMPONENTSTATE_EDITABLE); +else + result.string(neon.COMPONENTSTATE_INVISIBLE); \ No newline at end of file diff --git a/neonView/ActivityEdit_view/ActivityEdit_view.aod b/neonView/ActivityEdit_view/ActivityEdit_view.aod index 5c306e04cb11a4044f1a5aaec99b17a5dd734f44..2e264c062b2b33f739bd8a1b7c8bb94943f22078 100644 --- a/neonView/ActivityEdit_view/ActivityEdit_view.aod +++ b/neonView/ActivityEdit_view/ActivityEdit_view.aod @@ -47,5 +47,10 @@ <entityField>Links</entityField> <view>ActivityLinkMultiEdit_view</view> </neonViewReference> + <neonViewReference> + <name>7fcf9c09-189a-47b7-a171-9975676ed704</name> + <entityField>Attributes</entityField> + <view>AttributeRelationEdit_view</view> + </neonViewReference> </children> </neonView> diff --git a/neonView/ContractEdit_view/ContractEdit_view.aod b/neonView/ContractEdit_view/ContractEdit_view.aod index ec6443f7b56cc44a107522a5d858d7a836bc2e87..21e04e53a2be56f8e8c2d0a5a6b3f0b5bdbec3ef 100644 --- a/neonView/ContractEdit_view/ContractEdit_view.aod +++ b/neonView/ContractEdit_view/ContractEdit_view.aod @@ -51,5 +51,10 @@ </entityFieldLink> </fields> </genericViewTemplate> + <neonViewReference> + <name>49eafd04-4d72-4a11-8818-97407e0fe154</name> + <entityField>Attributes</entityField> + <view>AttributeRelationEdit_view</view> + </neonViewReference> </children> </neonView> diff --git a/neonView/EmployeeEdit_view/EmployeeEdit_view.aod b/neonView/EmployeeEdit_view/EmployeeEdit_view.aod index 71614eff593bccfb770ea91b005d958a6feecad7..8e719f0f4e6da00b873fa069ad2d49791caded82 100644 --- a/neonView/EmployeeEdit_view/EmployeeEdit_view.aod +++ b/neonView/EmployeeEdit_view/EmployeeEdit_view.aod @@ -56,5 +56,10 @@ <entityField>EmployeeRoles</entityField> <view>EmployeeRoleEdit_view</view> </neonViewReference> + <neonViewReference> + <name>07e77840-e140-4ba0-ac09-d8e10e7d88a2</name> + <entityField>Attributes</entityField> + <view>AttributeRelationEdit_view</view> + </neonViewReference> </children> </neonView> diff --git a/neonView/ProductEdit_view/ProductEdit_view.aod b/neonView/ProductEdit_view/ProductEdit_view.aod index 687d513b1e6fbfbdf724e4835f2323124f9f0543..04a5f765b82c18a34e08728c52168bdd8f3bdd55 100644 --- a/neonView/ProductEdit_view/ProductEdit_view.aod +++ b/neonView/ProductEdit_view/ProductEdit_view.aod @@ -59,5 +59,10 @@ </entityFieldLink> </fields> </genericViewTemplate> + <neonViewReference> + <name>34659538-e8a5-4f76-9710-a322548885ef</name> + <entityField>Attributes</entityField> + <view>AttributeRelationEdit_view</view> + </neonViewReference> </children> </neonView>