Skip to content
Snippets Groups Projects
Commit 4913b579 authored by Tobias Feldmann's avatar Tobias Feldmann
Browse files

Document_entity fixes

parent eaa8675e
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,9 @@ ...@@ -106,6 +106,9 @@
<possibleItemsProcess>%aditoprj%/entity/Document_entity/entityfields/is_main_document/possibleItemsProcess.js</possibleItemsProcess> <possibleItemsProcess>%aditoprj%/entity/Document_entity/entityfields/is_main_document/possibleItemsProcess.js</possibleItemsProcess>
<valueProcess>%aditoprj%/entity/Document_entity/entityfields/is_main_document/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Document_entity/entityfields/is_main_document/valueProcess.js</valueProcess>
<onValueChange>%aditoprj%/entity/Document_entity/entityfields/is_main_document/onValueChange.js</onValueChange> <onValueChange>%aditoprj%/entity/Document_entity/entityfields/is_main_document/onValueChange.js</onValueChange>
<onValueChangeTypes>
<element>MASK</element>
</onValueChangeTypes>
</entityField> </entityField>
<entityParameter> <entityParameter>
<name>Keyword_param</name> <name>Keyword_param</name>
......
import("system.neon"); import("system.neon");
import("system.vars"); import("system.vars");
import("Entity_lib");
if(vars.get("$local.value") == '1') var value = vars.exists("$field.IS_MAIN_DOCUMENT") ? vars.get("$field.IS_MAIN_DOCUMENT") : "";
value = ProcessHandlingUtils.getOnValidationValue(value);
if(value == "1")
neon.setFieldValue("$field.KEYWORD", "MAINDOCUMENT"); neon.setFieldValue("$field.KEYWORD", "MAINDOCUMENT");
else else if(value == "0")
neon.setFieldValue("$field.KEYWORD", ""); neon.setFieldValue("$field.KEYWORD", "");
\ No newline at end of file
import("system.vars"); import("system.vars");
import("system.result"); import("system.result");
var res = '0';
if(vars.get("$field.KEYWORD") == 'MAINDOCUMENT') { if(vars.get("$field.KEYWORD") == 'MAINDOCUMENT')
res = '1'; result.string("1");
} else
result.string("0");
result.string(res); \ No newline at end of file
\ No newline at end of file
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
<width v="75" /> <width v="75" />
<expandRatio v="100" /> <expandRatio v="100" />
</neonTableColumn> </neonTableColumn>
<neonTableColumn>
<name>0f7279fa-612b-4f2b-90aa-9de8efd1d3fb</name>
<entityField>IS_MAIN_DOCUMENT</entityField>
</neonTableColumn>
</columns> </columns>
</tableViewTemplate> </tableViewTemplate>
</children> </children>
......
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