Skip to content
Snippets Groups Projects
Commit 3a7f0dc7 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

salesproject fixes

parent ee244eba
No related branches found
No related tags found
No related merge requests found
......@@ -296,6 +296,12 @@
<fieldName>PersEditor_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
<entityDependency>
<name>b72f99e9-0c8d-4b54-863b-b47eafbb0189</name>
<entityName>SalesprojectMember_entity</entityName>
<fieldName>PersLookup_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
<entityField>
......
......@@ -23,7 +23,7 @@
<name>RELATION_ID</name>
<title>Person</title>
<linkedContext>Pers_context</linkedContext>
<outgoingField>SalesprojectMemberPers_dfo</outgoingField>
<outgoingField>PersLookup_dfo</outgoingField>
</entityField>
<entityField>
<name>SALESPROJECT_ID</name>
......@@ -148,6 +148,15 @@
<element>RELATIONSHIP</element>
</fields>
</entityFieldGroup>
<entityOutgoingField>
<name>PersLookup_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Pers_entity</entityName>
<fieldName>#INCOMING</fieldName>
</dependency>
</entityOutgoingField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......@@ -254,6 +263,10 @@
<name>RELATION_RELATIONSHIP.value</name>
<recordfield>RELATION.RELATIONSHIP</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>RELATION_ID.displayValue</name>
<expression>%aditoprj%/entity/SalesprojectMember_entity/recordcontainers/db/recordfieldmappings/relation_id.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
......
import("system.result");
import("system.vars");
// TODO: auf displayValue umbauen statt fieldGroup
var localRelationship = vars.get("$field.RELATIONSHIP");
if (localRelationship)
{
result.string(localRelationship);
result.string("loc" + alRelationship);
}
else
{
result.string(vars.get("$field.RELATION_RELATIONSHIP"));
result.string("rem" + vars.get("$field.RELATION_RELATIONSHIP"));
}
import("system.result");
import("Pers_lib");
result.string(PersUtils.getResolvingDisplaySubSql("RELATION_ID"))
\ No newline at end of file
......@@ -10,12 +10,14 @@
<children>
<cardViewTemplate>
<name>SalesprojectMemberHeader_template</name>
<titleField>PERS_FULL_NAME</titleField>
<titleField>RELATION_ID</titleField>
<descriptionField>SALESPROJECT_ROLE</descriptionField>
<entityField>#ENTITY</entityField>
</cardViewTemplate>
<genericViewTemplate>
<name>SalesprojectMemberInfo_template</name>
<showDrawer v="true" />
<drawerCaption>Details</drawerCaption>
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
......
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