Skip to content
Snippets Groups Projects
Commit 1cd272c3 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

add read-only KeywordAttributeRelations in KeywordEntry for better clarity.

parent dbbc2f90
No related branches found
No related tags found
No related merge requests found
Showing
with 110 additions and 4 deletions
......@@ -51,6 +51,12 @@
<fieldName>KeywordAttributeRelations</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>53b35858-7c81-429c-9e06-0362f567ad42</name>
<entityName>KeywordEntry_entity</entityName>
<fieldName>KeywordAttributeRelationsReadOnly</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
......
......@@ -409,6 +409,24 @@
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>KeywordAttributeRelationsReadOnly</name>
<title>Keyword Attribute Values</title>
<fieldType>DEPENDENCY_OUT</fieldType>
<documentation>%aditoprj%/entity/KeywordEntry_entity/entityfields/keywordattributerelationsreadonly/documentation.adoc</documentation>
<state>READONLY</state>
<dependency>
<name>dependency</name>
<entityName>KeywordAttributeRelation_entity</entityName>
<fieldName>AttributesForKeywordEntry</fieldName>
</dependency>
<children>
<entityParameter>
<name>KeywordEntryId_param</name>
<valueProcess>%aditoprj%/entity/KeywordEntry_entity/entityfields/keywordattributerelationsreadonly/children/keywordentryid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.vars");
import("system.result");
result.string(vars.get("$field.AB_KEYWORD_ENTRYID"));
\ No newline at end of file
Since it's not possible to limit the keywordAttributeRelation to a distinctive list (use a KeywordAttributeRelation "category" only once per keyowrd-entry) within the generic-multiple-template / titledList-template use this readonly consumer there.
For editing use the not-read-only consumer in a list-template. In a list-template only one row can be changed (and stored) which means we can exlucde already stored entries.
\ No newline at end of file
......@@ -9,5 +9,9 @@
<name>4340ec15-39bd-4c0c-a7b9-c03829f9ff78</name>
<view>KeywordAttributeRelationRows_view</view>
</neonViewReference>
<neonViewReference>
<name>c27dbf5c-1a3d-4256-9103-bbf5256b005b</name>
<view>KeywordAttriubteRelationTitled_view</view>
</neonViewReference>
</references>
</neonContext>
......@@ -26,5 +26,9 @@
<name>bba3520e-3e12-44e9-89dc-b42183e332ec</name>
<view>KeywordEntryMain_view</view>
</neonViewReference>
<neonViewReference>
<name>fb697cca-5e7d-4814-a6ed-09f32f9f60fd</name>
<view>KeywordEntryMainSide_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.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.0">
<name>KeywordAttriubteRelationTitled_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<noneLayout>
<name>layout</name>
</noneLayout>
</layout>
<children>
<titledListViewTemplate>
<name>mainList</name>
<entityField>#ENTITY</entityField>
<columns>
<neonTableColumn>
<name>9426ded9-a818-424e-8dd6-397dc439fffc</name>
<entityField>AB_KEYWORD_ATTRIBUTE_ID</entityField>
</neonTableColumn>
<neonTableColumn>
<name>35d71c73-cd55-4f45-8a22-22ac6ae7049d</name>
<entityField>valueProxy</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.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.0">
<name>KeywordEntryMainSide_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<cardViewTemplate>
<name>Header</name>
<titleField>TITLE</titleField>
<subtitleField>CONTAINER</subtitleField>
<descriptionField>KEYID</descriptionField>
<entityField>#ENTITY</entityField>
</cardViewTemplate>
<genericViewTemplate>
<name>Info</name>
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
<name>12e16874-32ee-47d7-b9d7-acaa32ca0402</name>
<entityField>ISACTIVE</entityField>
</entityFieldLink>
<entityFieldLink>
<name>74f8f491-43e2-4de5-b1c6-c83055b4ffa1</name>
<entityField>ISESSENTIAL</entityField>
</entityFieldLink>
<entityFieldLink>
<name>5608493f-90b5-4baf-9114-63cb6a2e85bf</name>
<entityField>SORTING</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
</children>
</neonView>
......@@ -5,14 +5,14 @@
<layout>
<masterSlaveLayout>
<name>layout</name>
<master>19d059ec-7b77-4662-ad0b-14f43c76272e</master>
<master>267eb426-08d6-4699-9b9f-743c9c071463</master>
</masterSlaveLayout>
</layout>
<children>
<neonViewReference>
<name>19d059ec-7b77-4662-ad0b-14f43c76272e</name>
<name>267eb426-08d6-4699-9b9f-743c9c071463</name>
<entityField>#ENTITY</entityField>
<view>KeywordEntryPreview_view</view>
<view>KeywordEntryMainSide_view</view>
</neonViewReference>
<neonViewReference>
<name>e722eb4b-5737-4801-b6e4-550fca43963a</name>
......
......@@ -35,5 +35,10 @@
</entityFieldLink>
</fields>
</genericViewTemplate>
<neonViewReference>
<name>31f3e341-19b3-452e-a381-942c9860f696</name>
<entityField>KeywordAttributeRelationsReadOnly</entityField>
<view>KeywordAttriubteRelationTitled_view</view>
</neonViewReference>
</children>
</neonView>
......@@ -24,7 +24,7 @@
<parameter name="OfferDeliveryTerm" class="java.lang.String"/>
<parameter name="responsible" class="java.lang.String"/>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["C:\\entwicklungszweige\\0.0\\project\\xRM-Basic5.1\\report\\Offer_report\\"]]></defaultValueExpression>
<defaultValueExpression><![CDATA["C:\\adito\\0.0\\project\\basic 2019\\report\\Offer_report\\"]]></defaultValueExpression>
</parameter>
<parameter name="adito.datasource.subdata" class="java.lang.Object"/>
<parameter name="SUMITEMSUM" class="java.lang.Double"/>
......
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