diff --git a/entity/AttributeRelation_entity/AttributeRelation_entity.aod b/entity/AttributeRelation_entity/AttributeRelation_entity.aod index 90f3b32a681e47388a5eb1255ed7ea4c524f2191..5e2d6bbd82333a958ba173c9e29a1db5f1de856d 100644 --- a/entity/AttributeRelation_entity/AttributeRelation_entity.aod +++ b/entity/AttributeRelation_entity/AttributeRelation_entity.aod @@ -108,6 +108,7 @@ <mandatoryProcess>%aditoprj%/entity/AttributeRelation_entity/entityfields/value/mandatoryProcess.js</mandatoryProcess> <dropDownProcess>%aditoprj%/entity/AttributeRelation_entity/entityfields/value/dropDownProcess.js</dropDownProcess> <stateProcess>%aditoprj%/entity/AttributeRelation_entity/entityfields/value/stateProcess.js</stateProcess> + <valueProcess>%aditoprj%/entity/AttributeRelation_entity/entityfields/value/valueProcess.js</valueProcess> <displayValueProcess>%aditoprj%/entity/AttributeRelation_entity/entityfields/value/displayValueProcess.js</displayValueProcess> </entityField> <entityConsumer> diff --git a/entity/AttributeRelation_entity/entityfields/value/valueProcess.js b/entity/AttributeRelation_entity/entityfields/value/valueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..938b26f2b636941ca480c11525662c41bf43cc57 --- /dev/null +++ b/entity/AttributeRelation_entity/entityfields/value/valueProcess.js @@ -0,0 +1,9 @@ +import("Attribute_lib"); +import("system.vars"); +import("system.result"); + + +var attributeType = AttributeUtil.getAttributeType(vars.get("$field.AB_ATTRIBUTE_ID")); +var contentType = AttributeTypeUtil.getContentType(attributeType); +if (vars.get("$this.value") == null && contentType == "BOOLEAN") + result.string("0"); \ No newline at end of file