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

intermediate result attachments

parent a51c49f4
No related branches found
No related tags found
No related merge requests found
Showing
with 88 additions and 20 deletions
......@@ -38,6 +38,7 @@
<entityField>
<name>DOCUMENTTEMPLATE_ID_CHILD</name>
<consumer>Attachments</consumer>
<stateProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/documenttemplate_id_child/stateProcess.js</stateProcess>
<displayValueProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/documenttemplate_id_child/displayValueProcess.js</displayValueProcess>
</entityField>
<entityParameter>
......@@ -119,10 +120,6 @@
<name>USER_NEW.value</name>
<recordfield>DOCUMENTTEMPLATELINK.USER_NEW</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DOCUMENTTEMPLATE_ID_CHILD.displayValue</name>
<expression>%aditoprj%/entity/DocumentTemplateLink_entity/recordcontainers/db/recordfieldmappings/documenttemplate_id_child.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
......
import("system.logging");
import("system.neon");
import("system.result");
import("system.vars");
import("system.db");
var parenttype = db.cell("select TYPE from DOCUMENTTEMPLATE");
logging.log(parenttype);
//
//if(parenttype == "MAI")
// result.string("DISABLED");
\ No newline at end of file
import("system.result");
import("Context_lib");
result.string(ContextUtils.getNameSubselectSql("DOCUMENTTEMPLATE_ID_CHILD"));
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.2" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.2">
<name>DocumentTemplate_entity</name>
<title>Document Template</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<icon>VAADIN:FILE_FONT</icon>
<titleProcess>%aditoprj%/entity/DocumentTemplate_entity/titleProcess.js</titleProcess>
......@@ -212,6 +211,12 @@
<entityName>DocumentTemplateLink_entity</entityName>
<fieldName>Links</fieldName>
</dependency>
<children>
<entityParameter>
<name>DocumentId_param</name>
<valueProcess>%aditoprj%/entity/DocumentTemplate_entity/entityfields/links/children/documentid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityParameter>
<name>DocumentTemplateTypeClassification_param</name>
......
......@@ -2,4 +2,4 @@ import("system.vars");
import("system.translate");
import("system.result");
result.string(translate.text(vars.get("$field.NAME")));
\ No newline at end of file
result.string(translate.text(vars.get("$field.NAME")));
......@@ -2919,6 +2919,21 @@
<entry>
<key>${ATTRIBUTE_VOID}</key>
</entry>
<entry>
<key>Document Template</key>
</entry>
<entry>
<key>Text Modular</key>
</entry>
<entry>
<key>Mail</key>
</entry>
<entry>
<key>Attachment</key>
</entry>
<entry>
<key>Letter</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
<sqlModels>
......
......@@ -70,6 +70,10 @@
<key>Turnover</key>
<value>Umsatz</value>
</entry>
<entry>
<key>Attachments</key>
<value>Anhänge</value>
</entry>
<entry>
<key>Discount %</key>
<value>Rabatt %</value>
......
......@@ -2952,6 +2952,21 @@
<key>${ATTRIBUTE_VOID}</key>
<value>Void</value>
</entry>
<entry>
<key>Document Template</key>
</entry>
<entry>
<key>Text Modular</key>
</entry>
<entry>
<key>Mail</key>
</entry>
<entry>
<key>Attachment</key>
</entry>
<entry>
<key>Letter</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -8,5 +8,9 @@
<name>f21abb6d-0abf-472e-8f5e-2b2578d355ea</name>
<view>DocumentTemplateLinkMultiEdit_view</view>
</neonViewReference>
<neonViewReference>
<name>a9968bc4-885e-41df-9a50-15798e91f901</name>
<view>DocumentTemplateLinkList_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>DocumentTemplateLinkList_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<titledListViewTemplate>
<name>TitledList</name>
<entityField>#ENTITY</entityField>
<title>Attachments</title>
<columns>
<neonTableColumn>
<name>3c550757-70cf-40b9-a0af-687b998b6b77</name>
<entityField>DOCUMENTTEMPLATE_ID_CHILD</entityField>
</neonTableColumn>
</columns>
</titledListViewTemplate>
</children>
</neonView>
<?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>DocumentTemplateLinkMultiEdit_view</name>
<title>Attachments</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<noneLayout>
......
......@@ -15,20 +15,15 @@
<entityField>#ENTITY</entityField>
<title>Document Template</title>
</cardViewTemplate>
<neonViewReference>
<name>632c3a73-41f9-4d95-b394-2699a7200cf1</name>
<entityField>Links</entityField>
<view>DocumentTemplateLinkList_view</view>
</neonViewReference>
<neonViewReference>
<name>0da2cc6b-86c9-4455-b5b2-edc54b30e793</name>
<entityField>Documents</entityField>
<view>DocumentList_view</view>
</neonViewReference>
<neonViewReference>
<name>ba313d4c-e5c0-4077-8ae2-bc1f3c86d747</name>
<entityField>AttributeTree</entityField>
<view>AttributeRelationTree_view</view>
</neonViewReference>
<neonViewReference>
<name>536b34ae-d86b-43e3-b8ad-9955ab292517</name>
<entityField>Links</entityField>
<view>DocumentTemplateLinkMultiEdit_view</view>
</neonViewReference>
</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