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

added Attributes in Campaign und DocumentTemplate

parent da3f1c1e
No related branches found
No related tags found
No related merge requests found
Showing with 67 additions and 1 deletion
import("system.vars");
import("system.result");
import("system.neon");
import("system.util");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(util.getNewUUID());
\ No newline at end of file
......@@ -9,5 +9,7 @@ result.object([
"Offer",
"Order",
"Employee",
"Salesproject"
"Salesproject",
"Campaign",
"DocumentTemplate"
]);
\ No newline at end of file
......@@ -5,6 +5,7 @@
<icon>VAADIN:GROUP</icon>
<title>Campaign</title>
<contentTitleProcess>%aditoprj%/entity/Campaign_entity/contentTitleProcess.js</contentTitleProcess>
<afterUiInit>%aditoprj%/entity/Campaign_entity/afterUiInit.js</afterUiInit>
<titlePlural>Campaigns</titlePlural>
<recordContainer>db</recordContainer>
<entityFields>
......@@ -346,6 +347,25 @@
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>Attributes</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>AttributeRelation_entity</entityName>
<fieldName>AttributeRelations</fieldName>
</dependency>
<children>
<entityParameter>
<name>ObjectRowId_param</name>
<valueProcess>%aditoprj%/entity/Campaign_entity/entityfields/attributes/children/objectrowid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>ObjectType_param</name>
<valueProcess>%aditoprj%/entity/Campaign_entity/entityfields/attributes/children/objecttype_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.neon");
import("system.vars");
import("Context_lib");
import("Attribute_lib");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
{
AttributeRelationUtils.presetMandatoryAttributes(ContextUtils.getCurrentContextId(), "Attributes");
}
import("system.vars");
import("system.result");
result.string(vars.get("$sys.uid"));
\ No newline at end of file
import("system.result");
import("Context_lib");
result.string(ContextUtils.getCurrentContextId());
......@@ -5,6 +5,7 @@
<icon>VAADIN:FILE_FONT</icon>
<title>Document Template</title>
<contentTitleProcess>%aditoprj%/entity/DocumentTemplate_entity/contentTitleProcess.js</contentTitleProcess>
<afterUiInit>%aditoprj%/entity/DocumentTemplate_entity/afterUiInit.js</afterUiInit>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
......
import("system.neon");
import("system.vars");
import("Context_lib");
import("Attribute_lib");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
{
AttributeRelationUtils.presetMandatoryAttributes(ContextUtils.getCurrentContextId(), "Attributes");
}
......@@ -37,5 +37,10 @@
</entityFieldLink>
</fields>
</genericViewTemplate>
<neonViewReference>
<name>58b76841-24df-4fce-a05b-580712e8ecdc</name>
<entityField>Attributes</entityField>
<view>AttributeRelationMultiEdit_view</view>
</neonViewReference>
</children>
</neonView>
......@@ -45,5 +45,10 @@
<entityField>Tasks</entityField>
<view>TaskFilter_view</view>
</neonViewReference>
<neonViewReference>
<name>c6237b30-d638-43e3-93c5-fc3abbb87443</name>
<entityField>Attributes</entityField>
<view>AttributeRelationTree_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