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

Groupable fields in History_entity

parent a2dcec86
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@
<columnName>DIRECTION</columnName>
<caption>Direction</caption>
<possibleItemsProcess>%aditoprj%/entity/History_entity/entityfields/direction/possibleItemsProcess.js</possibleItemsProcess>
<groupable v="true" />
</entityField>
<entityField>
<name>ENTRYDATE</name>
......@@ -28,6 +29,7 @@
<contentType>DATE</contentType>
<resolution>DAY</resolution>
<mandatory v="true" />
<groupable v="true" />
</entityField>
<entityField>
<name>HISTORYID</name>
......@@ -49,6 +51,7 @@
<caption>Medium</caption>
<mandatory v="false" />
<possibleItemsProcess>%aditoprj%/entity/History_entity/entityfields/medium/possibleItemsProcess.js</possibleItemsProcess>
<groupable v="true" />
</entityField>
<entityField>
<name>SUBJECT</name>
......@@ -56,6 +59,7 @@
<columnName>SUBJECT</columnName>
<caption>Subject</caption>
<mandatory v="true" />
<groupable v="true" />
</entityField>
<entityIncomingField>
<name>OrgHistory_dfi</name>
......
......@@ -2,4 +2,22 @@ import("system.vars");
import("system.result");
import("system.neon");
result.string("NEON:HISTORY");
\ No newline at end of file
var medium = vars.getString("$field.MEDIUM");
switch (medium) {
case "0":
result.string("VAADIN:PHONE");
break;
case "1":
result.string("VAADIN:AT");
break;
case "2":
result.string("VAADIN:PHONE");
break;
case "3":
result.string("VAADIN:LINK");
break;
default:
result.string("NEON:HISTORY");
break;
}
\ No newline at end of file
......@@ -47,8 +47,9 @@
<entityField>#ENTITY</entityField>
</timelineViewTemplate>
<treetableViewTemplate>
<name>Treetable</name>
<descriptionField>SUBJECT</descriptionField>
<name>Treetable_template</name>
<titleField>SUBJECT</titleField>
<descriptionField>INFO</descriptionField>
<iconField>ICON</iconField>
<entityField>#ENTITY</entityField>
</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