Skip to content
Snippets Groups Projects
Commit 12d62df1 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Classification: Display bugfix

parent 6aa71498
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,9 @@
<title>Classification</title>
<grantUpdateProcess>%aditoprj%/entity/ClassificationAdmin_entity/grantUpdateProcess.js</grantUpdateProcess>
<grantDeleteProcess>%aditoprj%/entity/ClassificationAdmin_entity/grantDeleteProcess.js</grantDeleteProcess>
<contentTitleProcess>%aditoprj%/entity/ClassificationAdmin_entity/contentTitleProcess.js</contentTitleProcess>
<iconId>VAADIN:LIST_OL</iconId>
<iconIdProcess>%aditoprj%/entity/ClassificationAdmin_entity/iconIdProcess.js</iconIdProcess>
<titlePlural>Classifications</titlePlural>
<recordContainer>jDito</recordContainer>
<entityFields>
......
import("system.result");
import("system.vars");
var objectType = vars.get("$field.OBJECT_TYPE.displayValue");
var classificationGroupTitle = vars.get("$field.CLASSIFICATIONGROUP.displayValue");
var classificationTypeTitle = vars.get("$field.CLASSIFICATIONTYPEID.displayValue");
var res = objectType || classificationGroupTitle || classificationTypeTitle || "";
result.string(res);
\ No newline at end of file
......@@ -3,14 +3,22 @@ import("Classification_lib");
import("system.result");
import("system.vars");
var sysSelection = vars.get("$sys.selection");
if(sysSelection.length > 0)
var cat = vars.get("$field.recordCategory");
var res;
switch (cat)
{
var value = vars.get("$field.CLASSIFICATION_PARENT_ID");
res = ClassificationUtils.decode(value)
if(res)
result.string(res);
case $ClassificationRecordCategories.CLASSIFICATION_CLASSIFICATION_TYPE():
res = "ClassificationType";
break;
case $ClassificationRecordCategories.CLASSIFICATION_CLASSIFICATION_GROUP():
res = "ClassificationGroup";
break;
case $ClassificationRecordCategories.CLASSIFICATION_OBJECT_TYPE():
res = "ClassificationGroup";
break;
default:
res = "";
break;
}
result.string(res);
\ No newline at end of file
import("system.vars");
import("system.result");
result.string("TEXT:" + vars.get("$field.#CONTENTTITLE"));
\ No newline at end of file
......@@ -18,16 +18,8 @@
<fixedFilterFields />
<columns>
<neonTreeTableColumn>
<name>825a461f-65a1-4483-ae97-655b1f87bc0a</name>
<entityField>OBJECT_TYPE</entityField>
</neonTreeTableColumn>
<neonTreeTableColumn>
<name>4d53ba6d-f0a0-4f04-afaa-3278a45cce86</name>
<entityField>CLASSIFICATIONGROUP</entityField>
</neonTreeTableColumn>
<neonTreeTableColumn>
<name>299d5ef1-31a5-47d2-ae41-573e05a0b6c7</name>
<entityField>CLASSIFICATIONTYPEID</entityField>
<name>2e04e92e-9af8-46a6-9845-8bf822cd05f3</name>
<entityField>#CONTENTTITLE</entityField>
</neonTreeTableColumn>
</columns>
</treeTableViewTemplate>
......
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