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

Historien als Timeline

parent 8774f734
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,10 @@
<columnName>DATE_NEW</columnName>
<valueProcess>%aditoprj%/entity/History_entity/entityfields/date_new/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>SUBJECT_DETAILS</name>
<valueProcess>%aditoprj%/entity/History_entity/entityfields/subject_details/valueProcess.js</valueProcess>
</entityField>
</entityFields>
<linkInformation>
<linkInformation>
......
import("system.vars");
import("system.result");
import("Keyword_lib");
var kwdUtils;
kwdUtils = new KeywordUtils();
result.string(vars.get("$field.SUBJECT") + " (" + kwdUtils.getViewValue("HISTORY.DIRECTION", vars.get("$field.DIRECTION")) + " - " + kwdUtils.getViewValue("HISTORY.MEDIUM", vars.get("$field.MEDIUM")) + ")");
\ No newline at end of file
......@@ -20,5 +20,9 @@
<name>9b432ee5-c767-4c47-ad2a-66d2163557d1</name>
<view>HistoryEdit_view</view>
</neonViewReference>
<neonViewReference>
<name>e0af0a30-934b-4063-a4cf-9ba0c848a4db</name>
<view>HistoryTimeline_view</view>
</neonViewReference>
</references>
</neonContext>
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.0.0">
<name>HistoryTimeline_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<timelineViewTemplate>
<name>Timeline_template</name>
<dateField>ENTRYDATE</dateField>
<titleField>SUBJECT_DETAILS</titleField>
<descriptionField>INFO</descriptionField>
<entityField>#ENTITY</entityField>
</timelineViewTemplate>
</children>
</neonView>
......@@ -18,7 +18,7 @@
<neonViewReference>
<name>14bb5a70-fec1-4346-a8c2-2dde6fb32822</name>
<entityField>OrgHistory_dfo</entityField>
<view>HistoryFilter_view</view>
<view>HistoryTimeline_view</view>
</neonViewReference>
<neonViewReference>
<name>3a211f9c-48b5-4568-b3d4-5f413eb56253</name>
......
......@@ -17,7 +17,7 @@
<neonViewReference>
<name>d674b32c-0493-47ea-a51f-dff5d13d237d</name>
<entityField>PersHistory_dfo</entityField>
<view>HistoryFilter_view</view>
<view>HistoryTimeline_view</view>
</neonViewReference>
</children>
</neonView>
......@@ -2,6 +2,15 @@ import("system.logging");
import("system.translate");
function KeywordUtils(){
this.getViewValue = function(keywordType, key){
var keyword = this.getStandardArray(keywordType);
for(var i = 0; i < keyword.length; i++)
if(keyword[i][0] == key)
return keyword[i][1];
return "";
}
this.getStandardArray = function(keywordType){
return this.createKeyword(keywordType).toArray();
}
......
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