Skip to content
Snippets Groups Projects
Commit 376cbe61 authored by Sophia Leierseder's avatar Sophia Leierseder
Browse files

Timetracking analyses revised

parent fc9a7a5c
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,15 @@
<valueProcess>%aditoprj%/entity/Timetracking_entity/entityfields/totaltime/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Timetracking_entity/entityfields/totaltime/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>YEAR</name>
<title>Year</title>
<contentType>DATE</contentType>
<outputFormat>yyyy</outputFormat>
<inputFormat>dd.MM.yyyy</inputFormat>
<valueProcess>%aditoprj%/entity/Timetracking_entity/entityfields/year/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Timetracking_entity/entityfields/year/displayValueProcess.js</displayValueProcess>
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.result");
import("system.vars");
import("system.datetime");
result.string(datetime.toDate(vars.get("$field.YEAR"), "MMMM.yyyy"));
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
var year = vars.get("$field.DATE")
result.string(year);
\ No newline at end of file
......@@ -31,5 +31,9 @@
<name>9dcc5766-f0ac-4c7e-8b93-0ea5b648a1ac</name>
<view>TimetrackingAnalyses_view</view>
</neonViewReference>
<neonViewReference>
<name>1290dad5-f796-4847-9510-05607e079f30</name>
<view>TimetrackingAnalysesDrawer_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.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.1">
<name>TimetrackingAnalysesDrawer_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<drawerLayout>
<name>layout</name>
<layoutCaption>Time</layoutCaption>
</drawerLayout>
</layout>
<children>
<neonViewReference>
<name>8b5f7d80-65fa-477c-bf74-65aae4befe96</name>
<entityField>#ENTITY</entityField>
<view>TimetrackingAnalyses_view</view>
</neonViewReference>
</children>
</neonView>
......@@ -3,18 +3,24 @@
<name>TimetrackingAnalyses_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<drawerLayout>
<groupLayout>
<name>layout</name>
<layoutCaption>Time</layoutCaption>
</drawerLayout>
</groupLayout>
</layout>
<children>
<singleDataChartViewTemplate>
<name>Pie</name>
<chartType>PIE</chartType>
<xAxis>CONTACT_ID</xAxis>
<xAxis>YEAR</xAxis>
<yAxis>MINUTES</yAxis>
<entityField>#ENTITY</entityField>
</singleDataChartViewTemplate>
<multiDataChartViewTemplate>
<name>MultiDataChart</name>
<chartType>BAR</chartType>
<xAxis>DATE</xAxis>
<yAxis>MINUTES</yAxis>
<entityField>#ENTITY</entityField>
</multiDataChartViewTemplate>
</children>
</neonView>
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