Skip to content
Snippets Groups Projects
Commit 2f284c74 authored by Andre Loreth's avatar Andre Loreth
Browse files

#1051579: Offer: Implement OfferReport_view

parent 31e438cf
No related branches found
No related tags found
No related merge requests found
......@@ -966,6 +966,10 @@
<iconId>VAADIN:PLAY</iconId>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/startworkflow/stateProcess.js</stateProcess>
</entityActionField>
<entityField>
<name>OFFER_REPORT_DATA</name>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offer_report_data/valueProcess.js</valueProcess>
</entityField>
<entityConsumer>
<name>Organisations</name>
<dependency>
......
import("system.vars");
import("system.result");
import("Offer_lib");
var reportData = OfferUtils.buildOfferReport(vars.get("$field.OFFERID"));
if (reportData != null) {
result.string(reportData[1]);
}
<?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.4" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.4">
<name>OfferReport_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<reportViewTemplate>
<name>Report</name>
<reportData>OFFER_REPORT_DATA</reportData>
<entityField>#ENTITY</entityField>
</reportViewTemplate>
</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