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

DocumentTemplate Parameter changes

parent 12bf8c68
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<name>DOCUMENTTEMPLATE_ID_CHILD</name> <name>DOCUMENTTEMPLATE_ID_CHILD</name>
<consumer>Attachments</consumer> <consumer>Attachments</consumer>
<stateProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/documenttemplate_id_child/stateProcess.js</stateProcess> <stateProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/documenttemplate_id_child/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/documenttemplate_id_child/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/documenttemplate_id_child/displayValueProcess.js</displayValueProcess> <displayValueProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/documenttemplate_id_child/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
<entityParameter> <entityParameter>
...@@ -55,12 +56,6 @@ ...@@ -55,12 +56,6 @@
<entityName>DocumentTemplate_entity</entityName> <entityName>DocumentTemplate_entity</entityName>
<fieldName>Attachments</fieldName> <fieldName>Attachments</fieldName>
</dependency> </dependency>
<children>
<entityParameter>
<name>DocTempType_param</name>
<valueProcess>%aditoprj%/entity/DocumentTemplateLink_entity/entityfields/attachments/children/doctemptype_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer> </entityConsumer>
<entityProvider> <entityProvider>
<name>Links</name> <name>Links</name>
...@@ -75,6 +70,12 @@ ...@@ -75,6 +70,12 @@
<isConsumer v="false" /> <isConsumer v="false" />
</entityDependency> </entityDependency>
</dependencies> </dependencies>
<children>
<entityParameter>
<name>DocumentId_param</name>
<triggerRecalculation v="true" />
</entityParameter>
</children>
</entityProvider> </entityProvider>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
......
//TODO: Es sollen hier nur die Anhänge gelistet werden!
\ No newline at end of file
...@@ -6,8 +6,6 @@ import("system.db"); ...@@ -6,8 +6,6 @@ import("system.db");
var parenttype = db.cell("select TYPE from DOCUMENTTEMPLATE"); var parenttype = db.cell("select TYPE from DOCUMENTTEMPLATE");
logging.log(parenttype);
// //
//if(parenttype == "MAI") //if(parenttype == "MAI")
// result.string("DISABLED"); // result.string("DISABLED");
\ No newline at end of file
import("system.logging");
import("system.result");
import("system.vars");
//if (vars.exists("$param.DocumentTemplateType_param"))
//{
// result.string(vars.get("$param.DocumentTemplateType_param"));
//}
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
<name>DocumentTemplateType_param</name> <name>DocumentTemplateType_param</name>
<expose v="true" /> <expose v="true" />
<triggerRecalculation v="true" /> <triggerRecalculation v="true" />
<mandatory v="true" /> <mandatory v="false" />
<description>PARAMETER</description> <description>PARAMETER</description>
</entityParameter> </entityParameter>
<entityProvider> <entityProvider>
...@@ -201,6 +201,13 @@ ...@@ -201,6 +201,13 @@
<isConsumer v="false" /> <isConsumer v="false" />
</entityDependency> </entityDependency>
</dependencies> </dependencies>
<children>
<entityParameter>
<name>DocumentTemplateType_param</name>
<valueProcess>%aditoprj%/entity/DocumentTemplate_entity/entityfields/attachments/children/documenttemplatetype_param/valueProcess.js</valueProcess>
<mandatory v="false" />
</entityParameter>
</children>
</entityProvider> </entityProvider>
<entityConsumer> <entityConsumer>
<name>Links</name> <name>Links</name>
......
import("system.result");
import("system.vars");
if(vars.getString("$field.TYPE") == "ATT"){
result.string("$field.DOCUMENTTEMPLATEID");
}
\ No newline at end of file
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