Skip to content
Snippets Groups Projects
Commit 53d3667b authored by Markus Escher's avatar Markus Escher
Browse files

add Multilookup for Product

parent 54372015
No related branches found
No related tags found
No related merge requests found
...@@ -238,7 +238,6 @@ ...@@ -238,7 +238,6 @@
<title>Developer</title> <title>Developer</title>
<linkedContextProcess>%aditoprj%/entity/Product_entity/entityfields/relation_id/linkedContextProcess.js</linkedContextProcess> <linkedContextProcess>%aditoprj%/entity/Product_entity/entityfields/relation_id/linkedContextProcess.js</linkedContextProcess>
<outgoingField>ProductRelation_dfo</outgoingField> <outgoingField>ProductRelation_dfo</outgoingField>
<valueProcess>%aditoprj%/entity/Product_entity/entityfields/relation_id/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityField> <entityField>
<name>RELATION_ORG_ID</name> <name>RELATION_ORG_ID</name>
...@@ -267,26 +266,19 @@ ...@@ -267,26 +266,19 @@
<onDBDelete>%aditoprj%/entity/Product_entity/recordcontainers/db/onDBDelete.js</onDBDelete> <onDBDelete>%aditoprj%/entity/Product_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
<linkInformation> <linkInformation>
<linkInformation> <linkInformation>
<name>219bb2ab-3c6f-475f-a2b4-0d3e48b16b8f</name> <name>551ab91d-6a97-4307-bd02-628cdfdee274</name>
<tableName>PRODUCT</tableName> <tableName>PRODUCT</tableName>
<primaryKey>PRODUCTID</primaryKey> <primaryKey>PRODUCTID</primaryKey>
<isUIDTable v="true" /> <isUIDTable v="true" />
<readonly v="false" /> <readonly v="false" />
</linkInformation> </linkInformation>
<linkInformation> <linkInformation>
<name>478598a4-3130-4b0c-ba8d-14b67f003ee5</name> <name>4518b616-7213-4341-9170-f95a76d1e2bb</name>
<tableName>RELATION</tableName> <tableName>RELATION</tableName>
<primaryKey>RELATIONID</primaryKey> <primaryKey>RELATIONID</primaryKey>
<isUIDTable v="false" /> <isUIDTable v="false" />
<readonly v="true" /> <readonly v="true" />
</linkInformation> </linkInformation>
<linkInformation>
<name>3800cc08-4ab5-4b9a-a200-993c990b7906</name>
<tableName>ORG</tableName>
<primaryKey>ORGID</primaryKey>
<isUIDTable v="false" />
<readonly v="true" />
</linkInformation>
</linkInformation> </linkInformation>
<recordFieldMappings> <recordFieldMappings>
<dbRecordFieldMapping> <dbRecordFieldMapping>
...@@ -309,10 +301,6 @@ ...@@ -309,10 +301,6 @@
<name>MINSTOCK.value</name> <name>MINSTOCK.value</name>
<recordfield>PRODUCT.MINSTOCK</recordfield> <recordfield>PRODUCT.MINSTOCK</recordfield>
</dbRecordFieldMapping> </dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>RELATION_ID.value</name>
<recordfield>PRODUCT.RELATION_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping> <dbRecordFieldMapping>
<name>PRODUCTCODE.value</name> <name>PRODUCTCODE.value</name>
<recordfield>PRODUCT.PRODUCTCODE</recordfield> <recordfield>PRODUCT.PRODUCTCODE</recordfield>
...@@ -355,6 +343,10 @@ ...@@ -355,6 +343,10 @@
</dbRecordFieldMapping> </dbRecordFieldMapping>
<dbRecordFieldMapping> <dbRecordFieldMapping>
<name>RELATION_ID.displayValue</name> <name>RELATION_ID.displayValue</name>
<recordfield>RELATION.RELATIONID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>RELATION_ID.value</name>
<recordfield>PRODUCT.RELATION_ID</recordfield> <recordfield>PRODUCT.RELATION_ID</recordfield>
</dbRecordFieldMapping> </dbRecordFieldMapping>
</recordFieldMappings> </recordFieldMappings>
......
import("system.vars");
import("system.result");
import("system.neon");
if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW)
{
if(vars.exists("$param.relationId_param") && vars.get("$param.relationId_param"))
result.string(vars.getString("$param.relationId_param"));
}
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<entity 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/entity/1.1.0"> <entity 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/entity/1.1.0">
<name>Relation_entity</name> <name>Relation_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode> <majorModelMode>DISTRIBUTED</majorModelMode>
<titleProcess>%aditoprj%/entity/Relation_entity/titleProcess.js</titleProcess>
<recordContainer>db</recordContainer> <recordContainer>db</recordContainer>
<entityFields> <entityFields>
<entityIncomingField> <entityIncomingField>
...@@ -99,6 +100,10 @@ See RelationUtils.getRelationTypeByPersOrg for possible values</description> ...@@ -99,6 +100,10 @@ See RelationUtils.getRelationTypeByPersOrg for possible values</description>
<name>PERS_FIRSTNAME</name> <name>PERS_FIRSTNAME</name>
<title>Firstname</title> <title>Firstname</title>
</entityField> </entityField>
<entityField>
<name>PERS_LASTNAME</name>
<title>Lastname</title>
</entityField>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<dbRecordContainer> <dbRecordContainer>
...@@ -184,6 +189,10 @@ See RelationUtils.getRelationTypeByPersOrg for possible values</description> ...@@ -184,6 +189,10 @@ See RelationUtils.getRelationTypeByPersOrg for possible values</description>
<name>PERS_FIRSTNAME.value</name> <name>PERS_FIRSTNAME.value</name>
<recordfield>PERS.FIRSTNAME</recordfield> <recordfield>PERS.FIRSTNAME</recordfield>
</dbRecordFieldMapping> </dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PERS_LASTNAME.value</name>
<recordfield>PERS.LASTNAME</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings> </recordFieldMappings>
</dbRecordContainer> </dbRecordContainer>
</recordContainers> </recordContainers>
......
import("system.vars");
import("system.result");
if(vars.get("$field.PERS_FIRSTNAME")) {
result.string(vars.get("$field.PERS_FIRSTNAME") + " " + vars.get("$field.PERS_LASTNAME"));
} else {
result.string(vars.get("$field.ORG_NAME"));
}
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
<entityField>#ENTITY</entityField> <entityField>#ENTITY</entityField>
<fields> <fields>
<entityFieldLink> <entityFieldLink>
<name>00594c0e-6641-4f6d-9717-1eee2678ad5d</name> <name>c47d3f86-867d-4bc4-bcc3-6e22ff8efa6d</name>
<entityField>PRODUCTNAME</entityField> <entityField>GROUPCODEID</entityField>
</entityFieldLink> </entityFieldLink>
<entityFieldLink> <entityFieldLink>
<name>bd8e7e33-6fc6-48fe-b9be-931383f4d859</name> <name>bd8e7e33-6fc6-48fe-b9be-931383f4d859</name>
...@@ -48,6 +48,10 @@ ...@@ -48,6 +48,10 @@
<name>ba604dc5-06b2-44f2-a9b3-c4c3adb9f8f8</name> <name>ba604dc5-06b2-44f2-a9b3-c4c3adb9f8f8</name>
<entityField>MINSTOCK</entityField> <entityField>MINSTOCK</entityField>
</entityFieldLink> </entityFieldLink>
<entityFieldLink>
<name>2ba11e8f-6636-40a9-a078-672f34591162</name>
<entityField>#INCOMING</entityField>
</entityFieldLink>
</fields> </fields>
</genericViewTemplate> </genericViewTemplate>
<neonViewReference> <neonViewReference>
......
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
<name>814b3f18-106a-443e-8415-762669f862e6</name> <name>814b3f18-106a-443e-8415-762669f862e6</name>
<entityField>PERS_FIRSTNAME</entityField> <entityField>PERS_FIRSTNAME</entityField>
</neonTableColumn> </neonTableColumn>
<neonTableColumn>
<name>4b05d812-aa6c-49a5-afa3-ea5cd99560ef</name>
<entityField>PERS_LASTNAME</entityField>
<width v="75" />
<expandRatio v="100" />
</neonTableColumn>
</columns> </columns>
</tableViewTemplate> </tableViewTemplate>
</children> </children>
......
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