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