Skip to content
Snippets Groups Projects
Commit ed3901a7 authored by Markus Escher's avatar Markus Escher
Browse files

#1034158 change AttributeRelation Entity:

- reset Values on AttributeId valueChange
- boolean_value accepts null
parent 778ca041
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
<title>Attribute</title>
<mandatory v="true" />
<possibleItemsProcess>%aditoprj%/entity/AttributeRelation_entity/entityfields/ab_attribute_id/possibleItemsProcess.js</possibleItemsProcess>
<stateProcess>%aditoprj%/entity/AttributeRelation_entity/entityfields/ab_attribute_id/stateProcess.js</stateProcess>
<onValueChange>%aditoprj%/entity/AttributeRelation_entity/entityfields/ab_attribute_id/onValueChange.js</onValueChange>
</entityField>
<entityField>
<name>OBJECT_ROWID</name>
......
import("system.vars");
import("system.neon");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT ||
vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) {
neon.setFieldValue("$field.BOOL_VALUE", null);
neon.setFieldValue("$field.CHAR_VALUE", null);
neon.setFieldValue("$field.DATE_VALUE", null);
neon.setFieldValue("$field.ID_VALUE", null);
neon.setFieldValue("$field.NUMBER_VALUE", null);
}
\ No newline at end of file
import("system.vars");
import("system.result");
result.string("0")
\ No newline at end of file
if(!vars.get("$field.BOOL_VALUE"))
result.string("0");
\ No newline at end of file
......@@ -2,5 +2,5 @@ import("system.vars");
import("system.result");
import("system.neon");
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.objectRowId_param") && vars.get("$param.objectRowId_param") != null)
if (vars.exists("$param.objectRowId_param") && vars.get("$param.objectRowId_param") != null)
result.string(vars.get("$param.objectRowId_param"));
\ No newline at end of file
......@@ -18,9 +18,7 @@
<column name="ID_VALUE" type="CHAR(36)"/>
<column name="DATE_VALUE" type="DATETIME"/>
<column name="NUMBER_VALUE" type="NUMERIC(14,2)"/>
<column name="BOOL_VALUE" type="TINYINT">
<constraints nullable="false"/>
</column>
<column name="BOOL_VALUE" type="TINYINT"/>
</createTable>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment